I have taken below example for localization,
It has below code to change the language on the fly,
I need similar in B4XPage project, I tried to emulate it as
But the app just close down. How to achieve the same in B4XPages ?
[B4X] Localizator - Localize your B4X applications
Localizator is a cross platform solution for strings localization. The strings are defined in an Excel workbook. They are then converted to a SQLite database file with a B4J program: The database file should be added to the Files tab of your application. Localizator is a class. You need...
www.b4x.com
It has below code to change the language on the fly,
B4X:
Sub lstLanguages_ItemClick (Position As Int, Value As Object)
Starter.loc.ForceLocale(Value)
Activity.Finish
StartActivity(Me)
End Sub
I need similar in B4XPage project, I tried to emulate it as
B4X:
Private Sub lstLanguages_ItemClick (Position As Int, Value As Object)
Log(Position & " " & Value)
loc.ForceLocale(Value)
B4XPages.GetNativeParent(Me).Finish
StartActivity(Me)
End Sub
But the app just close down. How to achieve the same in B4XPages ?