I can\'t compile/debug our Android app, because the localization files are not perfect yet.
My IDE\'s validation tool Lint create errors saying:
The following worked for me.
If you want to turn off the warnings about the specific strings, you can use the following:
strings.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--suppress MissingTranslation -->
<string name="some_string">ignore my translation</string>
...
</resources>
If you want to warn on specific strings instead of an error, you will need to build a custom Lint rule to adjust the severity status for a specific thing.
http://tools.android.com/tips/lint-custom-rules
Many of them has a given a different working answers, and i too got the same lint errors i make it ignore by doing the following with eclipse.
Thats it.
In addition,
Not project dependent properities, Eclipse Preferences.
In Mac, Eclipse > Preferences
You can set the attribute translatable="false" on the definition like this:
<string name="account_setup_imap" translatable="false">IMAP</string>
For more information: http://tools.android.com/recent/non-translatablestrings
You can also put resources which you do not want to translate to file called donottranslate.xml
.
Example and explanation: http://tools.android.com/recent/non-translatablestrings