Avoid Android Lint complains about not-translated string

后端 未结 11 1664
轻奢々
轻奢々 2020-12-02 13:06

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

11条回答
  •  醉话见心
    2020-12-02 13:13

    Create a resource file with a file name starting with "donottranslate" (e.g. donottranslate.xml, donottranslate_urls.xml, etc), and lint will ignore its strings altogether when checking for missing translations.

提交回复
热议问题