strings.xml 管理工具

发布于 2024-10-29 23:34:23 字数 299 浏览 4 评论 0原文

我正在寻找一个工具来管理我的 strings.xml 以本地化字符串。该工具应显示哪个翻译中缺少哪个字符串。 该工具必须免费用于商业用途。有什么我可以用的吗?

我对这样的工具的搜索仅出现 http://developer.motorola.com/docstools/ motodevstudio/下载/ 但如果我理解正确的话,这似乎不能免费用于商业用途。

I am looking for a tool to manage my strings.xml to localize String. The tool should show which string are missing in which translation.
The tool has to be free for commercial use. Is there something I could use?

My searches for a tool like that only showed up http://developer.motorola.com/docstools/motodevstudio/download/
But this seems to be not free for commercial use if i understood it right.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

仅一夜美梦 2024-11-05 23:34:23

Lint 是 Android SDK 中包含的一个工具(因此可以免费用于所有用途,无论是商业用途还是其他用途) )并为您提供缺失翻译的列表。它可以在 Eclipse 中从命令行运行,并且可以生成 HTML 报告。

例如,从项目根目录中的命令行:

lint --check MissingTranslation .

生成受支持语言之一缺少的任何 .xml 文件中所有字符串的列表(由至少一个带有语言后缀的文件夹表示)。

Lint is a tool included with the Android SDK (and is therefore free for all use, commercial or otherwise) and gives you a list of missing translations. It can be run in Eclipse, from the command line, and can generate HTML reports.

For, example, from the command line in your project's root directory:

lint --check MissingTranslation .

produces a list of all strings from any .xml file that is missing from one of the supported languages (denoted by at least one folder with a language suffix).

甜点 2024-11-05 23:34:23

您可以尝试 Microsoft 的 XML Diff。我不确定您是否可以将其用于商业用途(并不是说您不能在网站上使用)。

You can try XML Diff from Microsoft. I'm not sure if you are allowed to use it commercially though (it doesn't say that you can't on the website).

弄潮 2024-11-05 23:34:23

好吧..我会做类似的事情 -
说 value/strings.xml 是你的主文件
它拥有一切。然后运行它并
与其余文件进行比较....

cd res

find . -name strings.xml -exec diff -u values\/strings.xml {} \;

--- values/strings.xml  2013-04-30 00:42:46.000000000 -0400
+++ ./values-es/strings.xml 2013-04-30 00:42:03.000000000 -0400
@@ -1,6 +1,4 @@
 <?xml version="1.0" encoding="utf-8"?>
 <resources>
-    <string name="app_name">frosty</string>
-    <string name="foo">Android</string>
-    <string name="bar">Android</string>
-</resources>
+    <string name="app_name">Brabble-Android</string>
+</resources>
\ No newline at end of file
--- values/strings.xml  2013-04-30 00:42:46.000000000 -0400
+++ ./values-fr/strings.xml 2013-04-30 00:49:16.000000000 -0400
@@ -1,6 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
 <resources>
     <string name="app_name">frosty</string>
-    <string name="foo">Android</string>
-    <string name="bar">Android</string>
+    <string name="foo">bar</string>
 </resources>

至少应该是其中的一部分。


希望它能有所帮助。

well.. I would do something like that -
say values/strings.xml is your master file
which has it all. then just run through it and
compare to it the rest of the files....

cd res

find . -name strings.xml -exec diff -u values\/strings.xml {} \;

--- values/strings.xml  2013-04-30 00:42:46.000000000 -0400
+++ ./values-es/strings.xml 2013-04-30 00:42:03.000000000 -0400
@@ -1,6 +1,4 @@
 <?xml version="1.0" encoding="utf-8"?>
 <resources>
-    <string name="app_name">frosty</string>
-    <string name="foo">Android</string>
-    <string name="bar">Android</string>
-</resources>
+    <string name="app_name">Brabble-Android</string>
+</resources>
\ No newline at end of file
--- values/strings.xml  2013-04-30 00:42:46.000000000 -0400
+++ ./values-fr/strings.xml 2013-04-30 00:49:16.000000000 -0400
@@ -1,6 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
 <resources>
     <string name="app_name">frosty</string>
-    <string name="foo">Android</string>
-    <string name="bar">Android</string>
+    <string name="foo">bar</string>
 </resources>

that should be a part of it at least.


hope it helps abit.

雅心素梦 2024-11-05 23:34:23

您可以使用网络服务Crowdin。它将显示哪些字符串需要翻译、哪些语言需要翻译,以及百分比。

You could use the web service Crowdin. It will show which strings are left to translate, for which languages, with percentages.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文