X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/902a44e6303b71429441b28cdf28c5e8d474b166..160429e62d88810ec49ccc9c504edee675dca080:/script/locale/yaml2po 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)