Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Parse Android xml file instead of iOS .strings

So as mobile developers, every time we translate one of our apps we have to translate both Android and iOS strings files. These files contain 90% of the same strings just the file is in a different format.

Does anyone know if there is an NSLocalizedString override to read from Android compatible .xml files? or if this is even possible?

Alternatively, is there a command line tool to convert between the two formats?

like image 350
Paul de Lange Avatar asked Jul 25 '12 10:07

Paul de Lange


2 Answers

This does what you need, but not from the command line.
http://localise.biz/free/converter/ios-to-android

The full system has an API though. If you register you'll be able to pull your translations into .strings or Android XML files from the command line, or programmatically via a simple script.

like image 195
Tim Avatar answered Sep 21 '22 23:09

Tim


So it turns out this kind of tool doesn't exist. I created a toolchain and posted it here.

If there is activity I will develop it further.

like image 44
Paul de Lange Avatar answered Sep 18 '22 23:09

Paul de Lange