diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index 68a05b0..27fc2a3 100644 --- a/app/controllers/comments_controller.rb +++ b/app/controllers/comments_controller.rb @@ -198,7 +198,7 @@ class CommentsController < ApplicationController @rss_link ||= { :title => "RSS 2.0 - Newest Comments", :href => "/comments.rss#{@user ? "?token=#{@user.rss_token}" : ""}" } - @heading = @title = "Newest Comments" + @heading = @title = I18n.t 'controllers.comments_controller.commentstitle' @cur_url = "/comments" @page = params[:page].to_i @@ -256,7 +256,7 @@ class CommentsController < ApplicationController return redirect_to "/login" else @showing_user = @user - @heading = @title = "Your Threads" + @heading = @title = I18n.t 'controllers.comments_controller.threadstitle' @cur_url = "/threads" end diff --git a/config/locales/en.yml b/config/locales/en.yml index 65a1814..0403ce5 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -317,6 +317,9 @@ en: sendinvitation: "Send Invitation" # controllers controllers: + comments_controller: + commentstitle: "Newest Comments" + threadstitle: "Your Threads" home_controllers: recenttitle: "Recent Stories" abouttitle: "About" @@ -329,3 +332,4 @@ en: stories_controller: submitstorytitle: "Submit Story" editstorytitle: "Edit Story" + diff --git a/config/locales/fr.yml b/config/locales/fr.yml index b226637..bbb8287 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -329,6 +329,9 @@ fr: sendinvitation: "Envoyer l'invitation" # controllers controllers: + comments_controller: + commentstitle: "Derniers commentaires" + threadstitle: "Vos sujets" home_controller: recenttitle: "Infos récentes" abouttitle: "À propos"