Announcement
Collapse
No announcement yet.
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
-
Thank you so much, JoshG!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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
580 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
335 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
102 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
552 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment