solfinker Member Licensed User Longtime User May 25, 2016 #1 Hello! I know there is a splendid multilingual support using the AHLocale library but I really do not need so much. The only thing I need is to duplicate the menu's items in a couple of languages. Is there a nice and easy way to do this? Thanks for your hints.
Hello! I know there is a splendid multilingual support using the AHLocale library but I really do not need so much. The only thing I need is to duplicate the menu's items in a couple of languages. Is there a nice and easy way to do this? Thanks for your hints.
udg Expert Licensed User Longtime User May 25, 2016 #2 Hi, you could use code like the following to discover the language set for the device and a simple if..then..else clause to set your menu items accordigly (i.e. language1 for a specific language and language2 for any other). Code: Copy 'returns two-letters device default language Sub GetDefaultLanguage As String Dim r As Reflector r.Target = r.RunStaticMethod("java.util.Locale", "getDefault", Null, Null) Return r.RunMethod("getLanguage") End Sub udg Upvote 0
Hi, you could use code like the following to discover the language set for the device and a simple if..then..else clause to set your menu items accordigly (i.e. language1 for a specific language and language2 for any other). Code: Copy 'returns two-letters device default language Sub GetDefaultLanguage As String Dim r As Reflector r.Target = r.RunStaticMethod("java.util.Locale", "getDefault", Null, Null) Return r.RunMethod("getLanguage") End Sub udg
klaus Expert Licensed User Longtime User May 25, 2016 #3 You could have a look at the Simple NotePad example it uses multi language with simple text files, one for each language. Last edited: May 25, 2016 Upvote 0
You could have a look at the Simple NotePad example it uses multi language with simple text files, one for each language.