Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SceneGraph Localisation


Trying to get SG component localised as to the Docs which state:

For strings defined in XML markup in a <children> element, or <interface> element field strings, the strings will be automatically translated by the Scene Graph application, if translations of the string exist in the localization files. If no translation file exists for the current locale, or no translation of the string exists in the translation file, the original string will be used.

I have a Label as:

<Label text="Hello"></Label>

And translation file as:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
    <file datatype="x-brs" original="components/MainScene.brs" source-language="en-US" target-language="de-DE">
            <!--Insert Translations rows here similar to: <trans-unit id="0"><source>Select the style for the analog clock</source><target>Wählen Sie den Analog Clock Style</target></trans-unit>-->
    <file datatype="x-brs" original="source/main.brs" source-language="en-US" target-language="de-DE">
            <trans-unit id="0">

But the label is not getting localised. i.e. it is always set to "Hello"

If I print tr("Hello") it gets translated as expected. 

Any ideas?


0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.