summaryrefslogtreecommitdiffstats
path: root/lib/tasks/locales.rake
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-07-06 13:06:48 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-07-06 13:06:48 +0000
commit232d57450acaf87c2fc8835583f2ae6d8a02105d (patch)
tree58116cd5760eb009aaf4f28c61ddc9fe056065e2 /lib/tasks/locales.rake
parent196f96fff1d93ba55453166192cb242da048a742 (diff)
downloadredmine-232d57450acaf87c2fc8835583f2ae6d8a02105d.tar.gz
redmine-232d57450acaf87c2fc8835583f2ae6d8a02105d.zip
sort files in locales:update rake task
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9921 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/tasks/locales.rake')
-rw-r--r--lib/tasks/locales.rake2
1 files changed, 1 insertions, 1 deletions
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]