cuốn sách gpt4 ai đã làm

android - Play 商店如何识别应用程序的语言?

In lại Tác giả: Walker 123 更新时间:2023-11-29 01:30:35 28 4
mua khóa gpt4 Nike

我目前正在开发一个有多个客户的应用程序,我们使用构建服务器构建我们的 apk。我们的一些客户有西类牙语翻译,其他客户有俄语翻译等。

我想知道 Google Play 如何检测哪些语言是应用程序的一部分。是否与:

values-es

文件夹里什么都没有

hoặc

values-es\strings.xml

其中有 0 个或多个文件?

我们不想向用户显示该应用程序实际上没有西类牙文版本。

câu trả lời hay nhất

在 GooglePlay 上发布您的应用时,您必须做出决定

which countries and territories you want to distribute to

--> Determine Country Distribution

在运行时,

Android automatically selects and loads the resources that best match the device.

--> Resource-Switching in Android

因此请确保绝对每个字符串都有一个默认版本res/values/strings.xml 以避免应用程序崩溃
并可选择为其他语言添加文件夹/资源文件,例如值-es/strings.xml

如果不需要翻译字符串(例如许多语言中的“OK”),则您不必在相应的附加文件夹中提供版本。

关于android - Play 商店如何识别应用程序的语言?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31437367/

28 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress