Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android not using/finding my Hebrew localization.

I'm working to localize my app for a number of language. Spanish is working great but Hebrew isn't showing up.

What confuses me is if I put the contents of my Hebrew strings folder in the Spanish folder(values-es) it works great. Spanish in my Hebrew folder(values-he) does not work though...

Any thoughts would be greatly appreciated.

like image 700
isep Avatar asked Dec 06 '11 00:12

isep


People also ask

How to add language support in Android app?

To add multi language support, add additional values directories inside the res/ directory. Once you've decided on the languages you will support, create the resource sub directories and string resource files. For example: Now, add the string values for each locale into the appropriate file.


2 Answers

rogcg is right for most Android devices, but apparently the Samsung Galaxy S2 incompatibly uses locale "he" for Hebrew and ignores values-iw/. If you want to be compatible with those devices too, you need to store duplicate copies in both values-iw/ and values-he/. See also https://stackoverflow.com/a/8573059/405214.

like image 135
klausw Avatar answered Oct 23 '22 02:10

klausw


Hebrew is locale like 'iw', and also 'he'.

As the @klausw mentioned in his answer:

you better store duplicate copies in both values-iw/ and values-he/ just to make sure it works in all devices.

like image 20
rogcg Avatar answered Oct 23 '22 03:10

rogcg