Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
212 views
in Technique[技术] by (71.8m points)

android - CyanogenMod: Translate a Project

I have translated a project in CyanogenMod (the Email app) to Hebrew by adding a values-he folder, and compiled the entire repository (make). I have made sure that the full languages make file includes the Hebrew language.

However, when I loaded the update zip to the phone and switched the language to Hebrew, I still received the English strings. I'm pretty sure I am missing a step.

Any idea, please?

EDIT: Again, my phone supports Hebrew - as evident by other applications that do switch locale according to the values-he folder content. It's just for the Email application that it doesn't work.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

According to ISO 639, he is the correct ISO 639-1 code for the hebrew language. Whereas iw was deprecated back in 1989. The reason some Android devices use iw is thanks to Sun, you can read the details.

Devices like the Nexus S, sold in the US use iw. If you go to Israel and check the locale on a phone sold there (Galaxy S for example), the language will most likely be reported as "He IL N/A ?????", so it correctly uses he and not the deprecated iw.

If you want to support this fully, you should include both variations to account for these differences.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...