Commit 8cecb78f2bf9db1d00350dc2048f944493a077ca
Exists in
ratings_minor_fixes
and in
3 other branches
Merge branch 'search_hint_translation' into 'master'
Translates model name in search hint The text field hint in search page was not fully translated See merge request !945
Showing
5 changed files
with
7 additions
and
3 deletions
Show diff stats
app/models/article.rb
@@ -29,6 +29,8 @@ class Article < ApplicationRecord | @@ -29,6 +29,8 @@ class Article < ApplicationRecord | ||
29 | :display => %w[full] | 29 | :display => %w[full] |
30 | } | 30 | } |
31 | 31 | ||
32 | + N_('article') | ||
33 | + | ||
32 | def initialize(*params) | 34 | def initialize(*params) |
33 | super | 35 | super |
34 | if params.present? && params.first.present? | 36 | if params.present? && params.first.present? |
app/models/community.rb
app/models/enterprise.rb
@@ -12,7 +12,7 @@ class Enterprise < Organization | @@ -12,7 +12,7 @@ class Enterprise < Organization | ||
12 | _('Enterprise') | 12 | _('Enterprise') |
13 | end | 13 | end |
14 | 14 | ||
15 | - N_('Enterprise') | 15 | + N_('enterprise') |
16 | 16 | ||
17 | acts_as_trackable after_add: proc{ |p, t| notify_activity t } | 17 | acts_as_trackable after_add: proc{ |p, t| notify_activity t } |
18 | 18 |
app/models/person.rb
@@ -13,6 +13,8 @@ class Person < Profile | @@ -13,6 +13,8 @@ class Person < Profile | ||
13 | _('Person') | 13 | _('Person') |
14 | end | 14 | end |
15 | 15 | ||
16 | + N_('person') | ||
17 | + | ||
16 | acts_as_trackable :after_add => Proc.new {|p,t| notify_activity(t)} | 18 | acts_as_trackable :after_add => Proc.new {|p,t| notify_activity(t)} |
17 | acts_as_accessor | 19 | acts_as_accessor |
18 | 20 |
app/views/search/search_page.html.erb
1 | -<%= render :partial => 'search_form', :locals => { :hint => _("Type words about the %s you're looking for") % @asset.to_s.singularize } %> | 1 | +<%= render :partial => 'search_form', :locals => { :hint => _("Type words about the %s you're looking for") % _(@asset.to_s.singularize) } %> |
2 | <%= render :partial => 'search_content' %> | 2 | <%= render :partial => 'search_content' %> |
3 | 3 | ||
4 | <div style="clear: both"></div> | 4 | <div style="clear: both"></div> |