Server-side translation transfers between java, ios and android

We plan to create our own mobile applications to complement our website, which is written in java . Our website currently supports multiple languages, and currently we have all translations stored in standard java property files.

What is the best approach to reusing these translations in native and applications?

  • It seems that Android supports ResourceBundles in the same way as on the server side of java, but this does not look like the standard way of handling transfers to android. Android seems to use the string.xml file. Are there any drawbacks to directly using ResourceBundles and their corresponding property files in Android, or is it preferable to write a converter that converts java property files to Android string.xml files? Or are there existing converter programs that do such a conversion?
  • Is there a converter that translates java ResourceBundles to iOS string files?
  • Is there a way to store translations in a common format that does not require converting converters between the three platforms?
+5
source share
1 answer

The next open source tool (BSD 3 personal license) will work for Android and iOS. I suspect that it will also work for webapp, and if it will not be easily expanded to support this:

https://github.com/scelis/twine

The blog on it is available here:

http://www.codesushi.net/blog/2014/10/managing-ios-android-localized-strings/

0
source

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


All Articles