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:
parent
2d1e7ff829
commit
26b3e48545
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue