Commit 466da5e3764da03b71331d611343fa7326d62db3
1 parent
60d43692
Exists in
master
and in
29 other branches
ActionItem243: translating things names
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1620 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
7 additions
and
7 deletions
Show diff stats
app/controllers/public/search_controller.rb
... | ... | @@ -31,12 +31,12 @@ class SearchController < ApplicationController |
31 | 31 | ###################################################### |
32 | 32 | |
33 | 33 | SEARCH_IN = [ |
34 | - [ :articles, _('Articles') ], | |
35 | - [ :comments, _('Comments') ], | |
36 | - [ :enterprises, _('Enterprises') ], | |
37 | - [ :people, _('People') ], | |
38 | - [ :communities, _('Communities') ], | |
39 | - [ :products, _('Products') ] | |
34 | + [ :articles, N_('Articles') ], | |
35 | + [ :comments, N_('Comments') ], | |
36 | + [ :enterprises, N_('Enterprises') ], | |
37 | + [ :people, N_('People') ], | |
38 | + [ :communities, N_('Communities') ], | |
39 | + [ :products, N_('Products') ] | |
40 | 40 | ] |
41 | 41 | |
42 | 42 | def index |
... | ... | @@ -47,7 +47,7 @@ class SearchController < ApplicationController |
47 | 47 | @names = {} |
48 | 48 | SEARCH_IN.each do |key, description| |
49 | 49 | @results[key] = search(@finder.send(key), @filtered_query) if params[:find_in].nil? || params[:find_in].empty? || params[:find_in].include?(key.to_s) |
50 | - @names[key] = description | |
50 | + @names[key] = gettext(description) | |
51 | 51 | end |
52 | 52 | end |
53 | 53 | ... | ... |