Language support

HotShoe

Well-Known Member
Licensed User
Longtime User
I'd like the ability to use language files in B4a apps. So I can translate strings in my layouts to different languages using the res directory structure. I have had requests from customers, but I see no way to do this in b4a yet.

--- Jem
 

warwound

Expert
Licensed User
Longtime User
I've just updated my AndroidResources library with a method which can do the same as the code posted by Erel but not require the Reflection library.

If you have an app where you want to define many Strings and use them in your app my new method will work but is not optimised.

I could create a new method where you pass an array of String resource names and the method returns a Map containing resource name keys and resource values as Map values.

That'd be more efficient - post in this thread or the AndroidResources thread if you'd like me to create such a method.

Martin.
 

HotShoe

Well-Known Member
Licensed User
Longtime User
Thanks Martin,

I just got your lib and it looks great. All kinds of wishes are answered there. Thanks!

--- Jem
 
Top