Android的本地化问题 [英] Android localization question

查看:222
本文介绍了Android的本地化问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在翻译的应用程序的过程。看着,我可以看到很多国家有几个codeS语言。

I'm in the process of translating an app. Looking at this, I can see that a lot of countries have several codes for language.

我试图使一个文件夹命名值-NB,为挪威语。我改变了语言环境对我的手机挪威。这个工作对我的索尼埃里克松的Xperia 8,而不是对三星Galaxy Tab。

I tried making a folder named values-nb, for Norwegian Bokmål. I changed the locale on my phones to Norway. This worked on my Sony Ericson Xperia 8, but not on the Samsung Galaxy Tab.

我又试图重命名文件夹,以价值观为无。现在的工作的Galaxy Tab上,而不是在了Xperia。我创建了两个文件夹,和它的作品。但后来我不得不把相同的文件每个文件夹中!

I then tried renaming the folder to values-no. It now works on the galaxy tab, but not on the xperia. I create both folders, and it works. But then I have to put the same file in each folder!

如果有人选择了挪威尼诺斯克文,就我要创建另一个文件夹,以便它们不会默认为英语,但获得挪威文?值-NN?

What if someone chose Norwegian Nynorsk, would I have to create yet another folder so that they don't default to English but get the Norwegian text? values-nn?

我想我的问题是这样的: 我如何得到这个工作?我可以使所有这些文件夹,然后让他们参考值,不是吗?请帮助:)

I guess my question is this: How do I get this to work? Can I make all these folders and then make them reference the values-no? Please help :)

推荐答案

有根据目前的搜索规则没有办法只是有一个定位为一个特定的国家,能够搜索所有的语言。至少,这是我的理解,从阅读的页面,在<一个href="http://developer.android.com/guide/topics/resources/localization.html">http://developer.android.com/guide/topics/resources/localization.html您将需要创造价值-NN-RNO,价值观-NB-RNO和价值观,没有RNO和有重复strings.xml中的条目。

There's no way under the current search rules to just have a localization for a specific country and be able to search all languages. At least that's my understanding from reading the pages at http://developer.android.com/guide/topics/resources/localization.html You would need to create values-nn-rNO, values-nb-rNO, and values-no-rNO and have duplicate strings.xml entries.

我还没有尝试过这一点,但考虑字符串别名的<一个href="http://developer.android.com/guide/topics/resources/providing-resources.html#AliasResources">http://developer.android.com/guide/topics/resources/providing-resources.html#AliasResources

I haven't tried this, but look into string aliases at http://developer.android.com/guide/topics/resources/providing-resources.html#AliasResources

这篇关于Android的本地化问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