If you found the contents in this blog useful, then please make a donation to keep this blog running. You can make donations via Skrill with email address

Thursday, March 14, 2013

Fixing "name" is not translated in locales in Android

If you develop Android applications which has multiple locales, you might face an error similar to the below one

"<Value Name>" is not translated in <Locales> ...

This is because some names which you don't want to be translated are also taken as translatable names. The easiest fix for this is to mark the error cause name tag as

<string name="myname" translatable="false">

<string-array name="myname" translatable="false">

in string, string-array 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.

No comments: