From ef18a3ad5c4b1ee14c0d98789737acda80380951 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Thu, 13 Jun 2013 11:46:20 -0400 Subject: [PATCH] Locales should be sorted in dropdown --- app/models/locale_site_setting.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/locale_site_setting.rb b/app/models/locale_site_setting.rb index 904a7fba57c..fa624f8e3e0 100644 --- a/app/models/locale_site_setting.rb +++ b/app/models/locale_site_setting.rb @@ -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