i18n of the title of users page. fixes #16
This commit is contained in:
parent
dd0634ad57
commit
8a07b72f51
|
@ -14,7 +14,7 @@ class UsersController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def tree
|
def tree
|
||||||
@title = "Users"
|
@title = I18n.t 'controllers.users_controller.usertitle'
|
||||||
|
|
||||||
if params[:by].to_s == "karma"
|
if params[:by].to_s == "karma"
|
||||||
@users = User.order("karma DESC, id ASC").to_a
|
@users = User.order("karma DESC, id ASC").to_a
|
||||||
|
|
|
@ -377,6 +377,8 @@ en:
|
||||||
editstorytitle: "Edit Story"
|
editstorytitle: "Edit Story"
|
||||||
flashnotallowedsuggestion: "You are not allowed to offer suggestions on that story."
|
flashnotallowedsuggestion: "You are not allowed to offer suggestions on that story."
|
||||||
flashallowedsuggestion: "Your suggested changes have been noted."
|
flashallowedsuggestion: "Your suggested changes have been noted."
|
||||||
|
users_controller:
|
||||||
|
usertitle: "Users"
|
||||||
# views.stories.suggest scop, unable to get it, I don't know why
|
# views.stories.suggest scop, unable to get it, I don't know why
|
||||||
suggeststorychanges: "Suggest Story Changes"
|
suggeststorychanges: "Suggest Story Changes"
|
||||||
suggestchangesbutton: "Suggest Changes"
|
suggestchangesbutton: "Suggest Changes"
|
||||||
|
|
|
@ -390,6 +390,8 @@ fr:
|
||||||
editstorytitle: "Éditer une info"
|
editstorytitle: "Éditer une info"
|
||||||
flashnotallowedsuggestion: "Vous n'êtes pas autorisé à offrir des suggestions pour cette 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."
|
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
|
# suggest.stories scope, unable to get it so global, I don't know why
|
||||||
suggeststorychanges: "Suggérer des changements à l'info"
|
suggeststorychanges: "Suggérer des changements à l'info"
|
||||||
suggestchangesbutton: "Suggérer des changements"
|
suggestchangesbutton: "Suggérer des changements"
|
||||||
|
|
Loading…
Reference in a new issue