Parse Android xml file instead of iOS.strings

As mobile developers, every time we translate one of our applications, we must translate both Android and iOS files. These files contain 90% of the same lines as a file in a different format.

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

Alternatively, is there a command line tool for converting between two formats?

+4
source share
5 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. If you sign up, you can translate your translations into .strings or Android XML files from the command line or programmatically using a simple script.

+4
source

So, it turns out that there is no such tool. I created a toolchain and posted it here .

If there is activity, I will develop it further.

+1
source

For a recent project that already had 19 translations, I was also looking for a script to convert the XCode Localizable.strings files to Android Eclipse format.

I found convertLocalizable.rb, but I can’t work with ruby, so I created Javascript on it, see the link below. You have to cut and paste each file, but it works great.

Javascript Xcode Localizable.strings and Android strings.xml converter

+1
source

Here is a simple script that will generate iOS Localizable.strings from Android strings.xml files.

0
source

Try Twine , a reliable resource conversion project.

0
source

All Articles