Localization in /html hierarchy

9 views
Skip to first unread message

P5music

unread,
Dec 14, 2020, 9:58:38 AM12/14/20
to CodenameOne Discussions
My app has a form to display the user manual, loading a web page in a BrowserComponent. It is loaded from file, that is in the htm folder.

I need that every supported language has a translated user manual. I have two translations at the time and they have to be deployed when my app goes on the AppStore.

I created an interface for String resources, to have localization with keys, like they do on Android, but I think it is not good for the HTML user manual, although it is possible to put the entire web-page HTML code in a String.
How could I create different subfolders in the html hierarchy. Would it work?
Otherwise what different strategy can be used?
Thanks in advance

Shai Almog

unread,
Dec 14, 2020, 11:19:15 PM12/14/20
to CodenameOne Discussions
Folders for resources only work for the html root package where you can build any HTML you want: https://www.codenameone.com/blog/html-hierarchy-release-plan-teavm.html
Reply all
Reply to author
Forward
0 new messages