]> git.openstreetmap.org Git - rails.git/commitdiff
Catch creation of en.po
authorThomas Wood <grand.edgemaster@gmail.com>
Fri, 5 Jun 2009 22:38:04 +0000 (22:38 +0000)
committerThomas Wood <grand.edgemaster@gmail.com>
Fri, 5 Jun 2009 22:38:04 +0000 (22:38 +0000)
script/locale/yaml2po

index 7a1750df6423c259f8aad5a270cd50f29b336f0e..ff5a77b26b2f9cd21dcac4400a5f2c965c0a539d 100755 (executable)
@@ -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)