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!
See more
See less

Partner 728x90

Collapse

multilingual description from a .resx file

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

    multilingual description from a .resx file

    Hello,

    Is there an example file somewhere, or can someone tell me how to create a multilingual description from a .resx file and use it in an indicator, for example?

    I would like to create a .resx file in different languages or the property name and description and have it used automatically when loading the indicator, according to the PC language.

    Code:
     [Range(1, int.MaxValue), NinjaScriptProperty]
     [Display(ResourceType = typeof(Custom.Resource), Name = "Period", GroupName = "NinjaScriptParameters", Order = 0, Description = "")]
     public int Period
     {
         get; set;
     }
    sidlercom80
    NinjaTrader Ecosystem Vendor - Sidi Trading

    #2
    Hello sidlercom80,

    Thank you for your post.

    Unfortunately this would be beyond our scope of support, however I found this from a quick google search:

    I'll soon be working on a large c# project and would like to build in multi-language support from the start. I've had a play around and can get it working using a separate resource file for each la...


    I have around 3 languages resources(.RESX) file and I would like to use them in XAML as I use in CS file with no problem. My cs code is like this: Properties.Resources.ResourceManager.GetString(&qu...


    This read will remain open for any members of the community who may want to share any suggestions.
    Gaby V.NinjaTrader Customer Service

    Comment


      #3
      NinjaTrader_Gaby Unfortunately that doesn't help me, I was hoping for a more concrete example because I've already found that myself, thanks anyway.
      ​
      sidlercom80
      NinjaTrader Ecosystem Vendor - Sidi Trading

      Comment


        #4
        Hello,

        this is a very interesting topic!
        Has anyone ever managed to use own resource files in Ninjatrader indicators or other components?
        Either as resx or as dll file.

        It would be very helpful to get some hints for the implementation because I currently don't find a way to get it running.

        Thanks !!!
        Armin

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Haiasi, 04-25-2024, 06:53 PM
        2 responses
        17 views
        0 likes
        Last Post Massinisa  
        Started by Creamers, Today, 05:32 AM
        0 responses
        5 views
        0 likes
        Last Post Creamers  
        Started by Segwin, 05-07-2018, 02:15 PM
        12 responses
        1,786 views
        0 likes
        Last Post Leafcutter  
        Started by poplagelu, Today, 05:00 AM
        0 responses
        3 views
        0 likes
        Last Post poplagelu  
        Started by fx.practic, 10-15-2013, 12:53 AM
        5 responses
        5,408 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Working...
        X