]> git.openstreetmap.org Git - rails.git/blobdiff - script/locale/yaml2po
translated diary entry location
[rails.git] / 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)