C Cor Active Member Licensed User Longtime User Dec 13, 2010 #1 I need for my program get language so i can set menu and text to language of phone grCor
agraham Expert Licensed User Longtime User Dec 13, 2010 #2 Using my Reflection library B4X: Dim Obj1 As Reflector Dim args(0) As Object Dim types(0) As String Msgbox(Obj1.RunStaticMethod("java.util.Locale", "getDefault", args, types), "Language")
Using my Reflection library B4X: Dim Obj1 As Reflector Dim args(0) As Object Dim types(0) As String Msgbox(Obj1.RunStaticMethod("java.util.Locale", "getDefault", args, types), "Language")
C Cor Active Member Licensed User Longtime User Dec 13, 2010 #3 is there a way to change the emulator to a different language? grCor
agraham Expert Licensed User Longtime User Dec 13, 2010 #4 Settings -> Language and Keyboard -> Select Locale
A Anuj_Singh Member Licensed User Longtime User Jun 9, 2014 #6 And what is code for, if I want to Set language for my mobile ?
Erel B4X founder Staff member Licensed User Longtime User Jun 10, 2014 #7 You cannot change the device locale programmatically.
A Anuj_Singh Member Licensed User Longtime User Jun 11, 2014 #8 But Erel there is one Library VisualNet why don't you just provide it. It will solve language conversion problem.
But Erel there is one Library VisualNet why don't you just provide it. It will solve language conversion problem.
Erel B4X founder Staff member Licensed User Longtime User Jun 11, 2014 #9 Can you post a link to this library?
A Anuj_Singh Member Licensed User Longtime User Jun 11, 2014 #10 Here I attach this library. This library provided by Mr. Alberto Iglesias. He provide following code. Look this example: To change the locate to PORTUGUESE/BRAZIL, I put this lines and thats it! Dim objVisualNet As VisualNet objVisualNet.Initialize("VisualNet") objVisualNet.ChangeLocale("pt","BR") Attachments VisualNetLib110.zip 3.6 KB · Views: 251
Here I attach this library. This library provided by Mr. Alberto Iglesias. He provide following code. Look this example: To change the locate to PORTUGUESE/BRAZIL, I put this lines and thats it! Dim objVisualNet As VisualNet objVisualNet.Initialize("VisualNet") objVisualNet.ChangeLocale("pt","BR")
Erel B4X founder Staff member Licensed User Longtime User Jun 11, 2014 #11 Does it change the device locale or only the current process locale?
Erel B4X founder Staff member Licensed User Longtime User Jun 11, 2014 #13 In that case it is a good solution
A Anuj_Singh Member Licensed User Longtime User Jun 11, 2014 #14 Yes it is ! I integrate this same with Localization Example. It works fine.