如何为每种语言使用APP名称(从Cordova到Android) [英] How to have an APP name for each language (Cordova to Android)

查看:66
本文介绍了如何为每种语言使用APP名称(从Cordova到Android)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用cordova并想发布到Google Play,我该如何发布每种语言的不同名称的APP?

解决方案

您只需要在string.xml文件中更改应用程序名称

在value/strings.xml中

 < string name ="app_name">英文的应用名称</string> 

在value-fr/strings.xml

 < string name ="app_name">应用名称法语(</string> 

Android会根据当前设备语言自动在主屏幕和应用屏幕中更改应用名称

这是一个很好的例子,开头是:-

I'm using cordova and a wanna publish to Google Play, how can I publish a APP with diferent name to each language?

解决方案

You just need to change app name in string.xml files

in value/strings.xml

 <string name="app_name">App Name in English</string>

in value-fr/strings.xml

 <string name="app_name">App name French</string>

Android will automatically change app name both in home screen and in app screens according to current device language

This is good example to start with :- https://www.icanlocalize.com/site/tutorials/android-application-localization- tutorial/

This is documentation regarding localization :- http://developer.android.com/training/basics/supporting-devices/languages.html

This is list of supported languages by android :- What is the list of supported languages/locales on Android?

这篇关于如何为每种语言使用APP名称(从Cordova到Android)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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