美文网首页代码片段分享
string.xml “ ” is not translated

string.xml “ ” is not translated

作者: 花艺荣 | 来源:发表于2019-11-21 11:41 被阅读0次

    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>
    

    相关文章

      网友评论

        本文标题:string.xml “ ” is not translated

        本文链接:https://www.haomeiwen.com/subject/xogzictx.html