android - How to add a string to the default values folder only? -
i have res/values folder containing strings.xml file , res/values-xx folder containing strings.xml file (for each of languages xx support). @ moment, strings.xml files contain same strings (same string names, different string values). there way can add string res/values/strings.xml file without having add res/values-xx/strings.xml files, , such app pick on default string regardless of phone's language setting? @ moment compiler aborts , complains string has not been translated each of supported languages.
the "compiler" not "abort" because have untranslated string. may lint errors, ant clean debug, ant clean release, , eclipse equivalents work fine. make sure on current edition of sdk tools (and adt plugin if using eclipse).
to rid of lint errors, have <resources> element untranslated string appears this:
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="missingtranslation">
Comments
Post a Comment