Locales should be sorted in dropdown

This commit is contained in:
Neil Lalonde 2013-06-13 11:46:20 -04:00
parent 66f5a3f6f6
commit ef18a3ad5c
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class LocaleSiteSetting
def self.supported_locales
@lock.synchronize do
@supported_locales ||= Dir.glob( File.join(Rails.root, 'config', 'locales', 'client.*.yml') ).map {|x| x.split('.')[-2]}
@supported_locales ||= Dir.glob( File.join(Rails.root, 'config', 'locales', 'client.*.yml') ).map {|x| x.split('.')[-2]}.sort
end
end
end