sort files in locales:update rake task
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9921 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
196f96fff1
commit
232d57450a
|
@ -13,7 +13,7 @@ namespace :locales do
|
|||
en_strings = YAML.load(File.read(File.join(dir,'en.yml')))['en']
|
||||
|
||||
files = Dir.glob(File.join(dir,'*.{yaml,yml}'))
|
||||
files.each do |file|
|
||||
files.sort.each do |file|
|
||||
puts "Updating file #{file}"
|
||||
file_strings = YAML.load(File.read(file))
|
||||
file_strings = file_strings[file_strings.keys.first]
|
||||
|
|
Loading…
Reference in New Issue