Text in alternative languages

touchsquid

Active Member
Licensed User
Longtime User
I have coded a fairly complex B4A application using explicit strings in the dialogs and titles. This works OK, but I have a need to substitute these for different languages, French first, but later many others.

In native Android it seems they use resource files for this, almost exactly as I am used to in Windows Visual Studio.

I thought of using MAP files, which would certainly work but how would I create them outside of the B4K environment? Are they XML? What is the format?

Is there another way? Any suggestions are welcome.
 

touchsquid

Active Member
Licensed User
Longtime User
Answering my own question--maybe?

What about an SQLite database, where key is an abbreviated version of the English phrase and each column is named by language and contains the non-English phrases.

I can easily create the database from an Excel spreadsheet, and import with SQlite tools.

The only objection I see is the database gets bigger with each language added, but the app contains only a few dozen phrases, so it wouldn't ever get huge.

Unless a better idea turns up, we'll do it this way.
 
Upvote 0

touchsquid

Active Member
Licensed User
Longtime User
Thank you so much! I searched but did not use the word locale...
 
Upvote 0
Top