Commits

Anonymous committed 3aafab1

Symbols can not be sorted with ruby1.8.

Comments (0)

Files changed (1)

lib/redmine/i18n.rb

 
         # 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