- Dir.glob(LOCALE_DIR+"*.yml") {|filename|
- lang = File.basename(filename, '.yml')
- outfile = File.new(PO_DIR+"#{lang}.po", 'w')
- lang2po(lang, outfile)
- outfile.close
- }
- outfile = File.new(PO_DIR+"rails_port.pot", 'w')
- iterate(EN['en'], {}, '', outfile)
+ Dir.glob(LOCALE_DIR + "*.yml") do |filename|
+ lang = File.basename(filename, ".yml")
+ unless lang == "en"
+ outfile = File.new(PO_DIR + "#{lang}.po", "w")
+ lang2po(lang, outfile)
+ outfile.close
+ end
+ end
+ outfile = File.new(PO_DIR + "rails_port.pot", "w")
+ iterate(EN["en"], {}, "", outfile)