diff --git a/app/models/article.rb b/app/models/article.rb index 0b5cb46..4608805 100644 --- a/app/models/article.rb +++ b/app/models/article.rb @@ -29,6 +29,8 @@ class Article < ApplicationRecord :display => %w[full] } + N_('article') + def initialize(*params) super if params.present? && params.first.present? diff --git a/app/models/community.rb b/app/models/community.rb index 6c4499b..33365b0 100644 --- a/app/models/community.rb +++ b/app/models/community.rb @@ -9,7 +9,7 @@ class Community < Organization _('Community') end - N_('Community') + N_('community') N_('Language') settings_items :language diff --git a/app/models/enterprise.rb b/app/models/enterprise.rb index bf30e12..de68ab9 100644 --- a/app/models/enterprise.rb +++ b/app/models/enterprise.rb @@ -12,7 +12,7 @@ class Enterprise < Organization _('Enterprise') end - N_('Enterprise') + N_('enterprise') acts_as_trackable after_add: proc{ |p, t| notify_activity t } diff --git a/app/models/person.rb b/app/models/person.rb index 8ed2809..323e5b6 100644 --- a/app/models/person.rb +++ b/app/models/person.rb @@ -13,6 +13,8 @@ class Person < Profile _('Person') end + N_('person') + acts_as_trackable :after_add => Proc.new {|p,t| notify_activity(t)} acts_as_accessor diff --git a/app/views/search/search_page.html.erb b/app/views/search/search_page.html.erb index a60370b..68711db 100644 --- a/app/views/search/search_page.html.erb +++ b/app/views/search/search_page.html.erb @@ -1,4 +1,4 @@ -<%= render :partial => 'search_form', :locals => { :hint => _("Type words about the %s you're looking for") % @asset.to_s.singularize } %> +<%= render :partial => 'search_form', :locals => { :hint => _("Type words about the %s you're looking for") % _(@asset.to_s.singularize) } %> <%= render :partial => 'search_content' %>
-- libgit2 0.21.2