Commit 86ecb14ff8a8a5d7875cd6f9a936f3e0661a8ef8

Authored by Antonio Terceiro
1 parent d7af47e3

Finish removal of the deprecated terminology thing

Showing 65 changed files with 133 additions and 144 deletions   Show diff stats
app/controllers/admin/admin_panel_controller.rb
... ... @@ -42,7 +42,7 @@ class AdminPanelController < AdminController
42 42 end
43 43 redirect_to :action => 'set_portal_folders'
44 44 else
45   - session[:notice] = __('Community not found. You must insert the identifier of a community from this environment')
  45 + session[:notice] = _('Community not found. You must insert the identifier of a community from this environment')
46 46 end
47 47 end
48 48 end
... ...
app/controllers/admin/features_controller.rb
... ... @@ -34,9 +34,9 @@ class FeaturesController < AdminController
34 34 def manage_enterprise_fields
35 35 environment.custom_enterprise_fields = params[:enterprise_fields]
36 36 if environment.save!
37   - session[:notice] = __('Enterprise fields updated successfully.')
  37 + session[:notice] = _('Enterprise fields updated successfully.')
38 38 else
39   - flash[:error] = __('Enterprise fields not updated successfully.')
  39 + flash[:error] = _('Enterprise fields not updated successfully.')
40 40 end
41 41 redirect_to :action => 'manage_fields'
42 42 end
... ...
app/controllers/public/profile_controller.rb
... ... @@ -167,7 +167,7 @@ class ProfileController < PublicController
167 167 session[:notice] = _("You have unblocked %s successfully. ") % profile.name
168 168 redirect_to :controller => 'profile', :action => 'index'
169 169 else
170   - message = __('You are not allowed to unblock enterprises in this environment.')
  170 + message = _('You are not allowed to unblock enterprises in this environment.')
171 171 render_access_denied(message)
172 172 end
173 173 end
... ...
app/helpers/assets_helper.rb
... ... @@ -7,9 +7,9 @@ module AssetsHelper
7 7 [ options.merge(:asset => 'articles'), "icon-menu-articles", _('Articles') ],
8 8 [ options.merge(:asset => 'people'), "icon-menu-people", _('People') ],
9 9 [ options.merge(:asset => 'products'), "icon-menu-product", _('Products') ],
10   - [ options.merge(:asset => 'enterprises'), "icon-menu-enterprise", __('Enterprises') ],
11   - [ options.merge(:asset => 'communities'), "icon-menu-community", __('Communities') ],
12   - [ options.merge(:asset => 'events'), "icon-event", __('Events') ],
  10 + [ options.merge(:asset => 'enterprises'), "icon-menu-enterprise", _('Enterprises') ],
  11 + [ options.merge(:asset => 'communities'), "icon-menu-community", _('Communities') ],
  12 + [ options.merge(:asset => 'events'), "icon-event", _('Events') ],
13 13  
14 14 ].select do |target, css_class, name|
15 15 !environment.enabled?('disable_asset_' + target[:asset])
... ...
app/helpers/profile_editor_helper.rb
... ... @@ -129,7 +129,7 @@ module ProfileEditorHelper
129 129 else
130 130 domains = environment.domains
131 131 end
132   - labelled_form_field(__('Preferred domain name:'), select(object, :preferred_domain_id, domains.map {|item| [item.name, item.id]}, :prompt => '<' + _('Select domain') + '>'))
  132 + labelled_form_field(_('Preferred domain name:'), select(object, :preferred_domain_id, domains.map {|item| [item.name, item.id]}, :prompt => '<' + _('Select domain') + '>'))
133 133 end
134 134  
135 135 def control_panel(&block)
... ...
app/models/communities_block.rb
1 1 class CommunitiesBlock < ProfileListBlock
2 2  
3 3 def self.description
4   - __('Communities')
  4 + _('Communities')
5 5 end
6 6  
7 7 def default_title
8   - n__('{#} community', '{#} communities', profile_count)
  8 + n_('{#} community', '{#} communities', profile_count)
9 9 end
10 10  
11 11 def help
12   - __('This block displays the communities in which the user is a member.')
  12 + _('This block displays the communities in which the user is a member.')
13 13 end
14 14  
15 15 def footer
... ...
app/models/community.rb
... ... @@ -84,7 +84,7 @@ class Community &lt; Organization
84 84 end
85 85  
86 86 def control_panel_settings_button
87   - {:title => __('Community Info and settings'), :icon => 'edit-profile-group'}
  87 + {:title => _('Community Info and settings'), :icon => 'edit-profile-group'}
88 88 end
89 89  
90 90 def activities
... ...
app/models/create_enterprise.rb
... ... @@ -165,18 +165,18 @@ class CreateEnterprise &lt; Task
165 165 end
166 166  
167 167 def task_finished_message
168   - __('Your request for registering the enterprise "%{enterprise}" was approved. You can access %{environment} now and provide start providing all relevant information your new enterprise.') % { :enterprise => self.name, :environment => self.environment }
  168 + _('Your request for registering the enterprise "%{enterprise}" was approved. You can access %{environment} now and provide start providing all relevant information your new enterprise.') % { :enterprise => self.name, :environment => self.environment }
169 169 end
170 170  
171 171 def task_cancelled_message
172   - __("Your request for registering the enterprise %{enterprise} at %{environment} was NOT approved by the validator organization. The following explanation was given: \n\n%{explanation}") % { :enterprise => self.name, :environment => self.environment, :explanation => self.reject_explanation }
  172 + _("Your request for registering the enterprise %{enterprise} at %{environment} was NOT approved by the validator organization. The following explanation was given: \n\n%{explanation}") % { :enterprise => self.name, :environment => self.environment, :explanation => self.reject_explanation }
173 173 end
174 174  
175 175 def target_notification_message
176 176 msg = ""
177   - msg << __("Enterprise \"%{enterprise}\" just requested to enter %{environment}. You have to approve or reject it through the \"Pending Validations\" section in your control panel.\n") % { :enterprise => self.name, :environment => self.environment }
  177 + msg << _("Enterprise \"%{enterprise}\" just requested to enter %{environment}. You have to approve or reject it through the \"Pending Validations\" section in your control panel.\n") % { :enterprise => self.name, :environment => self.environment }
178 178 msg << "\n"
179   - msg << __("The data provided by the enterprise was the following:\n") << "\n"
  179 + msg << _("The data provided by the enterprise was the following:\n") << "\n"
180 180  
181 181  
182 182 msg << (_("Name: %s") % self.name) << "\n"
... ... @@ -186,12 +186,12 @@ class CreateEnterprise &lt; Task
186 186 msg << (_("Foundation Year: %d") % self.foundation_year) << "\n" unless self.foundation_year.blank?
187 187 msg << (_("Economic activity: %s") % self.economic_activity) << "\n"
188 188  
189   - msg << __("Information about enterprise's management:\n") << self.management_information.to_s << "\n"
  189 + msg << _("Information about enterprise's management:\n") << self.management_information.to_s << "\n"
