diff --git a/app/controllers/public/search_controller.rb b/app/controllers/public/search_controller.rb index 32ef73b..095378c 100644 --- a/app/controllers/public/search_controller.rb +++ b/app/controllers/public/search_controller.rb @@ -194,10 +194,10 @@ class SearchController < ApplicationController @names = {} [ [ :people, _('People'), @finder.recent('people', limit) ], - [ :enterprises, _('Enterprises'), @finder.recent('enterprises', limit) ], + [ :enterprises, __('Enterprises'), @finder.recent('enterprises', limit) ], [ :products, ('Products'), @finder.recent('products', limit) ], [ :events, _('Upcoming events'), @finder.upcoming_events({:per_page => limit}) ], - [ :communities, _('Communities'), @finder.recent('communities', limit) ], + [ :communities, __('Communities'), @finder.recent('communities', limit) ], [ :most_commented_articles, _('Most commented articles'), @finder.most_commented_articles(limit) ], [ :articles, _('Articles'), @finder.recent('text_articles', limit) ] ].each do |key, name, list| diff --git a/app/helpers/assets_helper.rb b/app/helpers/assets_helper.rb index bce1e10..089707e 100644 --- a/app/helpers/assets_helper.rb +++ b/app/helpers/assets_helper.rb @@ -7,7 +7,7 @@ module AssetsHelper [ options.merge(:asset => 'articles'), "icon-menu-articles", _('Articles') ], [ options.merge(:asset => 'people'), "icon-menu-people", _('People') ], [ options.merge(:asset => 'products'), "icon-menu-product", _('Products') ], - [ options.merge(:asset => 'enterprises'), "icon-menu-enterprise", _('Enterprises') ], + [ options.merge(:asset => 'enterprises'), "icon-menu-enterprise", __('Enterprises') ], [ options.merge(:asset => 'communities'), "icon-menu-community", __('Communities') ], [ options.merge(:asset => 'events'), "icon-menu-events", _('Events') ], diff --git a/app/models/enterprises_block.rb b/app/models/enterprises_block.rb index dc62772..e6fc46e 100644 --- a/app/models/enterprises_block.rb +++ b/app/models/enterprises_block.rb @@ -1,15 +1,15 @@ class EnterprisesBlock < ProfileListBlock def default_title - _('Enterprises') + __('Enterprises') end def help - _('The enterprises where this user works.') + __('The enterprises where this user works.') end def self.description - _('A block that displays your enterprises') + __('A block that displays your enterprises') end def footer @@ -17,11 +17,11 @@ class EnterprisesBlock < ProfileListBlock case owner when Profile lambda do - link_to _('All enterprises'), :profile => owner.identifier, :controller => 'profile', :action => 'enterprises' + link_to __('All enterprises'), :profile => owner.identifier, :controller => 'profile', :action => 'enterprises' end when Environment lambda do - link_to _('All enterprises'), :controller => 'search', :action => 'assets', :asset => 'enterprises' + link_to __('All enterprises'), :controller => 'search', :action => 'assets', :asset => 'enterprises' end else '' diff --git a/app/models/environment.rb b/app/models/environment.rb index 5f3af7a..eecefc6 100644 --- a/app/models/environment.rb +++ b/app/models/environment.rb @@ -23,7 +23,7 @@ class Environment < ActiveRecord::Base def self.available_features { 'disable_asset_articles' => _('Disable search for articles '), - 'disable_asset_enterprises' => _('Disable search for enterprises'), + 'disable_asset_enterprises' => __('Disable search for enterprises'), 'disable_asset_people' => _('Disable search for people'), 'disable_asset_communities' => __('Disable search for communities'), 'disable_asset_products' => _('Disable search for products'), diff --git a/app/models/environment_statistics_block.rb b/app/models/environment_statistics_block.rb index a74093c..b895e38 100644 --- a/app/models/environment_statistics_block.rb +++ b/app/models/environment_statistics_block.rb @@ -15,7 +15,7 @@ class EnvironmentStatisticsBlock < Block info = [ n_('One user', '%{num} users', users) % { :num => users }, - n_('One enterprise', '%{num} enterprises', enterprises) % { :num => enterprises }, + n__('One enterprise', '%{num} enterprises', enterprises) % { :num => enterprises }, n__('One community', '%{num} communities', communities) % { :num => communities }, ] diff --git a/app/models/favorite_enterprises_block.rb b/app/models/favorite_enterprises_block.rb index fec5d63..4d47ad6 100644 --- a/app/models/favorite_enterprises_block.rb +++ b/app/models/favorite_enterprises_block.rb @@ -1,22 +1,22 @@ class FavoriteEnterprisesBlock < ProfileListBlock def default_title - _('Favorite Enterprises') + __('Favorite Enterprises') end def help - _('This user\'s favorite enterprises.') + __('This user\'s favorite enterprises.') end def self.description - _('A block that displays your favorite enterprises') + __('A block that displays your favorite enterprises') end def footer owner = self.owner return '' unless owner.kind_of?(Person) lambda do - link_to _('All favorite enterprises'), :profile => owner.identifier, :controller => 'profile', :action => 'favorite_enterprises' + link_to __('All favorite enterprises'), :profile => owner.identifier, :controller => 'profile', :action => 'favorite_enterprises' end end diff --git a/app/models/sellers_search_block.rb b/app/models/sellers_search_block.rb index 7cf52d6..d5ca69d 100644 --- a/app/models/sellers_search_block.rb +++ b/app/models/sellers_search_block.rb @@ -1,7 +1,7 @@ class SellersSearchBlock < Block def self.description - _('A search for enterprises by products selled and local') + __('A search for enterprises by products selled and local') end def self.short_description diff --git a/app/views/admin_panel/index.rhtml b/app/views/admin_panel/index.rhtml index 974ad9b..154c393 100644 --- a/app/views/admin_panel/index.rhtml +++ b/app/views/admin_panel/index.rhtml @@ -4,7 +4,7 @@
<%= link_to _("See the list of processed enterprise validations"), :action => 'list_processed' %>
+<%= link_to __("See the list of processed enterprise validations"), :action => 'list_processed' %>
diff --git a/app/views/profile/enterprises.rhtml b/app/views/profile/enterprises.rhtml index 455cfc9..0dcb7dd 100644 --- a/app/views/profile/enterprises.rhtml +++ b/app/views/profile/enterprises.rhtml @@ -1,7 +1,7 @@