is it possible to specify that the strings in a file within the value-*
directories are purposely not translated into other languages? I have a bunch of strings
And here is a Android Studio solution for disabling this fatal Lint error:
To avoid warnings in Android Studio, open Preferences ==> Inspections, uncheck "Incomplete translations". But it won't affect Gradle build.
I don't know how to ignore all the file, but you can do it string by string using:
<string name="hello" translatable="false">hello</string>
It's the ignore
attribute of the tools
namespace in your strings file, as follows:
<?xml version="1.0" encoding="utf-8"?>
<resources
xmlns:tools="http://schemas.android.com/tools"
tools:ignore="MissingTranslation" >
<!-- your strings here; no need now for the translatable attribute -->
</resources>
There is also the "Translation editor" (right click on string.xml "Open Translation Editor").
Then check the 'Untranslatable' box on a string.
https://developer.android.com/studio/write/translations-editor