Commit ecb8c9872ded0397c580369aa77170c1ce4d5329

Authored by Rodrigo Souto
Committed by Antonio Terceiro
1 parent 6979130d

Marking all "enterprise" mentions for terminology

app/controllers/admin/features_controller.rb
@@ -34,9 +34,9 @@ class FeaturesController < AdminController @@ -34,9 +34,9 @@ class FeaturesController < AdminController
34 def manage_enterprise_fields 34 def manage_enterprise_fields
35 environment.custom_enterprise_fields = params[:enterprise_fields] 35 environment.custom_enterprise_fields = params[:enterprise_fields]
36 if environment.save! 36 if environment.save!
37 - flash[:notice] = _('Enterprise fields updated successfully.') 37 + flash[:notice] = __('Enterprise fields updated successfully.')
38 else 38 else
39 - flash[:error] = _('Enterprise fields not updated successfully.') 39 + flash[:error] = __('Enterprise fields not updated successfully.')
40 end 40 end
41 redirect_to :action => 'manage_fields' 41 redirect_to :action => 'manage_fields'
42 end 42 end
app/controllers/public/profile_controller.rb
@@ -132,7 +132,7 @@ class ProfileController < PublicController @@ -132,7 +132,7 @@ class ProfileController < PublicController
132 flash[:notice] = _("You have unblocked %s successfully. ") % profile.name 132 flash[:notice] = _("You have unblocked %s successfully. ") % profile.name
133 redirect_to :controller => 'profile', :action => 'index' 133 redirect_to :controller => 'profile', :action => 'index'
134 else 134 else
135 - message = _('You are not allowed to unblock enterprises in this environment.') 135 + message = __('You are not allowed to unblock enterprises in this environment.')
136 render_access_denied(message) 136 render_access_denied(message)
137 end 137 end
138 end 138 end
app/models/create_enterprise.rb
@@ -154,7 +154,7 @@ class CreateEnterprise < Task @@ -154,7 +154,7 @@ class CreateEnterprise < Task
154 end 154 end
155 155
156 def description 156 def description
157 - _('Enterprise registration: "%s"') % self.name 157 + __('Enterprise registration: "%s"') % self.name
158 end 158 end
159 159
160 def task_created_message 160 def task_created_message
@@ -164,18 +164,18 @@ class CreateEnterprise < Task @@ -164,18 +164,18 @@ class CreateEnterprise < Task
164 end 164 end
165 165
166 def task_finished_message 166 def task_finished_message
167 - _('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 } 167 + __('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 end 168 end
169 169
170 def task_cancelled_message 170 def task_cancelled_message
171 - _("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 } 171 + __("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 end 172 end
173 173
174 def target_notification_message 174 def target_notification_message
175 msg = "" 175 msg = ""
176 - 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 } 176 + 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 << "\n" 177 msg << "\n"
178 - msg << _("The data provided by the enterprise was the following:\n") << "\n" 178 + msg << __("The data provided by the enterprise was the following:\n") << "\n"
179 179
180 180
181 msg << (_("Name: %s") % self.name) << "\n" 181 msg << (_("Name: %s") % self.name) << "\n"
@@ -185,12 +185,12 @@ class CreateEnterprise &lt; Task @@ -185,12 +185,12 @@ class CreateEnterprise &lt; Task
185 msg << (_("Foundation Year: %d") % self.foundation_year) << "\n" unless self.foundation_year.blank? 185 msg << (_("Foundation Year: %d") % self.foundation_year) << "\n" unless self.foundation_year.blank?
186 msg << (_("Economic activity: %s") % self.economic_activity) << "\n" 186 msg << (_("Economic activity: %s") % self.economic_activity) << "\n"
187 187
188 - msg << _("Information about enterprise's management:\n") << self.management_information.to_s << "\n" 188 + msg << __("Information about enterprise's management:\n") << self.management_information.to_s << "\n"
189 189
190 msg << (_("Contact phone: %s") % self.contact_phone) << "\n" 190 msg << (_("Contact phone: %s") % self.contact_phone) << "\n"
191 msg << (_("Contact person: %s") % self.contact_person) << "\n" 191 msg << (_("Contact person: %s") % self.contact_person) << "\n"
192 192
193 - msg << _('CreateEnterprise|Identifier') 193 + msg << __('CreateEnterprise|Identifier')
194 194
195 msg 195 msg
196 end 196 end
app/models/disabled_enterprise_message_block.rb
1 class DisabledEnterpriseMessageBlock < Block 1 class DisabledEnterpriseMessageBlock < Block
2 2
3 def self.description 3 def self.description
4 - _('"Disabled enterprise" message') 4 + __('"Disabled enterprise" message')
5 end 5 end
6 6
7 def help 7 def help
8 - _('Shows a message for disabled enterprises.') 8 + __('Shows a message for disabled enterprises.')
9 end 9 end
10 10
11 def default_title 11 def default_title
app/models/enterprise_homepage.rb
1 class EnterpriseHomepage < Article 1 class EnterpriseHomepage < Article
2 2
3 def self.short_description 3 def self.short_description
4 - _('Enterprise homepage.') 4 + __('Enterprise homepage.')
5 end 5 end
6 6
7 def self.description 7 def self.description
app/models/environment.rb
@@ -80,7 +80,7 @@ class Environment &lt; ActiveRecord::Base @@ -80,7 +80,7 @@ class Environment &lt; ActiveRecord::Base
80 'disable_asset_communities' => __('Disable search for communities'), 80 'disable_asset_communities' => __('Disable search for communities'),
81 'disable_asset_products' => _('Disable search for products'), 81 'disable_asset_products' => _('Disable search for products'),
82 'disable_asset_events' => _('Disable search for events'), 82 'disable_asset_events' => _('Disable search for events'),
83 - 'disable_products_for_enterprises' => _('Disable products for enterprises'), 83 + 'disable_products_for_enterprises' => __('Disable products for enterprises'),
84 'disable_categories' => _('Disable categories'), 84 'disable_categories' => _('Disable categories'),
85 'disable_cms' => _('Disable CMS'), 85 'disable_cms' => _('Disable CMS'),
86 'disable_header_and_footer' => _('Disable header/footer editing by users'), 86 'disable_header_and_footer' => _('Disable header/footer editing by users'),
@@ -89,10 +89,10 @@ class Environment &lt; ActiveRecord::Base @@ -89,10 +89,10 @@ class Environment &lt; ActiveRecord::Base
89 'disable_select_city_for_contact' => _('Disable state/city select for contact form'), 89 'disable_select_city_for_contact' => _('Disable state/city select for contact form'),
90 'disable_contact_person' => _('Disable contact for people'), 90 'disable_contact_person' => _('Disable contact for people'),
91 'disable_contact_community' => _('Disable contact for groups/communities'), 91 'disable_contact_community' => _('Disable contact for groups/communities'),
92 - 'enterprise_registration' => _('Enterprise registration'), 92 + 'enterprise_registration' => __('Enterprise registration'),
93 'join_community_popup' => _('Ask users to join a group/community with a popup'), 93 'join_community_popup' => _('Ask users to join a group/community with a popup'),
94 94
95 - 'enterprise_activation' => _('Enable activation of enterprises'), 95 + 'enterprise_activation' => __('Enable activation of enterprises'),
96 'wysiwyg_editor_for_environment_home' => _('Use WYSIWYG editor to edit environment home page'), 96 'wysiwyg_editor_for_environment_home' => _('Use WYSIWYG editor to edit environment home page'),
97 'media_panel' => _('Media panel in WYSIWYG editor'), 97 'media_panel' => _('Media panel in WYSIWYG editor'),
98 'select_preferred_domain' => _('Select preferred domains per profile'), 98 'select_preferred_domain' => _('Select preferred domains per profile'),
@@ -107,7 +107,7 @@ class Environment &lt; ActiveRecord::Base @@ -107,7 +107,7 @@ class Environment &lt; ActiveRecord::Base
107 'organizations_are_moderated_by_default' => _("Organizations have moderated publication by default"), 107 'organizations_are_moderated_by_default' => _("Organizations have moderated publication by default"),
108 'enable_organization_url_change' => _("Allow organizations to change their URL"), 108 'enable_organization_url_change' => _("Allow organizations to change their URL"),
109 'admin_must_approve_new_communities' => _("Admin must approve creation of communities"), 109 'admin_must_approve_new_communities' => _("Admin must approve creation of communities"),
110 - 'enterprises_are_disabled_when_created' => _('Enterprises are disabled when created'), 110 + 'enterprises_are_disabled_when_created' => __('Enterprises are disabled when created'),
111 } 111 }
112 end 112 end
113 113
app/models/favorite_enterprises_block.rb
@@ -9,7 +9,7 @@ class FavoriteEnterprisesBlock &lt; ProfileListBlock @@ -9,7 +9,7 @@ class FavoriteEnterprisesBlock &lt; ProfileListBlock
9 end 9 end
10 10
11 def self.description 11 def self.description
12 - __('Favorite enterprises') 12 + __('Favorite Enterprises')
13 end 13 end
14 14
15 def footer 15 def footer
app/models/sellers_search_block.rb
@@ -5,7 +5,7 @@ class SellersSearchBlock &lt; Block @@ -5,7 +5,7 @@ class SellersSearchBlock &lt; Block
5 end 5 end
6 6
7 def self.short_description 7 def self.short_description
8 - _('Products/Enterprises search') 8 + __('Products/Enterprises search')
9 end 9 end
10 10
11 def default_title 11 def default_title
app/views/account/accept_terms.rhtml
@@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
11 } 11 }
12 </script> 12 </script>
13 <div class=activation-box> 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 <div id='terms-of-enterprise-use' class='height: 200px; overflow: auto;'><%= @terms_of_enterprise_use %></div> 16 <div id='terms-of-enterprise-use' class='height: 200px; overflow: auto;'><%= @terms_of_enterprise_use %></div>
17 17
app/views/account/activate_enterprise.rhtml
1 <div class='activation-box'> 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 <%= error_messages_for :user %> 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 <p><%= _('Do you have a personal user account in the system?') %></p> 7 <p><%= _('Do you have a personal user account in the system?') %></p>
8 8
9 <div id="enterprise-activation-create-user-or-login-button"> 9 <div id="enterprise-activation-create-user-or-login-button">
@@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
14 <div id="enterprise-activation-create-user-form" style="display: none"> 14 <div id="enterprise-activation-create-user-form" style="display: none">
15 <h3><%= _('Personal signup form') %></h3> 15 <h3><%= _('Personal signup form') %></h3>
16 <%= render :partial => 'signup_form', :locals => { :hidden_atention => true } %> 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 </div> 18 </div>
19 19
20 <div id="enterprise-activation-login-form" style="display: none"> 20 <div id="enterprise-activation-login-form" style="display: none">
app/views/account/activation_question.rhtml
@@ -23,14 +23,14 @@ @@ -23,14 +23,14 @@
23 </script> 23 </script>
24 24
25 <div class='activation-box'> 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 <% form_tag( {:action => 'accept_terms'}, {:method => 'get', :onsubmit => (@question == :foundation_year ? 'return check_valid_year(this)' : 'return check_valid_cnpj(this)')}) do %> 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 <p> <strong><%= _('Pay atention! You have only one chance!') %></strong> </p> 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 <%= hidden_field_tag :enterprise_code, params[:enterprise_code] %> 35 <%= hidden_field_tag :enterprise_code, params[:enterprise_code] %>
36 36
app/views/account/already_activated.rhtml
1 -<%= _('This enterprise is already active') %> 1 +<%= __('This enterprise is already active') %>
app/views/account/blocked.rhtml
1 <div class='blocked-warning' > 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 <p> 4 <p>
5 <% if @enterprise.blocked? %> 5 <% if @enterprise.blocked? %>
6 <%= _('There was a failed atempt of activation and the automated activation was disabled for your security.') %> 6 <%= _('There was a failed atempt of activation and the automated activation was disabled for your security.') %>
7 <% else %> 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 <% end %> 9 <% end %>
10 </p> 10 </p>
11 11
12 <% if @environment.activation_blocked_text.blank? %> 12 <% if @environment.activation_blocked_text.blank? %>
13 - <%= _('Your enterprise has been blocked') %> 13 + <%= __('Your enterprise has been blocked') %>
14 <% else %> 14 <% else %>
15 <%= @environment.activation_blocked_text %> 15 <%= @environment.activation_blocked_text %>
16 <% end %> 16 <% end %>
app/views/account/invalid_enterprise_code.rhtml
1 -<h1><%= _("Invalid enterprise code") %></h1> 1 +<h1><%= __("Invalid enterprise code") %></h1>
2 2
3 <p> 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 </p> 5 </p>
app/views/account/welcome.rhtml
1 <% if @enterprise && logged_in? %> 1 <% if @enterprise && logged_in? %>
2 <h1><%= _('Welcome to %s') % environment.name %></h1> 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 <% button_bar do %> 6 <% button_bar do %>
7 <%= button 'forward', _('Go to my control panel'), :action => 'index', :controller => 'profile_editor', :profile => current_user.person.identifier %> 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 <% end %> 9 <% end %>
10 <% end %> 10 <% end %>
app/views/admin_panel/edit_templates.rhtml
@@ -3,5 +3,5 @@ @@ -3,5 +3,5 @@
3 <ul> 3 <ul>
4 <li><%= link_to _('Edit Person Template'), :controller => 'profile_editor', :profile => environment.person_template.identifier %></li> 4 <li><%= link_to _('Edit Person Template'), :controller => 'profile_editor', :profile => environment.person_template.identifier %></li>
5 <li><%= link_to _('Edit Community Template'), :controller => 'profile_editor', :profile => environment.community_template.identifier %></li> 5 <li><%= link_to _('Edit Community Template'), :controller => 'profile_editor', :profile => environment.community_template.identifier %></li>
6 -<li><%= link_to _('Edit Enterprise Template'), :controller => 'profile_editor', :profile => environment.enterprise_template.identifier %></li> 6 +<li><%= link_to __('Edit Enterprise Template'), :controller => 'profile_editor', :profile => environment.enterprise_template.identifier %></li>
7 </ul> 7 </ul>
app/views/enterprise_registration/basic_information.rhtml
1 <%= error_messages_for 'create_enterprise' %> 1 <%= error_messages_for 'create_enterprise' %>
2 2
3 -<h1><%= _('Enterprise registration') %></h1> 3 +<h1><%= __('Enterprise registration') %></h1>
4 4
5 5
6 <% if @validation == :region && @regions.empty? %> 6 <% if @validation == :region && @regions.empty? %>
7 <div class='atention'> 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 </div> 9 </div>
10 10
11 <% button_bar do %> 11 <% button_bar do %>
@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
13 <% end %> 13 <% end %>
14 <% else %> 14 <% else %>
15 <div class='atention'> 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 </div> 17 </div>
18 18
19 <%= required_fields_message %> 19 <%= required_fields_message %>
app/views/enterprise_registration/confirmation.rhtml
1 -<h1><%= _('Enterprise registration completed') %></h1> 1 +<h1><%= __('Enterprise registration completed') %></h1>
2 2
3 <p> 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 </p> 5 </p>
6 6
7 <p> 7 <p>
app/views/enterprise_registration/creation.rhtml
1 -<h1><%= _('Enterprise registration completed') %></h1> 1 +<h1><%= __('Enterprise registration completed') %></h1>
2 2
3 <p> 3 <p>
4 -<%= _("Your enterprise (%s) was successfully registered.") % @enterprise.name %> 4 +<%= __("Your enterprise (%s) was successfully registered.") % @enterprise.name %>
5 </p> 5 </p>
6 6
7 <p> 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 </p> 9 </p>
app/views/enterprise_registration/select_validator.rhtml
1 -<h1><%= _('Enterprise registration: validator organization') %></h1> 1 +<h1><%= __('Enterprise registration: validator organization') %></h1>
2 2
3 <p> 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 </p> 5 </p>
6 6
7 <% form_tag do %> 7 <% form_tag do %>
app/views/enterprise_validation/details.rhtml
@@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
12 12
13 <h4><%= _('Approve') %></h4> 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 <% form_tag :action => 'approve', :id => @pending.code do %> 17 <% form_tag :action => 'approve', :id => @pending.code do %>
18 <% button_bar do %> 18 <% button_bar do %>
@@ -22,7 +22,7 @@ @@ -22,7 +22,7 @@
22 22
23 <h4><%= _('Reject') %></h4> 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 <% form_tag :action => 'reject', :id => @pending.code do %> 27 <% form_tag :action => 'reject', :id => @pending.code do %>
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'))%> 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/list_processed.rhtml
1 -<h2><%= _("Processed enterprise validations") %></h2> 1 +<h2><%= __("Processed enterprise validations") %></h2>
2 2
3 <%= link_to _("Back"), :action => 'index' %> 3 <%= link_to _("Back"), :action => 'index' %>
4 4
app/views/favorite_enterprises/add.rhtml
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 <p> 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 </p> 5 </p>
6 6
7 <% form_tag do %> 7 <% form_tag do %>
8 <%= hidden_field_tag(:confirmation, 1) %> 8 <%= hidden_field_tag(:confirmation, 1) %>
9 9
10 - <%= submit_button(:ok, _("Yes, I want to add %s as a favorite enterprise") % @favorite_enterprise.name) %> 10 + <%= submit_button(:ok, __("Yes, I want to add %s as a favorite enterprise") % @favorite_enterprise.name) %>
11 <%= button(:cancel, _("No, I don't want"), :action => 'index') %> 11 <%= button(:cancel, _("No, I don't want"), :action => 'index') %>
12 <% end %> 12 <% end %>
app/views/favorite_enterprises/index.rhtml
1 <div id="manage_favorite_enterprises"> 1 <div id="manage_favorite_enterprises">
2 2
3 -<h1><%= _("%s's favorite enteprises") % profile.name %></h1> 3 +<h1><%= __("%s's favorite enterprises") % profile.name %></h1>
4 4
5 <ul class="profile-list"> 5 <ul class="profile-list">
6 <% @favorite_enterprises.each do |enterprise| %> 6 <% @favorite_enterprises.each do |enterprise| %>
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 <% if @favorite_enterprises.empty? %> 21 <% if @favorite_enterprises.empty? %>
22 <p> 22 <p>
23 <em> 23 <em>
24 - <%= _('You have no favorite enteprises yet.') %> 24 + <%= __('You have no favorite enterprises yet.') %>
25 </em> 25 </em>
26 </p> 26 </p>
27 <% end %> 27 <% end %>
app/views/favorite_enterprises/remove.rhtml
1 <div id="remove_favorite_enterprise"> 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 <%= profile_image @favorite_enterprise, :thumb, :class => 'favorite_enterprise_picture' %> 5 <%= profile_image @favorite_enterprise, :thumb, :class => 'favorite_enterprise_picture' %>
6 6
7 <p> 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 </p> 9 </p>
10 10
11 <% form_tag do %> 11 <% form_tag do %>
12 <%= hidden_field_tag(:confirmation, 1) %> 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 <%= button(:cancel, _("No, I don't want"), :action => 'index') %> 15 <%= button(:cancel, _("No, I don't want"), :action => 'index') %>
16 <% end %> 16 <% end %>
17 17
app/views/profile/enterprises.rhtml
@@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
10 10
11 <% button_bar do %> 11 <% button_bar do %>
12 <%= button :back, _('Go back'), { :controller => 'profile' } %> 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 <% end %> 14 <% end %>
15 15
16 </div><!-- fim class="common-profile-list-block" --> 16 </div><!-- fim class="common-profile-list-block" -->
app/views/profile_editor/disable.rhtml
1 -<h1><%= _("Disabling '%s' enterprise") % @to_disable.name %></h1> 1 +<h1><%= __("Disabling '%s' enterprise") % @to_disable.name %></h1>
2 2
3 <p> 3 <p>
4 <%= _('Are you sure you want to disable %s?') % @to_disable.name %> 4 <%= _('Are you sure you want to disable %s?') % @to_disable.name %>
app/views/profile_editor/enable.rhtml
1 -<h1><%= _("Enabling '%s' enterprise") % @to_enable.name %></h1> 1 +<h1><%= __("Enabling '%s' enterprise") % @to_enable.name %></h1>
2 2
3 <p> 3 <p>
4 <%= _('Are you sure you want to enable %s?') % @to_enable.name %> 4 <%= _('Are you sure you want to enable %s?') % @to_enable.name %>
app/views/profile_editor/index.rhtml
@@ -72,7 +72,7 @@ @@ -72,7 +72,7 @@
72 <div id='activation_enterprise'> 72 <div id='activation_enterprise'>
73 <% form_tag({:controller => 'account', :action => 'activation_question'}, {:method => 'get'}) do %> 73 <% form_tag({:controller => 'account', :action => 'activation_question'}, {:method => 'get'}) do %>
74 <p><strong><%= __('Activate your enterprise') %></strong></p> 74 <p><strong><%= __('Activate your enterprise') %></strong></p>
75 - <p><%= _("If you received a letter with information about your enterprise activation, add here the activation code that was sent.") %></p> 75 + <p><%= __("If you received a letter with information about your enterprise activation, add here the activation code that was sent.") %></p>
76 <p><%= environment.help_message_to_add_enterprise %> </p> 76 <p><%= environment.help_message_to_add_enterprise %> </p>
77 <%= labelled_form_field(__('Enterprise activation code') + ': ', text_field_tag('enterprise_code')) %> 77 <%= labelled_form_field(__('Enterprise activation code') + ': ', text_field_tag('enterprise_code')) %>
78 <%= submit_button(:ok, _('Activate')) %> 78 <%= submit_button(:ok, _('Activate')) %>