diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-11-18 18:19:48 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-11-18 18:19:48 +0000 |
commit | 26b3e48545aee932341f54457e9a968658a563ce (patch) | |
tree | bdd61f62a92bcf5e1b4aff59f6bbc9e73c803f13 /lib | |
parent | 2d1e7ff829cc506626d03c11161580f519fe4912 (diff) | |
download | redmine-26b3e48545aee932341f54457e9a968658a563ce.tar.gz redmine-26b3e48545aee932341f54457e9a968658a563ce.zip |
Symbols can not be sorted with ruby1.8.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10846 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/i18n.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/i18n.rb b/lib/redmine/i18n.rb index e48db09b4..1e965c35b 100644 --- a/lib/redmine/i18n.rb +++ b/lib/redmine/i18n.rb @@ -117,7 +117,7 @@ module Redmine # Get available locales from the translations filenames def available_locales - @available_locales ||= ::I18n.load_path.map {|path| File.basename(path, '.*').to_sym}.uniq.sort + @available_locales ||= ::I18n.load_path.map {|path| File.basename(path, '.*')}.uniq.sort.map(&:to_sym) end # Clean up translations |