190 190  
191 191 msg << (_("Contact phone: %s") % self.contact_phone) << "\n"
192 192 msg << (_("Contact person: %s") % self.contact_person) << "\n"
193 193  
194   - msg << __('CreateEnterprise|Identifier')
  194 + msg << _('CreateEnterprise|Identifier')
195 195  
196 196 msg
197 197 end
... ...
app/models/disabled_enterprise_message_block.rb
1 1 class DisabledEnterpriseMessageBlock < Block
2 2  
3 3 def self.description
4   - __('"Disabled enterprise" message')
  4 + _('"Disabled enterprise" message')
5 5 end
6 6  
7 7 def help
8   - __('Shows a message for disabled enterprises.')
  8 + _('Shows a message for disabled enterprises.')
9 9 end
10 10  
11 11 def default_title
... ...
app/models/enterprise.rb
... ... @@ -163,7 +163,7 @@ class Enterprise &lt; Organization
163 163 alias_method_chain :template, :inactive_enterprise
164 164  
165 165 def control_panel_settings_button
166   - {:title => __('Enterprise Info and settings'), :icon => 'edit-profile-enterprise'}
  166 + {:title => _('Enterprise Info and settings'), :icon => 'edit-profile-enterprise'}
167 167 end
168 168  
169 169 settings_items :enable_contact_us, :type => :boolean, :default => true
... ... @@ -173,7 +173,7 @@ class Enterprise &lt; Organization
173 173 end
174 174  
175 175 def control_panel_settings_button
176   - {:title => __('Enterprise Info and settings'), :icon => 'edit-profile-enterprise'}
  176 + {:title => _('Enterprise Info and settings'), :icon => 'edit-profile-enterprise'}
177 177 end
178 178  
179 179 def create_product?
... ...
app/models/enterprise_homepage.rb
... ... @@ -5,7 +5,7 @@ class EnterpriseHomepage &lt; Article
5 5 end
6 6  
7 7 def self.short_description
8   - __('Enterprise homepage')
  8 + _('Enterprise homepage')
9 9 end
10 10  
11 11 def self.description
... ...
app/models/enterprises_block.rb
1 1 class EnterprisesBlock < ProfileListBlock
2 2  
3 3 def default_title
4   - n__('{#} enterprise', '{#} enterprises', profile_count)
  4 + n_('{#} enterprise', '{#} enterprises', profile_count)
5 5 end
6 6  
7 7 def help
8   - __('This block displays the enterprises where this user works.')
  8 + _('This block displays the enterprises where this user works.')
9 9 end
10 10  
11 11 def self.description
12   - __('Enterprises')
  12 + _('Enterprises')
13 13 end
14 14  
15 15 def footer
... ...
app/models/environment.rb
... ... @@ -91,12 +91,12 @@ class Environment &lt; ActiveRecord::Base
91 91 def self.available_features
92 92 {
93 93 'disable_asset_articles' => _('Disable search for articles '),
94   - 'disable_asset_enterprises' => __('Disable search for enterprises'),
  94 + 'disable_asset_enterprises' => _('Disable search for enterprises'),
95 95 'disable_asset_people' => _('Disable search for people'),
96   - 'disable_asset_communities' => __('Disable search for communities'),
  96 + 'disable_asset_communities' => _('Disable search for communities'),
97 97 'disable_asset_products' => _('Disable search for products'),
98 98 'disable_asset_events' => _('Disable search for events'),
99   - 'disable_products_for_enterprises' => __('Disable products for enterprises'),
  99 + 'disable_products_for_enterprises' => _('Disable products for enterprises'),
100 100 'disable_categories' => _('Disable categories'),
101 101 'disable_header_and_footer' => _('Disable header/footer editing by users'),
102 102 'disable_gender_icon' => _('Disable gender icon'),
... ... @@ -104,9 +104,9 @@ class Environment &lt; ActiveRecord::Base
104 104 'disable_select_city_for_contact' => _('Disable state/city select for contact form'),
105 105 'disable_contact_person' => _('Disable contact for people'),
106 106 'disable_contact_community' => _('Disable contact for groups/communities'),
107   - 'enterprise_registration' => __('Enterprise registration'),
  107 + 'enterprise_registration' => _('Enterprise registration'),
108 108  
109   - 'enterprise_activation' => __('Enable activation of enterprises'),
  109 + 'enterprise_activation' => _('Enable activation of enterprises'),
110 110 'media_panel' => _('Media panel in WYSIWYG editor'),
111 111 'select_preferred_domain' => _('Select preferred domains per profile'),
112 112 'use_portal_community' => _('Use the portal as news source for front page'),
... ... @@ -119,8 +119,8 @@ class Environment &lt; ActiveRecord::Base
119 119 'organizations_are_moderated_by_default' => _("Organizations have moderated publication by default"),
120 120 'enable_organization_url_change' => _("Allow organizations to change their URL"),
121 121 'admin_must_approve_new_communities' => _("Admin must approve creation of communities"),
122   - 'enterprises_are_disabled_when_created' => __('Enterprises are disabled when created'),
123   - 'enterprises_are_validated_when_created' => __('Enterprises are validated when created'),
  122 + 'enterprises_are_disabled_when_created' => _('Enterprises are disabled when created'),
  123 + 'enterprises_are_validated_when_created' => _('Enterprises are validated when created'),
124 124 'show_balloon_with_profile_links_when_clicked' => _('Show a balloon with profile links when a profile image is clicked'),
125 125 'xmpp_chat' => _('XMPP/Jabber based chat'),
126 126 'show_zoom_button_on_article_images' => _('Show a zoom link on all article images'),
... ...
app/models/environment_statistics_block.rb
... ... @@ -20,9 +20,9 @@ class EnvironmentStatisticsBlock &lt; Block
20 20 info = []
21 21 info << (n_('One user', '%{num} users', users) % { :num => users })
22 22 unless owner.enabled?('disable_asset_enterprises')
23   - info << (n__('One enterprise', '%{num} enterprises', enterprises) % { :num => enterprises })
  23 + info << (n_('One enterprise', '%{num} enterprises', enterprises) % { :num => enterprises })
24 24 end
25   - info << (n__('One community', '%{num} communities', communities) % { :num => communities })
  25 + info << (n_('One community', '%{num} communities', communities) % { :num => communities })
26 26  
27 27 block_title(title) + content_tag('ul', info.map {|item| content_tag('li', item) }.join("\n"))
28 28 end
... ...
app/models/fans_block.rb
... ... @@ -5,7 +5,7 @@ class FansBlock &lt; ProfileListBlock
5 5 end
6 6  
7 7 def default_title
8   - n__('{#} fan', '{#} fans', profile_count)
  8 + n_('{#} fan', '{#} fans', profile_count)
9 9 end
10 10  
11 11 def help
... ...
app/models/favorite_enterprises_block.rb
1 1 class FavoriteEnterprisesBlock < ProfileListBlock
2 2  
3 3 def default_title
4   - __('Favorite Enterprises')
  4 + _('Favorite Enterprises')
5 5 end
6 6  
7 7 def help
8   - __('This block lists your favorite enterprises.')
  8 + _('This block lists your favorite enterprises.')
9 9 end
10 10  
11 11 def self.description
12   - __('Favorite Enterprises')
  12 + _('Favorite Enterprises')
13 13 end
14 14  
15 15 def footer
16 16 owner = self.owner
17 17 return '' unless owner.kind_of?(Person)
18 18 lambda do
19   - link_to __('View all'), :profile => owner.identifier, :controller => 'profile', :action => 'favorite_enterprises'
  19 + link_to _('View all'), :profile => owner.identifier, :controller => 'profile', :action => 'favorite_enterprises'
20 20 end
21 21 end
22 22  
... ...
app/models/friends_block.rb
1 1 class FriendsBlock < ProfileListBlock
2 2  
3 3 def self.description
4   - __('Friends')
  4 + _('Friends')
5 5 end
6 6  
7 7 def default_title
8   - n__('{#} friend', '{#} friends', profile_count)
  8 + n_('{#} friend', '{#} friends', profile_count)
9 9 end
10 10  
11 11 def help
... ...
app/models/sellers_search_block.rb
1 1 class SellersSearchBlock < Block
2 2  
3 3 def self.description
4   - __('Search for enterprises and products')
  4 + _('Search for enterprises and products')
5 5 end
6 6  
7 7 def self.short_description
8   - __('Products/Enterprises search')
  8 + _('Products/Enterprises search')
9 9 end
10 10  
11 11 def default_title
... ...
app/views/account/accept_terms.html.erb
... ... @@ -11,7 +11,7 @@
11 11 }
12 12 </script>
13 13 <div class=activation-box>
14   - <h2><%= __('Enterprise activation') + ' - ' + (logged_in? ? _('part 2 of 2') : _(' part 2 of 3')) %></h2>
  14 + <h2><%= _('Enterprise activation') + ' - ' + (logged_in? ? _('part 2 of 2') : _(' part 2 of 3')) %></h2>
