From 9f9efa7d45b14540418c300a158feb6f360beafc Mon Sep 17 00:00:00 2001 From: Thomas Wood Date: Fri, 5 Jun 2009 22:38:04 +0000 Subject: [PATCH] Catch creation of en.po --- script/locale/yaml2po | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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) -- 2.43.2