scrawl
10-04-2011 15:12:04
Hello,
we would like to use MyGUI for translating our game into different languages.
I couldn't find any documentation on it, so I just tried it like this. I inserted a new tag in core_language_english_tag.xml:
<?xml version="1.0" encoding="UTF-8"?>
<MyGUI>
<Tag name="MyGUI_MessageBox_Ok">Ok</Tag>
<Tag name="MyGUI_MessageBox_Yes">Yes</Tag>
<Tag name="MyGUI_MessageBox_No">No</Tag>
<Tag name="MyGUI_MessageBox_Abort">Abort</Tag>
<Tag name="MyGUI_MessageBox_Retry">Retry</Tag>
<Tag name="MyGUI_MessageBox_Ignore">Ignore</Tag>
<Tag name="MyGUI_MessageBox_Cancel">Cancel</Tag>
<Tag name="MyGUI_MessageBox_Try">Try</Tag>
<Tag name="MyGUI_MessageBox_Continue">Continue</Tag>
<Tag name="MyApp_TestString">Test</Tag>
</MyGUI>
Then, I made a new widget in our Options.layout:
<Widget type="StaticText" skin="StaticText" position="32 488 144 24">
<Property key="Widget_Caption" value="MyApp_TestString"/>
<Property key="Text_TextColour" value="0.5 0.9 1"/>
</Widget>
But it doesn't work, in game it shows MyApp_TestString instead of Test.
Am I doing something wrong?
we would like to use MyGUI for translating our game into different languages.
I couldn't find any documentation on it, so I just tried it like this. I inserted a new tag in core_language_english_tag.xml:
<?xml version="1.0" encoding="UTF-8"?>
<MyGUI>
<Tag name="MyGUI_MessageBox_Ok">Ok</Tag>
<Tag name="MyGUI_MessageBox_Yes">Yes</Tag>
<Tag name="MyGUI_MessageBox_No">No</Tag>
<Tag name="MyGUI_MessageBox_Abort">Abort</Tag>
<Tag name="MyGUI_MessageBox_Retry">Retry</Tag>
<Tag name="MyGUI_MessageBox_Ignore">Ignore</Tag>
<Tag name="MyGUI_MessageBox_Cancel">Cancel</Tag>
<Tag name="MyGUI_MessageBox_Try">Try</Tag>
<Tag name="MyGUI_MessageBox_Continue">Continue</Tag>
<Tag name="MyApp_TestString">Test</Tag>
</MyGUI>
Then, I made a new widget in our Options.layout:
<Widget type="StaticText" skin="StaticText" position="32 488 144 24">
<Property key="Widget_Caption" value="MyApp_TestString"/>
<Property key="Text_TextColour" value="0.5 0.9 1"/>
</Widget>
But it doesn't work, in game it shows MyApp_TestString instead of Test.
Am I doing something wrong?