2012-02-04 01:10:55 +00:00
|
|
|
module Locomotive
|
|
|
|
module SitesHelper
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2012-02-04 01:10:55 +00:00
|
|
|
def ordered_current_site_locales
|
|
|
|
current_site.locales + (Locomotive.config.site_locales - current_site.locales)
|
|
|
|
end
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2012-02-07 00:29:33 +00:00
|
|
|
def options_for_site_locales
|
|
|
|
Locomotive.config.site_locales.map do |locale|
|
|
|
|
[I18n.t("locomotive.locales.#{locale}"), locale]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2012-02-04 01:10:55 +00:00
|
|
|
end
|
|
|
|
end
|