本文介绍了Android的出口签名的应用程序包中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试了谷歌茂出口签名的应用程序包,我得到我的RES /价值/ string.xml文件这个错误。我应该怎么办?
APP_NAME没有翻译AF,AM,AR,是,BG,CA,CS,DA,德,埃尔,EN-RGB,ES,ES-RUS,等,发,音响,FR,喜小时,胡锦涛在,它,IW,JA,KO,其中,LV,MS,NB,NL,PL,PT,PT-RPT,RO,RU,SK,SL,SR, SV,SW,TH,TL,TR,英国,六,ZH-RCN,ZH-RTW,祖
问题:检查不完整的翻译因为不是所有的字符串翻译
编号:MissingTranslation
如果应用程序具有一个以上的区域设置,那么所有的一种语言声明的字符串也应被翻译的在所有其他语言。
如果该字符串不应该被翻译,你可以添加属性翻译上的&lt =假;字符串>元素,也可以定义所有的在一个名为donottranslate.xml一个资源文件不可翻译的字符串。或者,你可以用一个工具忽略了这个问题:忽略=MissingTranslation属性。
默认情况下此检测器允许一个语言地区只提供字符串的一个子集,并回落到标准的语言字符串。您可以要求所有区域设置环境变量ANDROID_LINT_COMPLETE_REGIONS提供一个完整的翻译。
你可以告诉皮棉(和其他工具),它的语言是在你的RES /价值/文件夹的默认语言通过指定工具:区域设置=语言code根<资源>元素资源文件。 (该工具preFIX是指名称空间声明http://schemas.android.com/tools。)
解决方案
在窗口> preferences> 机器人> 林特错误检查
:
到 MissingTranslation
线,并将其设置为警告:
When I try to export signed application package for google mao, I get this error on my res/value/string.xml file. What should i do?
app_name" is not translated in af, am, ar, be, bg, ca, cs, da, de, el, en-rGB, es, es-rUS, et, fa, fi, fr, hi, hr, hu, in, it, iw, ja, ko, lt, lv, ms, nb, nl, pl, pt, pt-rPT, ro, ru, sk, sl, sr, sv, sw, th, tl, tr, uk, vi, zh-rCN, zh-rTW, zu
Issue: Checks for incomplete translations where not all strings are translated
Id: MissingTranslation
If an application has more than one locale, then all the strings declared in one language should also be translated in all other languages.
If the string should not be translated, you can add the attribute translatable="false" on the <string> element, or you can define all your non-translatable strings in a resource file called donottranslate.xml. Or, you can ignore the issue with a tools:ignore="MissingTranslation" attribute.
By default this detector allows regions of a language to just provide a subset of the strings and fall back to the standard language strings. You can require all regions to provide a full translation by setting the environment variable ANDROID_LINT_COMPLETE_REGIONS.
You can tell lint (and other tools) which language is the default language in your res/values/ folder by specifying tools:locale="languageCode" for the root <resources> element in your resource file. (The tools prefix refers to the namespace declaration http://schemas.android.com/tools.)
解决方案
In "Window" > "Preferences" > "Android" > "Lint Error Checking"
:
Go to MissingTranslation
line, and set it to Warning:
这篇关于Android的出口签名的应用程序包中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!