Android Question Localization help for unsupported language(s)

RhodesB4A

Member
Licensed User
Longtime User
Hi, I am trying to localize my app for South African specific languages, more specifically, Xhosa and Zulu, however, using strings.xml files and localizing the language based on the phones settings won't work as those languages are unsupported on android officially.

I was wondering is there a way to hard-code such translations or in a way, trick the system, allowing me to code translations for Xhosa under the guise of it being french, and in the app, when the user selects the language they wish to use, change the phones language settings programatically, in essence changing the phones language setting to french under-which is the Xhosa translations.

If using strings.xml and tricking the system is not possible or recommended, how would one be able to hard-code the translations such as store the translations in a text file and then load it from there and assign it to the text fields and buttons and other variables?

And if it is possible, how can I do this?

Any assistance in this regard would be greatly appreciated.
 

RhodesB4A

Member
Licensed User
Longtime User
Hi Erel, thanks for your prompt response. I've looked at AHLocale, but I am not sure how it works or how I would make it work.

I am a heavy novice user of basic4android. Are there are tutorials available or documentation explaining how it works and how to use it for my purposes?
 
Upvote 0

RhodesB4A

Member
Licensed User
Longtime User
Yes I have read through that thread. However my application does not seem to create any default string resources in Objects/res/values. Because I'm guessing that this default string makes it easier for me to then begin translating to my custom language?
 
Upvote 0
Top