The application has a "Settings" page where you can set the desired language.
If several application pages have already been added to B4XPages, how can I change the language of these pages? Is it possible to find all these pages, delete them and recreate them with a new language?
The application has a "Settings" page where you can set the desired language.
If several application pages have already been added to B4XPages, how can I change the language of these pages? Is it possible to find all these pages, delete them and recreate them with a new language?
It's also suitable for B4XPages (don't think of B4XPages as a completely different "environment"—they're projects with classes and a single Main (Activity / Form / Pane (b4i?)).
Everything you can do with a "classic" project (Activities) can be done with B4XPages.
But it's highly recommended to develop new B4XPages-type projects.
If several application pages have already been added to B4XPages, how can I change the language of these pages? Is it possible to find all these pages, delete them and recreate them with a new language?
I can't find an example of using Localizator in B4XPages so I tried to make it work in B4XPages with a simple example. Sub Process_Globals Private fx As JFX Private MainForm As Form Public Loc As Localizator End Sub Private Sub B4XPage_Created (Root1 As B4XView) Root =...
So will it be necessary to go through all the pages of the application, delete them and create them again? Perhaps that is what will have to be done. Thanks!
Maybe you can have a public variable such as BlnLocaleChanged As Boolean. Check this value in B4XPage_Appear or B4XPage.IsInitialized.
If True, update the B4XView or Labels with the translated Text.