添加自定义的语言 - 本地化 [英] Add custom language - localization

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

问题描述

即时通讯使用在我的Andr​​oid应用程序本地化。我更改了内部应用程序本地化,因此它不改变系统设置。我创建一个名为显示目录的价值观-NL和价值观恩。这工作得很好。击打可以说,我要创造我自己的语言。当我这样做,我创建自己的文件夹,如值测试是trows我一个错误。

这是我如何设置内部应用程序本地化:

 区域设置区域=新区域(NL);
Locale.setDefault(区域);


解决方案

  

击打可以说,我要创建我自己的语言。


这是不可能的,但通过自定义固件。 -test 不会成为一个公认的资源集。欢迎您来支持任何你想要的Andr​​oid版本所支持的语言 - 你可以找到这些在SDK发行说明的语言环境部分的列表,如的这些为Android 4.0.3

据说,您可以使用区域设置来改变什么资源集将在飞行中使用,虽然我还没有尝试过这个自己。

Im using localization in my Android app. I change the localization inside the app, so it doesn't change the system settings. I create dirs with the name "values-nl" and "values-en". This works fine. Buts lets say I want to create my own language. When I do this and create my own folder like "values-test" is trows me an error.

this is how i set the localization inside the app:

Locale locale = new Locale("nl");   
Locale.setDefault(locale); 

解决方案

Buts lets say I want to create my own language.

This is not possible, except via custom firmware. -test is not going to be a recognized resource set. You are welcome to support any of the languages that your desired version of Android supports -- you can find the list of these in the Locales section of the SDK release notes, such as these for Android 4.0.3.

Reputedly, you can use Locale to change what resource set will be used on the fly, though I have not tried this myself.

这篇关于添加自定义的语言 - 本地化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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