15 15  
16 16 <div id='terms-of-enterprise-use' class='height: 200px; overflow: auto;'><%= @terms_of_enterprise_use %></div>
17 17  
... ...
app/views/account/activate_enterprise.html.erb
1 1 <div class='activation-box'>
2   -<h2><%= __('Enterprise activation - part 3 of 3') %></h2>
  2 +<h2><%= _('Enterprise activation - part 3 of 3') %></h2>
3 3  
4 4 <%= error_messages_for :user %>
5 5  
6   -<p><%= __('Now for you manage your enterprise you have to associate an individual account to the enterprise.') %></p>
  6 +<p><%= _('Now for you manage your enterprise you have to associate an individual account to the enterprise.') %></p>
7 7 <p><%= _('Do you have a personal user account in the system?') %></p>
8 8  
9 9 <div id="enterprise-activation-create-user-or-login-button">
... ... @@ -14,7 +14,7 @@
14 14 <div id="enterprise-activation-create-user-form" style="display: none">
15 15 <h3><%= _('Personal signup form') %></h3>
16 16 <%= render :partial => 'signup_form', :locals => { :hidden_atention => true } %>
17   - <p><%= message = __('<b>Warning</b>: this form is for your personal information, not of your enterprise. So you will have a personal account that can manage your enterprise.') %></p>
  17 + <p><%= message = _('<b>Warning</b>: this form is for your personal information, not of your enterprise. So you will have a personal account that can manage your enterprise.') %></p>
18 18 </div>
19 19  
20 20 <div id="enterprise-activation-login-form" style="display: none">
... ...
app/views/account/activation_question.html.erb
... ... @@ -23,14 +23,14 @@
23 23 </script>
24 24  
25 25 <div class='activation-box'>
26   - <h2><%= __('Enterprise activation') + ' - ' + (logged_in? ? _('part 1 of 2') : _('part 1 of 3')) %></h2>
  26 + <h2><%= _('Enterprise activation') + ' - ' + (logged_in? ? _('part 1 of 2') : _('part 1 of 3')) %></h2>
27 27 <% form_tag( {:action => 'accept_terms'}, {:method => 'get', :onsubmit => (@question == :foundation_year ? 'return check_valid_year(this)' : 'return check_valid_cnpj(this)')}) do %>
28 28  
29 29 <p> <strong><%= _('Pay atention! You have only one chance!') %></strong> </p>
30 30  
31   - <p><%= __("This is a question to know if you really are part of this enterprise. Pay atention because you have only one chance to answer right and activate your enterprise. If you answer wrong you will not be able to activate the enterprise automaticaly and must get in touch with the admins of %s by email or phone.") % environment.name %> </p>
  31 + <p><%= _("This is a question to know if you really are part of this enterprise. Pay atention because you have only one chance to answer right and activate your enterprise. If you answer wrong you will not be able to activate the enterprise automaticaly and must get in touch with the admins of %s by email or phone.") % environment.name %> </p>
32 32  
33   - <%= ApplicationHelper::NoosferoFormBuilder::output_field(@question == :foundation_year ? (__("What year your enterprise was founded? It must have 4 digits, eg 1990. %s") % environment.tip_message_enterprise_activation_question) : __('What is the CNPJ of your enterprise?'), text_field_tag(:answer, nil, :id => 'enterprise-activation-answer')) %>
  33 + <%= ApplicationHelper::NoosferoFormBuilder::output_field(@question == :foundation_year ? (_("What year your enterprise was founded? It must have 4 digits, eg 1990. %s") % environment.tip_message_enterprise_activation_question) : _('What is the CNPJ of your enterprise?'), text_field_tag(:answer, nil, :id => 'enterprise-activation-answer')) %>
34 34  
35 35 <%= hidden_field_tag :enterprise_code, params[:enterprise_code] %>
36 36  
... ...
app/views/account/already_activated.html.erb
1   -<%= __('This enterprise is already active') %>
  1 +<%= _('This enterprise is already active') %>
... ...
app/views/account/blocked.html.erb
1 1 <div class='blocked-warning' >
2   -<center><h1><%= __('This enterprise can\'t be activated by the system') %></h1></center>
3   -<p><%= __('Unfortunately this enterprise can\'t be activated via the system.') %></p>
  2 +<center><h1><%= _('This enterprise can\'t be activated by the system') %></h1></center>
  3 +<p><%= _('Unfortunately this enterprise can\'t be activated via the system.') %></p>
