Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Is it possible or not to apply i18n strings in properties section?
Collapse
X
-
Is it possible or not to apply i18n strings in properties section?
For example, I have some properties in Russian for Russian traders, but also I want to have English version for traders who don't know Russian. Maybe thre is some approach to create i18n strings for properties? http://prntscr.com/k9ytr9Tags: None
-
Officially this is unsupported territory. However, this test script created by my colleague NinjaTrader_MichaelM is intended to show how to do localization inside an indicator using the method GetTranslation().
You most likely would need to extend this to support enums, but this should get you started.
I'll leave this post open for anyone else that would like to contribute as well.Attached FilesJosh G.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_JoshG View PostOfficially this is unsupported territory. However, this test script created by my colleague NinjaTrader_MichaelM is intended to show how to do localization inside an indicator using the method GetTranslation().
You most likely would need to extend this to support enums, but this should get you started.
I'll leave this post open for anyone else that would like to contribute as well.
Comment
-
One more question about settings. Maybe there is some approach to hide some settings for all users, but show all settings for admins?
Maybe a list of machineid, each machineid will allow see all settings. But if you are usual trader and your machine id is not in the list - you will see only part of settings.
I tried it, but got errors during compilation. I tried describe parameters inside if-else...
http://prntscr.com/ka9ip3 but this is wrong.
I'll try add machineid check in public class MyConverter : IndicatorBaseConverterLast edited by handlar; 07-24-2018, 02:33 AM.
Comment
-
First, I just suggest creating two separate scripts as that will be much easier. Unfortunately we are limited by the amount of support we can provide with this.
Off the top of my head you may be able to try conditional compilation or conditional attributes, although I am not sure if either would actually work.
I will include the public msdn links below about conditional compilation and conditional attributes.
I will also leave this post open if any other members would like to contribute.
Indicates to compilers that a method call or attribute should be ignored unless a specified conditional compilation symbol is defined.
Josh G.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by geotrades1, Today, 10:02 AM
|
1 response
5 views
0 likes
|
Last Post Today, 10:19 AM | ||
Started by ender_wiggum, Today, 09:50 AM
|
1 response
5 views
0 likes
|
Last Post Today, 10:10 AM | ||
Started by rajendrasubedi2023, Today, 09:50 AM
|
1 response
12 views
0 likes
|
Last Post Today, 10:05 AM | ||
Started by bmartz, Today, 09:30 AM
|
1 response
10 views
0 likes
|
Last Post Today, 09:48 AM | ||
Started by geddyisodin, Today, 05:20 AM
|
3 responses
27 views
0 likes
|
Last Post Today, 09:36 AM |
Comment