當我運行Android Lint檢查時,我總是在我的字符串資源上出錯。錯誤表示我沒有將我的字符串翻譯成所有語言。假設沒有人知道世界上所有的語言(如果我不是其中之一),那麼這個錯誤就有一個現實的解決方案。自動字符串資源翻譯
我該如何解決這個問題?有沒有辦法自動執行(如使用Google翻譯)?
的錯誤是"<the-string-name>" is not translated in af, am, ar, be, bg, ca, cs, da, de, el, en-rGB, es, es-rUS, et, fa, fi, fr, hi, hr, hu, in, it, iw, ja, ko, lt, lv, ms, nb, nl, pl, pt, pt-rBR, pt-rPT, ro, ru, sk, sl, sr, sv, sw, th, tl, tr, uk, vi, zh-rCN, zh-rTW, zu
編輯
我知道如何禁用此皮棉錯誤。這個錯誤不是爲你禁用它的...
閱讀此:http://stackoverflow.com/questions/11443996/lint-how-to-ignore-key-is-not-translated-in-language-errors –
@鄒鄒我不想別理他們。我想解決它們。 – nrofis
解決你的意思是什麼?然後,只需翻譯所有語言的字符串,並在不同文件夾(values-af,value-am等)中添加strings.xml。 –