X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/902a44e6303b71429441b28cdf28c5e8d474b166..2118dd06afda62a72278985d91c057aaeaa0e150:/script/locale/yaml2po?ds=sidebyside 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)