此博文转自:http://blog.csdn.net/cxc19890214/article/details/39120415
问题:当我们开发完成一个Android应用程序后,在发布该应用程序之前必须要经过的一步时打包应用程序。
至于从打包程序到发布的完整过程可以参考: Android 应用程序发布流程---碗豆荚发布流程
选择Eclipse ADT打包应用程序的过程如下:
可是在这时,会出现如下提示:
并且原本没有错误的程序(values/strings.xml)也会出现如下错误提示:
- "app_name" is not translated in "af" (Afrikaans), "am" (Amharic), "ar" (Arabic), "bg" (Bulgarian), "ca" (Catalan),
- "cs" (Czech), "da" (Danish), "de" (German), "el" (Greek), "en-rGB" (English: United Kingdom), "en-rIN" (English:
- India), "es" (Spanish), "es-rUS" (Spanish: United States), "et-rEE" (Estonian: Estonia), "fa" (Persian),
- "fi" (Finnish), "fr" (French), "fr-rCA" (French: Canada), "hi" (Hindi), "hr" (Croatian), "hu" (Hungarian), "hy-
- rAM" (Armenian: Armenia), "in" (Indonesian), "it" (Italian), "iw" (Hebrew), "ja" (Japanese), "ka-rGE" (Georgian:
- Georgia), "km-rKH" (Khmer: Cambodia), "ko" (Korean), "lo-rLA" (Lao: Lao People's Democratic Republic),
- "lt" (Lithuanian), "lv" (Latvian), "mn-rMN" (Mongolian: Mongolia), "ms-rMY" (Malay: Malaysia), "nb" (Norwegian
- Bokmål), "nl" (Dutch), "pl" (Polish), "pt" (Portuguese), "pt-rPT" (Portuguese: Portugal), "ro" (Romanian),
- "ru" (Russian), "sk" (Slovak), "sl" (Slovene), "sr" (Serbian), "sv" (Swedish), "sw" (Swahili), "th" (Thai),
- "tl" (Tagalog), "tr" (Turkish), "uk" (Ukrainian), "vi" (Vietnamese), "zh-rCN" (Chinese: China), "zh-rHK" (Chinese:
- Hong Kong), "zh-rTW" (Chinese: Taiwan, Province of China), "zu" (Zulu)
是什么原因呢?原因如下:
在Android SDK Tool r19之后, Export的时候遇到xxx is not translated in yyy, zzz的问题。
例如说"auto_name" is not translated in zh, zh_CN.
这是因为Android SDK Tool 將 ANDROID_LINT_COMPLETE_REGIONS 改为了需要检查。
如何解决呢?
其实,以上提示已经给我们答案。一种是“fix these before running Export ”,另一种是“turn off 'Run full error check when exporting app'”
方法如下:
先说后者:“turn off 'Run full error check when exporting app'“
(1)在Eclipse中打开Preference,按下图操作:
(2)再说前者:“fix these before running Export ”
操作如下图所示:
双击选择4,会在5的左侧出现对该问题的描述,如下:
框中也给我们三种解决方法。
即:
1》If the string should not be translated, you can add the attribute translatable="false" on the <string> element,
这种方法只适合数量较少的情况下。
2》字符串数量较大的情况,会很麻烦,这时可以采用另一种方法:
or you can define all your non-translatable strings in a resource file called donottranslate.xml.
即我们可以将所有不需要non-translatable 的字符串统一放入一个名叫donottranslate.xml的文件中。
在values新建donottranslate.xml文件,并把不需要non-translatable 的字符串放入其中.
donottranslate.xml:
- <span style="font-size:14px;"><?xml version="1.0" encoding="utf-8"?>
- <resources>
- <string name="app_name">UMengDemo</string>
- <string name="action_settings" >Settings</string>
- <string name="sharePic_text" >分享本地图片</string></span><pre name="code" class="html" style="text-indent: 0.10000000149011612px;"><span style="font-size:14px;"></resources></span>
3》Or, you can ignore the issue with a tools:ignore="MissingTranslation" attribute.
以上操作完成后,最好选择“Clean”一下项目,方法如下:
这样就可以解决以上问题了。
相关推荐
Android 应用程序能够自动翻译智能手机相机拍摄的文字图片。 处理的结果图像与原文相似,但在原文的同一位置包含翻译结果。 第三方资源 文本检测:基于 Menglong Zhu 在 Literate PR2 架构上的工作。 由 Andrei ...
Retro watch is open source smart watch project using Arduino and Android. ========== How-To: RetroWatch 제작방법 - 상세버전 (한글) RetroWatch 안드로이드 앱 사용방법 How-To: Make your own smart watch ...
华科大作业C++,画图城程序 MICROSOFT FOUNDATION CLASS LIBRARY : MyPen AppWizard has created this MyPen application for you. This application not only demonstrates the basics of using the ...
(a) filling in skeleton tables of the database with examples of what is to be retrieved (b) placing SQL keywords, such as select, under the column names they want to retrieve (c) typing a ...
注意:这个分支(master)包含一个没有任何应用程序代码的框架,非常适合创建一个新的应用程序或挑战。 如果您正在寻找使用此框架构建的示例应用程序,请查看分支,其中包括基本的 CRUD 和 RSpec 测试。 目的 辛纳屈...
The information contained in this document is subject to change without notice. HEWLETT-PACKARD PROVIDES THIS MATERIAL “AS IS” AND MAKES NO WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED, INCLUDING, BUT...
Main use case is controlling audio recording state (like in Telegram, Viber, VK). Getting started Add library as dependency to your build.gradle. compile 'com.dewarder:holdingbutton:0.1.3' How to ...
现在进行时的被动语态由"be (am/is/are) being done"构成,强调的是动作的承受者。 一、基本结构: 1. **肯定结构**:主语 + be (am/is/are) + being + 过去分词。 例句:The plan is being discussed at the ...
Windows 98 and ME are not supported in BurnInTest version 5.3 and above. Use a version of BurnInTest prior to 5.2 for compatibility with W98 and ME. Windows 95 and Windows NT =======================...
English version is being re-translated, coming soon... Android平台中对页面、原生路由功能的中间件,我的目标是 —— 简单且完美 最新版本 V1.0.0 同类对比 完美配套插件化的实现方案;(目前市面上路由组件都很...
property bool translated: false } ``` 这段代码创建了一个`MouseArea`,当点击时,如果`translated`为`false`,则向`Image`添加一个`Translate`转换,使图片向右下角平移50像素;反之,则移除所有转换,恢复原始...
Simpletask is translated using weblate: Cloudless Cloudless stores tasks in a todo.txt file, which can be synced between devices with an app like Nextcloud. Dropbox Dropbox stores tasks in a...
这篇名为“Types and Terms Translated Unrestricted Resources in Encoding Functions as Processes (Extended Version)”的论文,由Joseph W. N. Paulus、Daniele Nantes-Sobrinho和Jorge A. Pérez共同撰写,探讨...
REPO_LREV is the name of the revision from the manifest, translated to a local tracking branch. Used if you need to pass the manifest revision to a locally executed git command. REPO_RREV is the name...
用VC实现屏幕保护程序 ======================================================================== MICROSOFT FOUNDATION CLASS LIBRARY : B14 ===============================================================...
If your application uses MFC in a shared DLL, and your application is in a language other than the operating system s current language, you will need to copy the corresponding localized resources ...
chronica, Erlang应用程序的日志框架 [This document translated on russian] ( https://github.com/eltex-ecss/chronica/blob/master/README_RU.md )概述Chro
- 在命令行中,执行`ALTADDR /SET xxx.xxx.xxx.xxx`命令,其中`xxx.xxx.xxx.xxx`是CITRIX服务器的外部IP地址。 - 接下来,进入CITRIX的相关设置界面,选择“default”选项,将其编辑为“Alternate”模式。 - 添加...
基于VC++的绘图程序 This file contains a summary of what you will find in each of the files that make up your DrawDemo application. DrawDemo.dsp This file (the project file) contains information at ...