Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (10 sloc) 547 Bytes

Merge an Android strings.xml into Ruby on Rails i18n yml file

Usage

ruby convert.rb android_strings_xml_path rails_yml_path

Description

This simple ruby script will merge Android strings file into Ruby on Rails i18n yml file. The result is sorted alphabetically. It's safe to rerun. Current only English is tested but it can be easily convert to other languages.

TODO

  1. Merge both ways
  2. Automatically enumerate all possible android locales and create according to locales for Rails