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

后端 未结 12 1671
深忆病人
深忆病人 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条回答
  • 2020-12-08 13:34

    Rebuilding can take a long time. YMMV, but...

    Simply remove the offending line and re-add it.

    Worked for me. Very fast.

    0 讨论(0)
  • 2020-12-08 13:35

    In my case this helped me:

    1. Select the strings that cause error.
    2. Cut them.
    3. Paste them again

    If it doesn't work for you, try adding the same strings to strings.xml(v21) file.

    0 讨论(0)
  • I solved this issue by following below steps:

    1. cleaning my project

    2. rebuilding it

    3. and finally pressing invalid caches/ Restart in file menu

    0 讨论(0)
  • 2020-12-08 13:36

    I've created a tool to manage the translation status of android apps. It not only tells you what strings are missing on the other languages, but it can also report, and clean the left over strings that you may have deleted on your default translation file.

    https://github.com/gubatron/android-missing-strings

    To clean all left overs in other languages invoke like this

    ./ams --cleanleftovers -o all.txt
    

    This will clean the left over strings and it will output the missing strings report for all the languages into the all.txt file

    0 讨论(0)
  • 2020-12-08 13:37

    this happened to me too

    I do 2 things:

    • Verify entire file to see another translate not done ( I have ones in file en but in pt-br)
    • Clean, update gradle and quit and restart the Android Studio
    0 讨论(0)
  • 2020-12-08 13:37

    You simply just have to copy the offending line (or just one of the multiple of offending lines), remove it, and re-paste it. That removed the issue for me.

    0 讨论(0)
提交回复
热议问题