2

i am having an unexpected error in the strings.xml file stored in values folder of my project. The error is shown at name="niceweekend_msgs" My code is:

<string-array name="niceweekend_msgs">
        <item>Better days are coming. They are called Saturday and Sunday.\n
Have a nice weekend!</item>
</string-array>

The error shown is:

"niceweekend_msgs" is not translated in af, am, ar, bg, ca, cs, da, de, el, en-rGB, en-rIN, es, es-rUS, et-rEE, fa, fi, fr, fr-rCA, hi, hr, hu, hy-rAM, in, it, iw, ja, ka-rGE, km-rKH, ko, lo-rLA, lt, lv, mn-rMN, ms-rMY, nb, nl, pl, pt, pt-rPT, ro, ru, sk, sl, sr, sv, sw, th, tl, tr, uk, vi, zh-rCN, zh-rHK, zh-rTW, zu

user3080161
  • 135
  • 4
  • 10
  • 3
    Is it actually an error or a warning? – codeMagic Dec 09 '13 at 16:49
  • error. My project is completed. Suddenly while exporting it occured. Pathetic. I was about to upload the project in google play. Pease suggest me something. – user3080161 Dec 09 '13 at 16:51
  • Does it keep it from compiling? – codeMagic Dec 09 '13 at 16:52
  • yup it couldn't be compiled . I know that should not be error. I couldn't found a way out. At last i copied and pasted that strings file with some other name. Now it is working fine. Thank you for your reply. – user3080161 Dec 09 '13 at 16:58

3 Answers3

6

This is just a warning for missing translations.

go to the preferences (Window -> Preferences -> Android -> Lint Error Checking) and set "Missing Translation" to warning or ignore.

Check more here

Community
  • 1
  • 1
Ahmed Ekri
  • 4,601
  • 3
  • 23
  • 42
4

You have only one string. For that you can do this :-

<string name="account_setup_imap" translatable="false">IMAP</string>

Right click project -> Properties ->Android Lint Preferences

Type Missing Translation in the Search bar on the right side.

Select MissingTranslation in the list below under Correctness Messages ->

Select Severity(Bottom-right) to warning or ignore.

Rahul Gupta
  • 5,275
  • 8
  • 35
  • 66
0

I have added this lines to gradle file in Android Studio.

Then problem solved about missing translations.

android {
     lintOptions {
        checkReleaseBuilds false
        abortOnError false
    }
}