Strings.xml Managementtool

I am looking for a tool to manage my strings.xml to localize String. The tool should show which line is missing in the translation. The tool must be free for commercial use. Is there anything I could use?

My searches for such a tool only showed http://developer.motorola.com/docstools/motodevstudio/download/ But it seems not free for commercial use, if I understood it correctly.

+4
source share
4 answers

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

For example, from the command line in the root directory of the project:

 lint --check MissingTranslation . 

Lists all lines from any .xml file that is not in one of the supported languages ​​(indicated by at least one folder with the language suffix).

+2
source

You can try Microsoft XML Diff . I'm not sure if you are allowed to use it commercially, though (it does not say that you cannot on the site).

+1
source

You can use the Crowdin web service. It will show which lines are left for translation, for which languages, with percentages.

0
source

well .. i would do something like that - say values ​​/strings.xml - your main file that has all this. then just go through it and compare the rest of the files with it ....

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> 

which should be part of this, at least.


hope this helps abit.

0
source

Source: https://habr.com/ru/post/1346223/


All Articles