locale_switcher tag: use the right translation for the languages (issue #218)
did
committed Jan 07, 2015
commit 9292b9269b0113f732edfbd28ae592c6a7ad0ec9
Showing 1
changed file with
2 additions
and 2 deletions
locomotive/wagon/liquid/tags/locale_switcher.rb b/lib/locomotive/wagon/liquid/tags/locale_switcher.rb
+2
-2
| @@ | @@ -76,7 +76,7 @@ module Locomotive |
| def link_label(locale) | |
| case @_options[:label] | |
| when 'iso' then locale | |
| - | when 'locale' then I18n.t("locales.#{locale}") |
| + | when 'locale' then I18n.t("locomotive.locales.#{locale}") |
| when 'title' then @page.title # FIXME: this returns nil if the page has not been translated in the locale | |
| else | |
| locale | |
| @@ | @@ -103,4 +103,4 @@ module Locomotive |
| end | |
| end | |
| end | |
| - | end |
| \ No newline at end of file | |
| + | end |