4 4 <p>
5 5 <% if @enterprise.blocked? %>
6 6 <%= _('There was a failed atempt of activation and the automated activation was disabled for your security.') %>
7 7 <% else %>
8   - <%= __('We dont have enough information about your enterprise to identify you.') %>
  8 + <%= _('We dont have enough information about your enterprise to identify you.') %>
9 9 <% end %>
10 10 </p>
11 11  
12 12 <% if @environment.activation_blocked_text.blank? %>
13   - <%= __('Your enterprise has been blocked') %>
  13 + <%= _('Your enterprise has been blocked') %>
14 14 <% else %>
15 15 <%= @environment.activation_blocked_text %>
16 16 <% end %>
... ...
app/views/account/invalid_enterprise_code.html.erb
1   -<h1><%= __("Invalid enterprise code") %></h1>
  1 +<h1><%= _("Invalid enterprise code") %></h1>
2 2  
3 3 <p>
4   -<%= __('The code you are using for validate your enterprise is not valid. Please check if you are typing it correctly.') %>
  4 +<%= _('The code you are using for validate your enterprise is not valid. Please check if you are typing it correctly.') %>
5 5 </p>
... ...
app/views/account/welcome.html.erb
1 1 <% if @enterprise && logged_in? %>
2 2 <h1><%= _('Welcome to %s') % environment.name %></h1>
3 3  
4   - <%= __('%s was successfuly activated. Now you may go to your control panel or to the control panel of your enterprise') % @enterprise.name %>
  4 + <%= _('%s was successfuly activated. Now you may go to your control panel or to the control panel of your enterprise') % @enterprise.name %>
5 5  
6 6 <% button_bar do %>
7 7 <%= button 'forward', _('Go to my control panel'), :action => 'index', :controller => 'profile_editor', :profile => current_user.person.identifier %>
8   - <%= button 'forward', __('Go to my enterprise control panel') % @enterprise.name, :action => 'index', :controller => 'profile_editor', :profile => @enterprise.identifier %>
  8 + <%= button 'forward', _('Go to my enterprise control panel') % @enterprise.name, :action => 'index', :controller => 'profile_editor', :profile => @enterprise.identifier %>
9 9 <% end %>
10 10 <% end %>
... ...
app/views/admin_panel/index.html.erb
... ... @@ -36,7 +36,7 @@
36 36 <h2><%= _('Enterprise-related settings') %></h2>
37 37  
38 38 <table>
39   - <tr><td><%= link_to __('Message for disabled enterprises'), :action => 'message_for_disabled_enterprise' %></td></tr>
  39 + <tr><td><%= link_to _('Message for disabled enterprises'), :action => 'message_for_disabled_enterprise' %></td></tr>
40 40 <tr><td><%= link_to _('Validators by region'), :controller => 'region_validators' %></td></tr>
41 41 <tr><td><%= link_to _('Categories'), :controller => 'categories'%></td></tr>
42 42 </table>
... ...
app/views/blocks/my_network.html.erb
... ... @@ -3,7 +3,7 @@
3 3 <%= render :file => 'blocks/my_network/' + owner.class.name.underscore, :locals => { :owner => owner } %>
4 4  
5 5 <ul>
6   - <li><%= link_to(__('Homepage'), owner.url, :class => 'url') %></li>
  6 + <li><%= link_to(_('Homepage'), owner.url, :class => 'url') %></li>
