X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/902a44e6303b71429441b28cdf28c5e8d474b166..12b2458e602ce91cfa566a51b5719f2bc6a6418f:/script/locale/yaml2po?ds=inline diff --git a/script/locale/yaml2po b/script/locale/yaml2po index 7a1750df6..ff5a77b26 100755 --- a/script/locale/yaml2po +++ b/script/locale/yaml2po @@ -50,9 +50,11 @@ if opt == '--all' Dir.mkdir(PO_DIR) unless File.directory?(PO_DIR) Dir.glob(LOCALE_DIR+"*.yml") {|filename| lang = File.basename(filename, '.yml') - outfile = File.new(PO_DIR+"#{lang}.po", 'w') - lang2po(lang, outfile) - outfile.close + unless lang == 'en' + outfile = File.new(PO_DIR+"#{lang}.po", 'w') + lang2po(lang, outfile) + outfile.close + end } outfile = File.new(PO_DIR+"rails_port.pot", 'w') iterate(EN['en'], {}, '', outfile)