Forum Discussion

ramyajawaharlal's avatar
8 years ago

String Localization

Can anybody let me know how to localize strings in scenography application used within the application at one place and call it whenever its used.

3 Replies

  • RokuKC's avatar
    RokuKC
    Roku Employee
    "ramyajawaharlal" wrote:
    Can anybody let me know how to localize strings in scenography application used within the application at one place and call it whenever its used.


    See SceneGraph Localization
  • "RokuKC" wrote:
    "ramyajawaharlal" wrote:
    Can anybody let me know how to localize strings in scenography application used within the application at one place and call it whenever its used.


    See SceneGraph Localization

    I referred this page, but it has string localization for string translation. But i need to localize the hard coded strings within the application and localize it in a place and call it.
  • RokuKC's avatar
    RokuKC
    Roku Employee
    "ramyajawaharlal" wrote:
    ...
    I referred this page, but it has string localization for string translation. But i need to localize the hard coded strings within the application and localize it in a place and call it.


    Sorry, I don't know what you are asking for.  
    The SDK supports that you embed English strings in your BrightScript code (wrapped in Tr() calls) and/or SceneGraph XML, and if you provide a supported translation dictionary those strings will automatically be translated to the user's current UI language.
    If you want some other functionality, you are certainly free to implement other solutions.