7 7 <li><%= link_to(_('View profile'), owner.public_profile_url) %></li>
8 8 <% if !user.nil? and owner.organization? and user.has_permission?('edit_profile', profile) %>
9 9 <li><%= link_to _('Control panel'), :controller => 'profile_editor', :profile => profile.identifier %></li>
... ...
app/views/blocks/my_network/person.html.erb
1 1 <ul>
2 2 <li><%= link_to(n_( 'One article published', '%s articles published', owner.articles.count) %
3 3 content_tag('b', owner.articles.count), owner.public_profile_url.merge(:action => 'sitemap') ) %></li>
4   - <li><%= link_to(n__('One friend', '%s friends', owner.friends.count) %
  4 + <li><%= link_to(n_('One friend', '%s friends', owner.friends.count) %
5 5 content_tag('b', owner.friends.count), owner.public_profile_url.merge(:action => 'friends')) %></li>
6   - <li><%= link_to(n__('One community', '%{num} communities', owner.communities.visible.size) %
  6 + <li><%= link_to(n_('One community', '%{num} communities', owner.communities.visible.size) %
7 7 {:num => content_tag('b', owner.communities.visible.size)}, owner.public_profile_url.merge(:action => 'communities')) %></li>
8 8 <li><%= link_to(n_('One tag', '%s tags', owner.article_tags.size) %
9 9 content_tag('b', owner.article_tags.size), owner.public_profile_url.merge(:action => 'tags')) %></li>
... ...
app/views/blocks/profile_info.html.erb
... ... @@ -15,7 +15,7 @@
15 15 </div>
16 16  
17 17 <ul class="profile-info-data" id="profile-info-data-<%= block.id %>">
18   - <li><%= link_to __('Homepage'), block.owner.url, :class => 'url' %></li>
  18 + <li><%= link_to _('Homepage'), block.owner.url, :class => 'url' %></li>
19 19 <li><%= link_to _('View profile'), block.owner.public_profile_url %></li>
20 20 <% if block.owner.enterprise? && !block.owner.environment.enabled?('disable_products_for_enterprises') %>
21 21 <li><%= link_to(_('Products/Services'), :controller => 'catalog', :profile => block.owner.identifier) %></li>
... ...
app/views/blocks/profile_info_actions/community.html.erb
... ... @@ -2,11 +2,11 @@
2 2 <% if logged_in? %>
3 3 <% if profile.members.include?(user) %>
4 4 <li>
5   - <%= button(:delete, content_tag('span', __('Leave community')), profile.leave_url,
  5 + <%= button(:delete, content_tag('span', _('Leave community')), profile.leave_url,
6 6 :class => 'leave-community',
7 7 :title => _("Leave community"),
8 8 :style => 'position: relative;') %>
9   - <%= button(:add, content_tag('span', __('Join')), profile.join_url,
  9 + <%= button(:add, content_tag('span', _('Join')), profile.join_url,
10 10 :class => 'join-community',
11 11 :title => _("Join community"),
12 12 :style => 'position: relative; display: none;') %>
... ... @@ -14,11 +14,11 @@
14 14 <% else %>
15 15 <% unless profile.already_request_membership?(user) %>
16 16 <li>
17   - <%= button(:delete, content_tag('span', __('Leave community')), profile.leave_url,
  17 + <%= button(:delete, content_tag('span', _('Leave community')), profile.leave_url,
18 18 :class => 'leave-community',
19 19 :title => _("Leave community"),
20 20 :style => 'position: relative; display: none;') %>
21   - <%= button(:add, content_tag('span', __('Join')), profile.join_url,
  21 + <%= button(:add, content_tag('span', _('Join')), profile.join_url,
22 22 :class => 'join-community',
23 23 :title => _("Join community"),
24 24 :style => 'position: relative;') %>
... ...
app/views/blocks/profile_info_actions/enterprise.html.erb
1 1 <ul>
2 2 <%if logged_in? %>
3 3 <%if !user.favorite_enterprises.include?(profile) %>
4   - <li><%= link_to content_tag('span', _('Add as favorite')), { :profile => user.identifier, :controller => 'favorite_enterprises', :action => 'add', :id => profile.id }, :class => 'button with-text icon-add', :title => __('Add enterprise as favorite') %></li>
  4 + <li><%= link_to content_tag('span', _('Add as favorite')), { :profile => user.identifier, :controller => 'favorite_enterprises', :action => 'add', :id => profile.id }, :class => 'button with-text icon-add', :title => _('Add enterprise as favorite') %></li>
5 5 <% end %>
6 6 <% end %>
7 7 <% if profile.enable_contact? %>
... ...
app/views/blocks/profile_info_actions/person.html.erb
... ... @@ -3,7 +3,7 @@
3 3  
4 4 <% if !user.already_request_friendship?(profile) and !user.is_a_friend?(profile) %>
5 5 <li>
6   - <%= button(:add, content_tag('span', __('Add friend')), profile.add_url, :class => 'add-friend', :title => _("Add friend"), :style => 'position: relative;') %>
  6 + <%= button(:add, content_tag('span', _('Add friend')), profile.add_url, :class => 'add-friend', :title => _("Add friend"), :style => 'position: relative;') %>
7 7 </li>
8 8 <% end %>
9 9  
... ...
app/views/enterprise_registration/basic_information.html.erb
1 1 <%= error_messages_for 'create_enterprise' %>
2 2  
3   -<h1><%= __('Enterprise registration') %></h1>
  3 +<h1><%= _('Enterprise registration') %></h1>
4 4  
5 5  
6 6 <% if @validation == :region && @regions.empty? %>
7 7 <div class='atention'>
8   - <%= __('There are no validators to validate the registration of this new enterprise. Contact your administrator for instructions.') %>
  8 + <%= _('There are no validators to validate the registration of this new enterprise. Contact your administrator for instructions.') %>
9 9 </div>
10 10  
11 11 <% button_bar do %>
... ... @@ -13,7 +13,7 @@
13 13 <% end %>
14 14 <% else %>
15 15 <div class='atention'>
16   - <%= __('To register a new enterprise, fill in the form and hit the Register button. Then the enterprise will be submitted for evaluation at the validation entitiy of your choice (within your state) and when the enterprise is aproved you will be able to activate its profile.') %>
  16 + <%= _('To register a new enterprise, fill in the form and hit the Register button. Then the enterprise will be submitted for evaluation at the validation entitiy of your choice (within your state) and when the enterprise is aproved you will be able to activate its profile.') %>
17 17 </div>
18 18  
19 19 <%= required_fields_message %>
... ...
app/views/enterprise_registration/confirmation.html.erb
1   -<h1><%= __('Enterprise registration completed') %></h1>
  1 +<h1><%= _('Enterprise registration completed') %></h1>
2 2  
3 3 <p>
4   -<%= __("Your enterprise registration request was successfully registered. The validator organization you choose (%s) should get in touch with to start the validation process. As soon as the validators approve (or reject) your request, you will be notified by e-mail.") % @create_enterprise.target.name %>
  4 +<%= _("Your enterprise registration request was successfully registered. The validator organization you choose (%s) should get in touch with to start the validation process. As soon as the validators approve (or reject) your request, you will be notified by e-mail.") % @create_enterprise.target.name %>
5 5 </p>
6 6  
7 7 <p>
... ...
app/views/enterprise_registration/creation.html.erb
1   -<h1><%= __('Enterprise registration completed') %></h1>
  1 +<h1><%= _('Enterprise registration completed') %></h1>
2 2  
3 3 <p>
4   -<%= __("Your enterprise (%s) was successfully registered.") % @enterprise.name %>
  4 +<%= _("Your enterprise (%s) was successfully registered.") % @enterprise.name %>
5 5 </p>
6 6  
7 7 <p>
8   -<%= link_to __('You can manage your enterprise now.'), @enterprise.admin_url %>
  8 +<%= link_to _('You can manage your enterprise now.'), @enterprise.admin_url %>
9 9 </p>
... ...
app/views/enterprise_registration/select_validator.html.erb
1   -<h1><%= __('Enterprise registration: validator organization') %></h1>
  1 +<h1><%= _('Enterprise registration: validator organization') %></h1>
2 2  
3 3 <p>
4   -<%= __('Select one organization to validate your enterprise registration request. Check the provided information about their validation methodoly and criteria.') %>
  4 +<%= _('Select one organization to validate your enterprise registration request. Check the provided information about their validation methodoly and criteria.') %>
5 5 </p>
6 6  
7 7 <% form_tag do %>
... ...
app/views/enterprise_validation/details.html.erb
... ... @@ -12,7 +12,7 @@
12 12  
13 13 <h4><%= _('Approve') %></h4>
14 14  
15   -<p><%= __('If this enterprise passes the criteria to be considered an solidarity enconomy enterprise, you can approve it by click the button below.') %></p>
  15 +<p><%= _('If this enterprise passes the criteria to be considered an solidarity enconomy enterprise, you can approve it by click the button below.') %></p>
16 16  
17 17 <% form_tag :action => 'approve', :id => @pending.code do %>
18 18 <% button_bar do %>
... ... @@ -22,7 +22,7 @@
22 22  
23 23 <h4><%= _('Reject') %></h4>
24 24  
25   -<p><%= __('If this enterprise does not pass the criteria do be considered, use this form.') %></p>
  25 +<p><%= _('If this enterprise does not pass the criteria do be considered, use this form.') %></p>
26 26  
27 27 <% form_tag :action => 'reject', :id => @pending.code do %>
28 28 <%= labelled_form_field(_('Please provide an explanation for the rejection. This explanation will be sent to the requestor (required).'), text_area_tag('reject_explanation'))%>
... ...
app/views/enterprise_validation/index.html.erb
1   -<h1><%= __('Enterprise validations') %></h1>
  1 +<h1><%= _('Enterprise validations') %></h1>
2 2  
3 3 <% button_bar do %>
4 4 <%= button(:edit, _('Edit validation info'), { :action => 'edit_validation_info' }) %>
5 5 <%= button(:back, _('Go Back'), { :controller => 'profile_editor' }) %>
6 6 <% end %>
7 7  
8   -<h2><%= __("Pending enterprise validations") %></h2>
  8 +<h2><%= _("Pending enterprise validations") %></h2>
9 9  
10 10 <% for pending in @pending_validations %>
11 11 <h3><%= pending.name %></h3>
... ... @@ -27,7 +27,7 @@
27 27 <%= link_to _("See details/approve/reject"), :action => 'details', :id => pending.code %>
28 28 <% end %>
29 29  
30   -<h2><%= __('Processed enterprise validations') %></h2>
  30 +<h2><%= _('Processed enterprise validations') %></h2>
31 31  
32   -<p><%= link_to __("See the list of processed enterprise validations"), :action => 'list_processed' %></p>
  32 +<p><%= link_to _("See the list of processed enterprise validations"), :action => 'list_processed' %></p>
33 33  
... ...
app/views/enterprise_validation/list_processed.html.erb
1   -<h2><%= __("Processed enterprise validations") %></h2>
  1 +<h2><%= _("Processed enterprise validations") %></h2>
2 2  
3 3 <%= link_to _("Back"), :action => 'index' %>
4 4  
... ...
app/views/favorite_enterprises/add.html.erb
1   -<h1><%= __('Adding %s as a favorite enterprise') % @favorite_enterprise.name %></h1>
  1 +<h1><%= _('Adding %s as a favorite enterprise') % @favorite_enterprise.name %></h1>
2 2  
3 3 <p>
4   -<%= __('Are you sure you want to add %s as your favorite enterprise?') % @favorite_enterprise.name %>
  4 +<%= _('Are you sure you want to add %s as your favorite enterprise?') % @favorite_enterprise.name %>
5 5 </p>
6 6  
7 7 <% form_tag do %>
8 8 <%= hidden_field_tag(:confirmation, 1) %>
9 9  
10   - <%= submit_button(:ok, __("Yes, I am sure"), :title => _("I want to add %s as a favorite enterprise") % @favorite_enterprise.name) %>
  10 + <%= submit_button(:ok, _("Yes, I am sure"), :title => _("I want to add %s as a favorite enterprise") % @favorite_enterprise.name) %>
11 11 <%= button(:cancel, _("No, I don't want"), :action => 'index') %>
12 12 <% end %>
... ...
app/views/favorite_enterprises/index.html.erb
1 1 <div id="manage_favorite_enterprises">
2 2  
3   -<h1><%= __("%s's favorite enterprises") % profile.name %></h1>
  3 +<h1><%= _("%s's favorite enterprises") % profile.name %></h1>
4 4  
5 5 <ul class="profile-list">
6 6 <% @favorite_enterprises.each do |enterprise| %>
... ... @@ -21,7 +21,7 @@
21 21 <% if @favorite_enterprises.empty? %>
22 22 <p>
23 23 <em>
24   - <%= __('You have no favorite enterprises yet.') %>
  24 + <%= _('You have no favorite enterprises yet.') %>
25 25 </em>
26 26 </p>
27 27 <% end %>
... ...
app/views/favorite_enterprises/remove.html.erb
1 1 <div id="remove_favorite_enterprise">
2 2  
3   -<h1><%= __('Removing favorite enterprise: %s') % @favorite_enterprise.name %></h1>
  3 +<h1><%= _('Removing favorite enterprise: %s') % @favorite_enterprise.name %></h1>
4 4  
5 5 <%= profile_image @favorite_enterprise, :thumb, :class => 'favorite_enterprise_picture' %>
6 6  
7 7 <p>
8   -<%= __('Are you sure you want to remove %s from your favorite enterprise list?') % @favorite_enterprise.name %>
  8 +<%= _('Are you sure you want to remove %s from your favorite enterprise list?') % @favorite_enterprise.name %>
9 9 </p>
10 10  
11 11 <% form_tag do %>
12 12 <%= hidden_field_tag(:confirmation, 1) %>
13 13  
14   - <%= submit_button(:ok, __("Yes, I want to remove %s from my favorite enterprise list") % @favorite_enterprise.name) %>
  14 + <%= submit_button(:ok, _("Yes, I want to remove %s from my favorite enterprise list") % @favorite_enterprise.name) %>
15 15 <%= button(:cancel, _("No, I don't want"), :action => 'index') %>
16 16 <% end %>
17 17  
... ...
app/views/features/_manage_community_fields.html.erb
1   -<h2><%= __('Manage community fields') %></h2>
  1 +<h2><%= _('Manage community fields') %></h2>
2 2  
3 3 <% labelled_form_for(:environment, @environment, :url => {:action => 'manage_community_fields'}) do |f| %>
4 4  
... ...
app/views/features/_manage_enterprise_fields.html.erb
1   -<h2><%= __('Manage enterprise fields') %></h2>
  1 +<h2><%= _('Manage enterprise fields') %></h2>
2 2  
3 3 <% labelled_form_for(:environment, @environment, :url => {:action => 'manage_enterprise_fields'}) do |f| %>
4 4  
... ...
app/views/friends/index.html.erb
1 1 <div id="manage_friends">
2 2  
3   -<h1><%= __("%s's friends") % profile.name %></h1>
  3 +<h1><%= _("%s's friends") % profile.name %></h1>
4 4  
5 5 <% cache_timeout(profile.manage_friends_cache_key(params), 4.hours) do %>
6 6 <% if @friends.empty? %>
7 7 <p>
8 8 <em>
9   - <%= __('You have no friends yet.') %>
  9 + <%= _('You have no friends yet.') %>
10 10 <%= link_to _('Do you want to see other people in this environment?'), :controller => 'search', :action => 'assets', :asset => 'people' %>
11 11 </em>
12 12 </p>
... ...
app/views/friends/remove.html.erb
1 1 <div id="remove_friend">
2 2  
3   -<h1><%= __('Removing friend: %s') % @friend.name %></h1>
  3 +<h1><%= _('Removing friend: %s') % @friend.name %></h1>
4 4  
5 5 <%= profile_image @friend, :thumb, :class => 'friend_picture' %>
6 6  
7 7 <p>
8   -<%= __('Are you sure you want to remove %s from your friends list?') % @friend.name %>
  8 +<%= _('Are you sure you want to remove %s from your friends list?') % @friend.name %>
9 9 </p>
10 10  
11 11 <p>
12 12 <em>
13   -<%= __('Note that %s will still have you as a friend, unless he/she also wants to remove you from his/her friend list.') % @friend.name %>
  13 +<%= _('Note that %s will still have you as a friend, unless he/she also wants to remove you from his/her friend list.') % @friend.name %>
14 14 </em>
15 15 </p>
16 16  
17 17 <% form_tag do %>
18 18 <%= hidden_field_tag(:confirmation, 1) %>
19 19  
20   - <%= submit_button(:ok, __("Yes") % @friend.name) %>
  20 + <%= submit_button(:ok, _("Yes") % @friend.name) %>
21 21 <%= button(:cancel, _("No"), :action => 'index') %>
22 22 <% end %>
23 23  
... ...
app/views/layouts/_javascript.html.erb
1   -<%= javascript_include_tag :defaults, 'jquery-latest.js',
  1 +<%= javascript_include_tag 'prototype.js', 'effects.js', 'dragdrop.js', 'controls.js', 'jquery-latest.js',
2 2 'jquery.noconflict.js', 'jquery.cycle.all.min.js', 'thickbox.js', 'lightbox', 'colorbox',
3 3 'jquery-ui-1.8.2.custom.min', 'jquery.scrollTo', 'jquery.form.js', 'jquery-validation/jquery.validate',
4 4 'jquery.cookie', 'jquery.ba-bbq.min.js', 'reflection', 'jquery.tokeninput',
... ...
app/views/layouts/application-ng.html.erb
... ... @@ -8,7 +8,7 @@
8 8 <meta name="description" content="<%= @environment.name %>" />
9 9 <link rel="shortcut icon" href="<%= image_path(theme_favicon) %>" type="image/x-icon" />
10 10 <%= noosfero_javascript %>
11   - <%= stylesheet_link_tag noosfero_stylesheets, :cache => 'cache' %>
  11 + <%= stylesheet_link_tag *noosfero_stylesheets, :cache => 'cache' %>
12 12 <%= stylesheet_link_tag template_stylesheet_path %>
13 13 <%= stylesheet_link_tag icon_theme_stylesheet_path %>
14 14 <%= stylesheet_link_tag jquery_ui_theme_stylesheet_path %>
... ...
app/views/memberships/index.html.erb
... ... @@ -3,8 +3,8 @@
3 3 <h1><%= _('Manage my groups') %></h1>
4 4  
5 5 <% button_bar do %>
6   - <%= button(:add, __('Create a new community'), :controller => 'memberships', :action => 'new_community') %>
7   - <%= button :add, __('Register a new enterprise'), :controller => 'enterprise_registration' if environment.enabled?('enterprise_registration') %>
  6 + <%= button(:add, _('Create a new community'), :controller => 'memberships', :action => 'new_community') %>
  7 + <%= button :add, _('Register a new enterprise'), :controller => 'enterprise_registration' if environment.enabled?('enterprise_registration') %>
8 8 <%= button :back, _('Go back'), :controller => 'profile_editor' %>
9 9 <% end %>
10 10  
... ...
app/views/memberships/new_community.html.erb
1   -<h1><%= __('Creating new community') %></h1>
  1 +<h1><%= _('Creating new community') %></h1>
2 2  
3 3 <% if environment.enabled?('admin_must_approve_new_communities') %>
4 4 <div class='explanation'>
... ...
app/views/profile/_person_profile.html.erb
... ... @@ -20,7 +20,7 @@
20 20  
21 21 <% if !environment.enabled?('disable_asset_enterprises') && !profile.enterprises.empty? %>
22 22 <tr>
23   - <th colspan='2'><%= __('Enterprises') %></th>
  23 + <th colspan='2'><%= _('Enterprises') %></th>
24 24 </tr>
25 25 <% profile.enterprises.includes(:environment,:domains, :preferred_domain).each do |item| %>
26 26 <tr>
... ... @@ -34,11 +34,11 @@
34 34 <th colspan='2'><%= _('Network')%></th>
35 35 </tr>
36 36 <tr>
37   - <td><%= __('Friends') + ':' %></td>
  37 + <td><%= _('Friends') + ':' %></td>
38 38 <td><%= link_to profile.friends.count, { :controller => 'profile', :action => 'friends' } %></td>
39 39 </tr>
40 40 <tr>
41   - <td><%= __('Communities') + ':' %></td>
  41 + <td><%= _('Communities') + ':' %></td>
42 42 <td><%= link_to profile.communities.count, :controller => "profile", :action => 'communities' %></td>
43 43 </tr>
44 44  
... ...
app/views/profile/_private_profile.html.erb
... ... @@ -7,10 +7,10 @@
7 7  
8 8 <% button_bar do %>
9 9 <% if @action == :join && logged_in? %>
10   - <%= button(:add, content_tag('span', __('Join')), profile.join_url, :class => 'join-community', :title => _("Join community"), :style => 'position: relative;') %>
  10 + <%= button(:add, content_tag('span', _('Join')), profile.join_url, :class => 'join-community', :title => _("Join community"), :style => 'position: relative;') %>
11 11 <% end %>
12 12 <% if @action == :add_friend && logged_in? && !user.already_request_friendship?(profile) %>
13   - <%= button(:add, content_tag('span', __('Add friend')), profile.add_url, :class => 'add-friend', :title => _("Add friend"), :style => 'position: relative;') %>
  13 + <%= button(:add, content_tag('span', _('Add friend')), profile.add_url, :class => 'add-friend', :title => _("Add friend"), :style => 'position: relative;') %>
14 14 <% end %>
15 15 <%= button :back, _('Go back'), :back %>
16 16 <%= button :home, _("Go to %s home page") % environment.name, :controller => 'home' %>
... ...
app/views/profile/enterprises.html.erb
1 1 <div class="common-profile-list-block">
2 2  
3   -<h1><%= __("%s's enterprises") % profile.name %></h1>
  3 +<h1><%= _("%s's enterprises") % profile.name %></h1>
4 4  
5 5 <ul class='profile-list'>
6 6 <% @enterprises.each do |enterprise| %>
... ... @@ -10,7 +10,7 @@
10 10  
11 11 <% button_bar do %>
12 12 <%= button :back, _('Go back'), { :controller => 'profile' } %>
13   - <%= button :add, __('Register a new enterprise'), :controller => 'enterprise_registration' if logged_in? && environment.enabled?('enterprise_registration') %>
  13 + <%= button :add, _('Register a new enterprise'), :controller => 'enterprise_registration' if logged_in? && environment.enabled?('enterprise_registration') %>
14 14 <% end %>
15 15  
16 16 </div><!-- fim class="common-profile-list-block" -->
... ...
app/views/profile/fans.html.erb
1 1 <div class="common-profile-list-block">
2 2  
3   -<h1><%= __("%s's fans") % profile.name %></h1>
  3 +<h1><%= _("%s's fans") % profile.name %></h1>
4 4  
5 5 <ul class='profile-list'>
6 6 <% @fans.each do |person| %>
... ...
app/views/profile/favorite_enterprises.html.erb
1 1 <div class="common-profile-list-block">
2 2  
3   -<h1><%= __("%s's favorite enterprises") % profile.name %></h1>
  3 +<h1><%= _("%s's favorite enterprises") % profile.name %></h1>
4 4  
5 5 <ul class='profile-list'>
6 6 <% @favorite_enterprises.each do |enterprise| %>
... ...
app/views/profile/friends.html.erb
1 1 <div class="common-profile-list-block">
2 2  
3   -<h1><%= __("%s's friends") % profile.name %></h1>
  3 +<h1><%= _("%s's friends") % profile.name %></h1>
4 4  
5 5 <% cache_timeout(profile.friends_cache_key(params), 4.hours) do %>
6 6 <ul class='profile-list'>
... ...
app/views/profile_editor/disable.html.erb
1   -<h1><%= __("Disabling '%s' enterprise") % @to_disable.name %></h1>
  1 +<h1><%= _("Disabling '%s' enterprise") % @to_disable.name %></h1>
2 2  
3 3 <p>
4 4 <%= _('Are you sure you want to disable %s?') % @to_disable.name %>
... ...
app/views/profile_editor/enable.html.erb
1   -<h1><%= __("Enabling '%s' enterprise") % @to_enable.name %></h1>
  1 +<h1><%= _("Enabling '%s' enterprise") % @to_enable.name %></h1>
2 2  
3 3 <p>
4 4 <%= _('Are you sure you want to enable %s?') % @to_enable.name %>
... ...
app/views/profile_editor/index.html.erb
... ... @@ -41,7 +41,7 @@
41 41  
42 42 <%= control_panel_button(_('Change Password'), 'change-password', :controller => 'account', :action => 'change_password') if profile.person? %>
43 43  
44   - <%= control_panel_button(__('Manage friends'), 'friends', :controller => 'friends', :action => 'index') if profile.person? %>
  44 + <%= control_panel_button(_('Manage friends'), 'friends', :controller => 'friends', :action => 'index') if profile.person? %>
45 45  
46 46 <%= control_panel_button(_('Manage Members'), 'members', :controller => 'profile_members') if profile.organization? && user.has_permission?(:manage_memberships, profile) %>
47 47  
... ... @@ -49,18 +49,18 @@
49 49  
50 50 <% if !environment.enabled?('disable_asset_enterprises') %>
51 51 <% if profile.is_validation_entity? %>
52   - <%= control_panel_button(__('Enterprise Validation'), 'validation', :controller => 'enterprise_validation') %>
  52 + <%= control_panel_button(_('Enterprise Validation'), 'validation', :controller => 'enterprise_validation') %>
53 53 <% end %>
54 54 <% if profile.person? %>
55   - <%= control_panel_button(__('Favorite Enterprises'), 'favorites', :controller => 'favorite_enterprises') %>
  55 + <%= control_panel_button(_('Favorite Enterprises'), 'favorites', :controller => 'favorite_enterprises') %>
56 56 <% end %>
57 57 <% end %>
58 58  
59 59 <% if profile.enterprise? %>
60 60 <% if profile.enabled? %>
61   - <%= control_panel_button(__('Disable'), 'disable', :action => 'disable') %>
  61 + <%= control_panel_button(_('Disable'), 'disable', :action => 'disable') %>
62 62 <% else %>
63   - <%= control_panel_button(__('Enable'), 'enable', :action => 'enable') %>
  63 + <%= control_panel_button(_('Enable'), 'enable', :action => 'enable') %>
64 64 <% end %>
65 65 <% end %>
66 66  
... ... @@ -78,10 +78,10 @@
78 78  
79 79 <div id='activation_enterprise'>
80 80 <% form_tag({:controller => 'account', :action => 'activation_question'}, {:method => 'get'}) do %>
81   - <p><strong><%= __('Activate your enterprise') %></strong></p>
82   - <p><%= __("If you received a letter with information about your enterprise activation, add here the activation code that was sent.") %></p>
  81 + <p><strong><%= _('Activate your enterprise') %></strong></p>
  82 + <p><%= _("If you received a letter with information about your enterprise activation, add here the activation code that was sent.") %></p>
83 83 <p><%= environment.help_message_to_add_enterprise %> </p>
84   - <%= labelled_form_field(__('Enterprise activation code') + ': ', text_field_tag('enterprise_code')) %>
  84 + <%= labelled_form_field(_('Enterprise activation code') + ': ', text_field_tag('enterprise_code')) %>
85 85 <%= submit_button(:ok, _('Activate')) %>
86 86 <% end %>
87 87 </div>
... ...
app/views/search/_sellers_form.html.erb
... ... @@ -4,7 +4,7 @@
4 4  
5 5 <div class="search-in-opt"><%= _('Search in:') %>
6 6 <dir>
7   - <%= labelled_radio_button __('Enterprises'), 'asset', 'enterprises', true %><br />
  7 + <%= labelled_radio_button _('Enterprises'), 'asset', 'enterprises', true %><br />
8 8 <%= labelled_radio_button _('Products'), 'asset', 'products', false %>
9 9 </dir>
10 10 </div>
... ...
app/views/search/communities.html.erb
... ... @@ -4,7 +4,7 @@
4 4 <% if logged_in? %>
5 5 <% button_bar do %>
6 6 <%# FIXME shouldn't the user create the community in the current environment instead of going to its home environment? %>
7   - <%= button(:add, __('New community'), user.url.merge(:controller => 'memberships', :action => 'new_community', :profile => user.identifier)) %>
  7 + <%= button(:add, _('New community'), user.url.merge(:controller => 'memberships', :action => 'new_community', :profile => user.identifier)) %>
8 8 <% end %>
9 9 <% end %>
10 10  
... ...
app/views/search/enterprises.html.erb
... ... @@ -3,7 +3,7 @@
3 3 <div id="search-column-left">
4 4 <% if logged_in? && environment.enabled?('enterprise_registration') %>
5 5 <% button_bar do %>
6   - <%= button(:add, __('New enterprise'), {:controller => 'enterprise_registration'}) %>
  6 + <%= button(:add, _('New enterprise'), {:controller => 'enterprise_registration'}) %>
7 7 <% end %>
8 8 <% end %>
9 9  
... ...
app/views/shared/user_menu.html.erb
... ... @@ -12,7 +12,7 @@
12 12 <ul>
13 13  
14 14 <li>
15   - <%= link_to( '<span class="icon-menu-home"></span>' + __('My Home Page'), '/{login}')%>
  15 + <%= link_to( '<span class="icon-menu-home"></span>' + _('My Home Page'), '/{login}')%>
16 16 </li>
17 17  
18 18 <li>
... ...
lib/noosfero/core_ext.rb
1 1 require 'noosfero/core_ext/string'
2 2 require 'noosfero/core_ext/integer'
3   -require 'noosfero/core_ext/object'
4 3 require 'noosfero/core_ext/active_record'
... ...
lib/noosfero/core_ext/object.rb
... ... @@ -1,10 +0,0 @@
1   -class Object
2   - def __(*args)
3   - gettext(Noosfero.term(*args))
4   - end
5   - alias :getterm :__
6   -
7   - def n__(for_one, for_many, num)
8   - ngettext(getterm(for_one), getterm(for_many), num)
9   - end
10   -end