From 232d57450acaf87c2fc8835583f2ae6d8a02105d Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 6 Jul 2012 13:06:48 +0000 Subject: [PATCH] sort files in locales:update rake task git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9921 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/tasks/locales.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]