From: Toshi MARUYAMA Date: Fri, 6 Jul 2012 13:06:48 +0000 (+0000) Subject: sort files in locales:update rake task X-Git-Tag: 2.1.0~384 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=232d57450acaf87c2fc8835583f2ae6d8a02105d;p=redmine.git sort files in locales:update rake task git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9921 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/tasks/locales.rake b/lib/tasks/locales.rake index 573e0eb88..081acf60a 100644 --- a/lib/tasks/locales.rake +++ b/lib/tasks/locales.rake @@ -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]