开发者

Android sync strings.xml

开发者 https://www.devze.com 2023-02-08 21:38 出处:网络
How can I sync my strings.xml in Android if I\'m using localisation and a new string needs also to be tra开发者_开发技巧nslated in values-de/strings.xml, values-ru/strings.xml ...

How can I sync my strings.xml in Android if I'm using localisation and a new string needs also to be tra开发者_开发技巧nslated in values-de/strings.xml, values-ru/strings.xml ...

Do I really have to copy paste it in everey file - or is there a tool for managing translations?


If you don't provide a translation, the default value will be found in values/strings.xml if that file exists. MOTODEV Studio has a localization editor that allows you to see all your strings in a spreadsheet configuration, which might be easier for you to visualize. If you don't want to install MOTODEV Studio, you can install the Sequoyah plugins into your Eclipse IDE and get most of the functionality.

http://developer.motorola.com/docstools/motodevstudio/

http://www.eclipse.org/sequoyah/

Android sync strings.xml

UPDATE 2014/08/08 - The former MOTODEV plugins that were submitted to AOSP are finding new life in a Github project called Proteus. The string editor is included in Proteus and can be used as-is. The automatic translation feature through Google Translate doesn't work, but the column editor does work.


I understand your pain. Here is what I do. A java program parses string.xml. It creates a string-de.csv. I put that file in docs.google.com to share. I use the google translate function to populate the auto-translated column. I found some good hearted users to help me fix those translation. I save the translated google doc and create values-de/string.xml out of it using the same Java program.

0

精彩评论

暂无评论...
验证码 换一张
取 消