imbault Well-Known Member Licensed User Longtime User Apr 12, 2015 #1 Is there any lib or class to make a multilanguage App for B4i like AHLocale Lib for B4a ? It would be very usefull. Thx Patrick
Is there any lib or class to make a multilanguage App for B4i like AHLocale Lib for B4a ? It would be very usefull. Thx Patrick
Erel B4X founder Staff member Licensed User Longtime User Apr 13, 2015 #2 You can save the string resources in a text file and load them with File.ReadMap. The format is quite simple to work with. Upvote 0
You can save the string resources in a text file and load them with File.ReadMap. The format is quite simple to work with.
imbault Well-Known Member Licensed User Longtime User Apr 13, 2015 #3 Erel, where is the string resources located? is it within a file? Handle of date formats? How to know the language used on the Ios device? Last edited: Apr 13, 2015 Upvote 0
Erel, where is the string resources located? is it within a file? Handle of date formats? How to know the language used on the Ios device?
Erel B4X founder Staff member Licensed User Longtime User Apr 13, 2015 #4 It is up to you. However you can simply put each of the language files in the Files folder. Handling dates is quite simple. You can set DateTime.DateFormat = DateTime.DeviceDefaultDateFormat. Get the device language: https://www.b4x.com/android/forum/threads/getting-current-device-language-in-ios.47609/#post-294876 Upvote 0
It is up to you. However you can simply put each of the language files in the Files folder. Handling dates is quite simple. You can set DateTime.DateFormat = DateTime.DeviceDefaultDateFormat. Get the device language: https://www.b4x.com/android/forum/threads/getting-current-device-language-in-ios.47609/#post-294876
imbault Well-Known Member Licensed User Longtime User Apr 13, 2015 #5 Thanks Erel, so you mean for string, I have to do it programmatically like: B4X: button1.Text ="Envoyer" 'becomes button1.Text = getLocale("Envoyer") Sub GetLocale(s as string) ... End sub Upvote 0
Thanks Erel, so you mean for string, I have to do it programmatically like: B4X: button1.Text ="Envoyer" 'becomes button1.Text = getLocale("Envoyer") Sub GetLocale(s as string) ... End sub