Android not using/finding my Hebrew localization.

假装没事ソ 提交于 2019-12-10 02:54:30

问题


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.


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/8393771/android-not-using-finding-my-hebrew-localization

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!