Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is it possible or not to apply i18n strings in properties section?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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/k9ytr9

    #2
    Hello handlar,
    Thanks for your post.

    I am currently looking into this for you. I'll let you know when I have a little more information.
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      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 Files
      Josh G.NinjaTrader Customer Service

      Comment


        #4
        Originally posted by NinjaTrader_JoshG View Post
        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.
        Thank you so much, JoshG!

        Comment


          #5
          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 : IndicatorBaseConverter
          Last edited by handlar; 07-24-2018, 02:33 AM.

          Comment


            #6
            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
            576 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            334 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            553 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            551 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X