projects
/
rails.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge 17130 from trunk.
[rails.git]
/
script
/
locale
/
yaml2po
diff --git
a/script/locale/yaml2po
b/script/locale/yaml2po
index 7a1750df6423c259f8aad5a270cd50f29b336f0e..ff5a77b26b2f9cd21dcac4400a5f2c965c0a539d 100755
(executable)
--- 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')
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)
}
outfile = File.new(PO_DIR+"rails_port.pot", 'w')
iterate(EN['en'], {}, '', outfile)