字符串'xyz'标记为不可翻译但存在于locale'ja'中

时间:2015-01-22 12:35:42

标签: android xml localization translation

enter image description here我在android中开发一个应用程序,我的strings.xml文件中有各种字符串。我想本地化字符串,从而支持多种语言。

问题是我收到以下错误: 警告:字符串' enthu'标记不可翻译但存在于现场' ja'在我的strings.xml文件中:

<string name="enthu" translatable="false">Enthusiasm</string>

如果我将translatable更改为true,则会出现错误,但由于所需原因,我将其设为false。

我试过以下事情:

  1. 忽略所有Lint检查。
  2. 在我的strings.xml中添加了以下内容
  3. 的xmlns:工具=&#34; HTTP://schemas.android.com/tools"       工具:忽略=&#34; MissingTranslation&#34;

    1. 清理构建各种时间,重新启动eclipse。
    2. 特别忽略了在lint检查中丢失翻译,然后运行lint以查找错误。
    3. 但每次我都失败了。 我使用的是Ubuntu 32Bit,ADT 23.04.14。

      这个错误对我来说很不寻常,因为我也忽略了lint警告。 请帮助。我无法构建我的src。

0 个答案:

没有答案