错误在Android的xml文件 [英] Error in xml file in android
问题描述
我有存储在我的项目值文件夹中的strings.xml文件中的一个意外的错误。
显示在名称=niceweekend_msgs错误
我的code是:
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不AF翻译,AM,AR,BG,CA,CS,DA,德,EL,EN-RGB,EN-RIN,ES,ES-RUS,ET-REE,FA,网络连接, FR,FR-RCA,喜小时,胡,
HY-RAM,在,这,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,英国,六,
ZH-RCN,ZH-RHK,ZH-RTW,祖
"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, 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
推荐答案
这就是失踪的翻译警告。
This is just a warning for missing translations.
转到preferences(窗口 - &GT; preferences - &GT; Android的 - &GT;皮棉错误检查
),并设置漏译
,以警告或忽略。
go to the preferences (Window -> Preferences -> Android -> Lint Error Checking
) and set "Missing Translation
" to warning or ignore.
检查多个<一个href=\"http://stackoverflow.com/questions/11443996/lint-how-to-ignore-key-is-not-translated-in-language-errors\">here
这篇关于错误在Android的xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!