Hi,
I am just wondering how to make multilanguage GUI’s.
This seem a very noob problem…
My idea is to create a languageClass with a public static Dictionary myDictionary.
The keys would be the strings in English, while the values - these strings in other languages.
The language class would operate on the xml text asset containing all the strings in all languages.
A language change by user would redefine myDictionary to the selected language.
Then in OnGUI function I would use:
if(GUI.Button (new Rect(76,22,72,32), languageClass.myDictionary["myString"]) ...
So I would prefer to use the string keys, not id or index, in order to keep the scripts more transparent.
Is that a proper way to make a multilanguage GUI?