问题描述
我有3个产品的风味,调试和发布的每个香味,其每一个我已成功给每个唯一的字符串和图标。现在,我是preparing进行本地化,这就需要不同的字符串为每个产品的味道。这是我当前文件夹/目录设置:
I have 3 product flavors, debug and release for each flavor, each of which I have successfully given each unique strings and icons. Now I am preparing for Localization, which requires different strings for each product flavor. Here's my current folder/directory setup:
myApp/
src/
main/
res/
values/strings.xml
flav1Debug/
res/
values/strings.xml
flav1Release/
res/
values/strings.xml
flav2Debug/
res/
values/strings.xml
flav2Release/
res/
values/strings.xml
flav3Debug/
res/
values/strings.xml
flav3Release/
res/
values/strings.xml
每个产品的风味已经覆盖默认的strings.xml。现在我需要我的西班牙语和法语字符串覆盖默认字符串为每个产品的味道。这里就是我假设我的文件夹/目录的设置必须是:
Each product flavor is already overriding the default strings.xml. Now I need my Spanish and French strings to override the default strings for each product flavor. Here's what I'm assuming my folder/directory setup needs to be:
myApp/
src/
main/
res/
values/strings.xml
values-es/strings.xml
values-fr/strings.xml (repeated for each flavor below)
flav1Debug/
res/
values/strings.xml
flav1Release/
res/
values/strings.xml
flav2Debug/
res/
values/strings.xml
flav2Release/
res/
values/strings.xml
flav3Debug/
res/
values/strings.xml
flav3Release/
res/
values/strings.xml
有人可以证实我的假设?然后,我必须要找到没有得到停留在我的手机一门外语来测试它最简单的方法。
Can someone confirm my assumption?Then I have to find the easiest way to test it without getting stuck on a foreign language on my phone.
在此先感谢,德文
推荐答案
这是结构看起来正确的,看到的.
That structure looks right, see http://developer.android.com/training/basics/supporting-devices/languages.html.
您也可以使用Robotium(的https://$c$c.google.com / P / robotium / ),以帮助自动化测试来确认。
You can also use Robotium (https://code.google.com/p/robotium/) to help automate testing to confirm.
这篇关于在产品口味本土化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!