我怎么能发展印地文语言中的Android应用程序? [英] how can i develop an Android application in Hindi language ?
问题描述
##我想开发支持应用程序英文和印地文##
1.我想创建此应用程序4.0冰淇淋三明治
块引用>解决方案这是通过存储为每种语言显示不同的资源文件文本值。
阅读本的http://developer.android.com/training/basics/supporting-devices/languages.html
应解决您的问题。
资源结构:
MyProject的/
RES /
值/
的strings.xml
值喜/
的strings.xml添加字符串值每个区域设置到相应的文件。
在运行时,Android系统使用适当的设置基于当前为用户的设备中设置的语言环境字符串资源。
例如,以下是一些不同的字符串资源文件不同的语言。
英语(默认语言环境),/values/strings.xml:< XML版本=1.0编码=UTF-8&GT?;
<资源>
<字符串名称=标题>我的应用程序和LT; /串>
<字符串名称=参考hello world>的Hello World<!/串>
< /资源>印地文,/values-hi/strings.xml:< XML版本=1.0编码=UTF-8&GT?;
<资源>
<字符串名称=标题>कखग< /串>
<字符串名称=参考hello world>ककक< /串>
< /资源>## I want to develop an application that support English and Hindi##
1.i want to create this application for 4.0 ice cream sandwich
解决方案It is done by storing values for text displayed in different resource files for each language.
Read this http://developer.android.com/training/basics/supporting-devices/languages.html
it shall solve your problem
The resource structure:
MyProject/ res/ values/ strings.xml values-hi/ strings.xml
Add the string values for each locale into the appropriate file.
At runtime, the Android system uses the appropriate set of string resources based on the locale currently set for the user's device.
For example, the following are some different string resource files for different languages.
English (default locale), /values/strings.xml: <?xml version="1.0" encoding="utf-8"?> <resources> <string name="title">My Application</string> <string name="hello_world">Hello World!</string> </resources> Hindi, /values-hi/strings.xml: <?xml version="1.0" encoding="utf-8"?> <resources> <string name="title">कखग</string> <string name="hello_world">ककक</string> </resources>
这篇关于我怎么能发展印地文语言中的Android应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!