This script converts a csv file of translations into iOS .strings files and vice-versa.
- Needs fastercsv with ruby < 1.9
Add the project as a gitsubmodule in your iOS project's git repository. Use tag 0.1.5
Convert from CSV file to .strings files
./convert.rb filename.csv
The CSV file needs one column per language and must have headers (for output filenames)
Convert from .strings
files to CSV file Translations.csv
(configurable)
./convert.rb filename1.strings filename2.strings
or to convert all xx.lproj/Localizable.strings
to CSV
./convert.rb
Place i18n_config.rb
(edit if needed) in the folder with your xx.lproj
and call the script from there
cp .i18n_config.rb iOSProject/resources/i18n_config.rb
cd iOSProject/resources
script/path/convert.rb
See GitHub isssues