diff --git a/app/controllers/tags_controller.rb b/app/controllers/tags_controller.rb index 7e7fe1c..80067c0 100644 --- a/app/controllers/tags_controller.rb +++ b/app/controllers/tags_controller.rb @@ -1,7 +1,7 @@ class TagsController < ApplicationController def index @cur_url = "/tags" - @title = "Tags" + @title = I18n.t 'controllers.tags_controller.tagstitle' @tags = Tag.all_with_story_counts_for(nil) diff --git a/app/views/tags/index.html.erb b/app/views/tags/index.html.erb index 684418b..28534c5 100644 --- a/app/views/tags/index.html.erb +++ b/app/views/tags/index.html.erb @@ -1,6 +1,6 @@
- Tags + <%= t '.tagstitle' %>
<% max_size = @tags.map{|t| t.stories_count }.max %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 97c58da..295d5f8 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -330,6 +330,9 @@ en: newestusers: "Newest users:" administrator: "(administrator)" moderator: "(moderator)" + tags: + index: + tagstitle: "Tags" # data for users/invitationform which is a partial view invitationtext: "Invitations are unlimited, but persons you invite will be associated with your account in the user tree and you may be responsible for them if they cause problems. Please use your discretion when inviting persons you don't personally know." emailaddress: "E-mail Address:" @@ -377,6 +380,8 @@ en: editstorytitle: "Edit Story" flashnotallowedsuggestion: "You are not allowed to offer suggestions on that story." flashallowedsuggestion: "Your suggested changes have been noted." + tags_controller: + tagstitle: "Tags" users_controller: usertitle: "Users" # views.stories.suggest scop, unable to get it, I don't know why diff --git a/config/locales/fr.yml b/config/locales/fr.yml index b36bf17..5b4d832 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -343,6 +343,9 @@ fr: newestusers: "Plus récents utilisateurs" administrator: "(administrateur)" moderator: "(modérateur)" + tags: + index: + tagstitle: "Marques" # data for users/invitationform which is a partial view invitationtext: "Le nombre d'invitations est illimité, mais les personnes que vous invitez sont associées à votre compte dans l'arbre des utilisateurs et vous pourriez être tenu pour responsable s'ils causent des problèmes. Merci d'évaluer le fait d'inviter des gens que vous ne connaissez pas personnellement." emailaddress: "Adresse e-mail :" @@ -390,6 +393,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." + tags_controller: + tagstitle: "Marques" users_controller: usertitle: "Utilisateurs" # suggest.stories scope, unable to get it so global, I don't know why