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
This commit is contained in:
Jean-Philippe Lang 2012-11-18 18:19:48 +00:00
parent 2d1e7ff829
commit 26b3e48545
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ module Redmine
# Get available locales from the translations filenames # Get available locales from the translations filenames
def available_locales 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 end
# Clean up translations # Clean up translations