开发者

Custom locale in Android

the Android phones in Slovakia have a custom locale - en_SK a开发者_开发问答nd cs_SK. Language is either Czech or English, location is Slovakia. Now I would like to have strings that target these locales. The default approach is to create a folder "values-CountryCode", for Czech Republic it's values-cs.

But I get a build error if I add a folder name values-en_SK or values-cs_SK: "invalid resource directory name"

What to do?


I am answering my own question :-).

It's values-en-rSK, -r is Region.


For Slovakia - Slovak location you have to create folder

res/values-sk-rSK

Working in Android 2.3 and >

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