Wish Universal portable translations

b4auser1

Well-Known Member
Licensed User
Longtime User
Create in Designer page to place table of strings with translation to different languages.
key | xx | translation | enabled/disabled.
where xx code of language.

Save translation table to resource file *.btl which can be used in all B4X IDE with B4A, B4i, B4j apps. (One *.btl file for B4A, B4i, B4j app.)

Provide automatical translation of string vlaues in Designer view properties like (text, hinttext, ...) if a key from *.btl is found.

Add function GetTranslation(key As String, default as String)
to get translation in code.
 

Cableguy

Expert
Licensed User
Longtime User
It already exists....
B4xLocalizator!
 

b4auser1

Well-Known Member
Licensed User
Longtime User
There is no support for: "Provide automatical translation of string vlaues in Designer view properties like (text, hinttext, ...) if a key from *.btl is found."
 

Cableguy

Expert
Licensed User
Longtime User
of course not! neither the IDE neither the designer know that the hardcoded strings are to be translated!
You can/should use thr B4Xlocalizator along with default values... if the translation is not found, the default value is used... but you need to tell it yourself!
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…