diff --git a/app/controllers/hats_controller.rb b/app/controllers/hats_controller.rb index dfc385b..90add54 100644 --- a/app/controllers/hats_controller.rb +++ b/app/controllers/hats_controller.rb @@ -10,7 +10,7 @@ class HatsController < ApplicationController end def index - @title = t('.hatstitle') + @title = I18n.t 'controllers.hats_controller.hatstitle' @hat_groups = {} diff --git a/config/locales/en.yml b/config/locales/en.yml index cfcc315..aba13c0 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2,9 +2,6 @@ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. en: - hats: - index: - hatstitle: "Hats" time: formats: default: "%Y-%m-%d %H:%M:%S" @@ -535,6 +532,8 @@ en: filters_controller: filterstitle: "Tag Filters" flashfilterupdate: "Your filters have been updated." + hats_controller: + hatstitle: "Hats" home_controller: recenttitle: "Recent Stories" abouttitle: "About" diff --git a/config/locales/fr.yml b/config/locales/fr.yml index c0f57fa..9706697 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -553,6 +553,8 @@ fr: filters_controller: filterstitle: "Filtres" flashfilterupdate: "Vos filtres ont été mis à jour." + hats_controller: + hatstitle: "Chapeaux" home_controller: recenttitle: "Infos récentes" abouttitle: "À propos"