“is translated here but not found in default locale” error in strings.xml with translatable=“false”

后端 未结 12 1712
深忆病人
深忆病人 2020-12-08 13:17

Here is my values\\strings.xml (the default file) and everything is self explanatory:

My question(s):

  1. How can it be \"not found in de
12条回答
  •  Happy的楠姐
    2020-12-08 13:42

    I had the same error message, just with the weird issue that it was thrown in the default locale itself and all translations. Turns out you should not use dots in your name (e.g. name="bla.blub") because it will be internally converted to "bla_blub" and then it cannot match with "bla.blub", hence the error. I only had to change the dots to underlines in the default locale and then all other errors in other translations (including dots in the name) were gone as well.

    But be aware that other build tools can still create issues, so replace all the dots with underlines instead!

提交回复
热议问题