i18n of the title of users page. fixes #16

This commit is contained in:
Carl Chenet 2016-11-24 14:38:21 +01:00
parent dd0634ad57
commit 8a07b72f51
3 changed files with 5 additions and 1 deletions

View file

@ -14,7 +14,7 @@ class UsersController < ApplicationController
end
def tree
@title = "Users"
@title = I18n.t 'controllers.users_controller.usertitle'
if params[:by].to_s == "karma"
@users = User.order("karma DESC, id ASC").to_a

View file

@ -377,6 +377,8 @@ en:
editstorytitle: "Edit Story"
flashnotallowedsuggestion: "You are not allowed to offer suggestions on that story."
flashallowedsuggestion: "Your suggested changes have been noted."
users_controller:
usertitle: "Users"
# views.stories.suggest scop, unable to get it, I don't know why
suggeststorychanges: "Suggest Story Changes"
suggestchangesbutton: "Suggest Changes"

View file

@ -390,6 +390,8 @@ fr:
editstorytitle: "Éditer une info"
flashnotallowedsuggestion: "Vous n'êtes pas autorisé à offrir des suggestions pour cette info."
flashallowedsuggestion: "Les changements que vous avez suggérés ont été notés."
users_controller:
usertitle: "Utilisateurs"
# suggest.stories scope, unable to get it so global, I don't know why
suggeststorychanges: "Suggérer des changements à l'info"
suggestchangesbutton: "Suggérer des changements"