]> source.dussan.org Git - redmine.git/commitdiff
sort files in locales:update rake task
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 6 Jul 2012 13:06:48 +0000 (13:06 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 6 Jul 2012 13:06:48 +0000 (13:06 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9921 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/tasks/locales.rake

index 573e0eb886d0220ff3fdfd0d1a6f3e53a85327e4..081acf60a6e1632eb9ceea25f14468611efa2752 100644 (file)
@@ -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]