For Android Studio you can use either of the below ways to solve this issue
- Method 1. Disable MissingTranslation check in build.gradle with
android {
lintOptions {
disable 'MissingTranslation'
}
}
- Method 2. Ignore the MissingTranslation in you resource strings file with
<?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>
- Method 3. Set translatable to false on specific string with
<string name="hello" translatable="false">hello</string>
网友评论