From 2e0697d4a3dd299b41c1261b72fb86c710ce2682 Mon Sep 17 00:00:00 2001 From: Carl Chenet Date: Sat, 20 Oct 2018 13:15:57 +0200 Subject: [PATCH] translate hatstitle --- app/controllers/hats_controller.rb | 2 +- config/locales/en.yml | 5 ++--- config/locales/fr.yml | 2 ++ 3 files changed, 5 insertions(+), 4 deletions(-) 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"