Is it possible to specify that the strings in a file within the values
directoriy are purposely not translated into other languages?
I have a bunch of strings that are common for all the languages and need no translation. I've created an unlocalized-strings.xml
file within the values
directory. When I run Android Lint to check for problems, it keeps saying that some translations are missing.
I do not want to disable this check on the whole project. I'd like to disable it only in some XML files. Is this possible?
This is the error that I am encountering:
"title_widget_updater_service" is not translated in de, en, en-rUS, it
Issue: Checks for incomplete translations where not all strings are translated
Id: MissingTranslation
If an application has more than one locale, then all the strings declared in one language
should also be translated in all other languages.
By default this detector allows regions of a language to just provide a subset of the
strings and fall back to the standard language strings. You can require all regions to
provide a full translation by setting the environment variable
ANDROID_LINT_COMPLETE_REGIONS.