Android Lint app_name is not translated in af (Afrikaans) am (Amharic) ar (Arabic) bg (Bulgarian)


If you are trying to build app apk file using: Android tools -> Export Signed/Unsigned Application Package option on your Android Eclipse IDE then you may get the following error message,

"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)

Reason :

Your Application has strings that have to be translated into other languages. You have not translated all the strings to the languages that your app supports.

Solutions :
  1. If you wish to support the languages that are mentioned in the error message, then you need to add translated string.xml file to res folder.
  2. If you do not want to a string to be translated then add translatable="false" attribute to the tag.
  3. code2care tools

  4. If you do not want certain strings to be translated then define it in donottranslate.xml under res folder.
  5. You can also use an attribute tools:ignore="MissingTranslation" to strings that you do not wish to translate.

How to disable Translations error messages

If you want to suppress the error message then go to,

On Mac OS X,

Eclipse -> Preferences -> Android -> Lint Error Checking

Solving Eclipse Android Lint Translation error messages

On Windows,

Window -> Preferences -> Android -> Lint Error Checking

Now under Category Correctness: Messages look for MissingTranslations and change its Severity from Fatal to Warning or Ignore type. Apply and you may not see these error messages ( would be just displayed as warnings if you select Severity warning)






Recent Posts:
Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.