Commit ee7ff773023a8054c195aea5d87b25042729e1b3

Authored by Rodrigo Souto
1 parent 7c772534

Fixing terms

app/models/approve_comment.rb
... ... @@ -42,9 +42,9 @@ class ApproveComment < Task
42 42 def information
43 43 if article
44 44 if requestor
45   - {:message => _('%{requestor} commented on the the article: %{linked_subject}.')}
  45 + {:message => _('%{requestor} commented on the article: %{linked_subject}.')}
46 46 else
47   - { :message => _('%{requestor} commented on the the article: %{linked_subject}.'),
  47 + { :message => _('%{requestor} commented on the article: %{linked_subject}.'),
48 48 :variables => {:requestor => requestor_name} }
49 49 end
50 50 else
... ...
plugins/shopping_cart/views/shopping_cart_plugin/buy.html.erb
... ... @@ -7,7 +7,7 @@
7 7 <%= labelled_form_field('* ' + _("Email"), f.text_field(:email, :class => 'required email') ) %>
8 8 <%= labelled_form_field('* ' + _("Contact phone"), f.text_field(:contact_phone, :class => 'required') ) %>
9 9 <%= labelled_form_field(_('Delivery option'), select_tag(:delivery_option, options_for_select(select_delivery_options(@settings.delivery_options, environment)), 'data-profile-identifier' => @enterprise.identifier)) unless !@settings.delivery || (@settings.free_delivery_price && get_total(@cart[:items]) >= @settings.free_delivery_price) %>
10   - <%= labelled_form_field(_('Payment'), select_tag('customer[payment]', options_for_select([[_("Money"), :money],[_('Check'), :check]]))) %>
  10 + <%= labelled_form_field(_('Payment'), select_tag('customer[payment]', options_for_select([[_("Money"), :money],[_('shopping_cart|Check'), :check]]))) %>
11 11 <%= labelled_form_field(s_('shopping_cart|Change'), text_field_tag('customer[change]')) %>
12 12 </div>
13 13 <% if @settings.delivery %>
... ...
plugins/shopping_cart/views/shopping_cart_plugin/mailer/customer_notification.html.erb
... ... @@ -17,9 +17,9 @@
17 17 <li><b><%= _('Full name') %>: </b><%= @customer[:name] %></li>
18 18 <li><b><%= _('Email') %>: </b><%= @customer[:email] %></li>
19 19 <li><b><%= _('Phone number') %>: </b><%= @customer[:contact_phone] %></li>
20   - <li><b><%= _('Payment') %>: </b><%= @customer[:payment] == 'money' ? _('Money') : _('Check') %></li>
  20 + <li><b><%= _('Payment') %>: </b><%= @customer[:payment] == 'money' ? _('Money') : _('shopping_cart|Check') %></li>
21 21 <% if @customer[:payment] == 'money' %>
22   - <li><b><%= _('Change') %>: </b><%= @customer[:change] %></li>
  22 + <li><b><%= _('shopping_cart|Change') %>: </b><%= @customer[:change] %></li>
23 23 <% end %>
24 24 <% if !@customer[:address].blank? || !@customer[:city].blank? || !@customer[:zip_code].blank? || !@customer[:district].blank? || !@customer[:address_reference].blank? %>
25 25 <li><b><%= _('Address') %>:</b>
... ...
plugins/shopping_cart/views/shopping_cart_plugin/mailer/supplier_notification.html.erb
... ... @@ -15,9 +15,9 @@
15 15 <li><b><%= _('Full name') %>: </b><%= @customer[:name] %></li>
16 16 <li><b><%= _('Email') %>: </b><%= @customer[:email] %></li>
17 17 <li><b><%= _('Phone number') %>: </b><%= @customer[:contact_phone] %></li>
18   - <li><b><%= _('Payment') %>: </b><%= @customer[:payment] == 'money' ? _('Money') : _('Check') %></li>
  18 + <li><b><%= _('Payment') %>: </b><%= @customer[:payment] == 'money' ? _('Money') : _('shopping_cart|Check') %></li>
19 19 <% if @customer[:payment] == 'money' %>
20   - <li><b><%= _('Change') %>: </b><%= @customer[:change] %></li>
  20 + <li><b><%= _('shopping_cart|Change') %>: </b><%= @customer[:change] %></li>
21 21 <% end %>
22 22 <% if !@customer[:address].blank? || !@customer[:city].blank? || !@customer[:zip_code].blank? || !@customer[:district].blank? || !@customer[:address_reference].blank? %>
23 23 <li><b><%= _('Address') %>:</b>
... ...
plugins/shopping_cart/views/shopping_cart_plugin_myprofile/_orders_list.html.erb
... ... @@ -32,7 +32,7 @@
32 32 <td class="order-info" colspan="5">
33 33 <div style="display:none">
34 34 <ul class="customer-details">
35   - <% [['name', _('Name')], ['email', _('E-mail')], ['contact_phone', _('Contact phone')], ['address', _('Address')], ['district', _('District')], ['city', _('City')], ['zip_code', _('Zip code')], ['delivery_option', _('Delivery option')], ['payment', _('Payment')], ['change', _('Change')]].each do |field| %>
  35 + <% [['name', _('Name')], ['email', _('E-mail')], ['contact_phone', _('Contact phone')], ['address', _('Address')], ['district', _('District')], ['city', _('City')], ['zip_code', _('Zip code')], ['delivery_option', _('Delivery option')], ['payment', _('Payment')], ['change', _('shopping_cart|Change')]].each do |field| %>
36 36 <% attribute = field.first %>
37 37 <% name = field.last %>
38 38 <%= content_tag('li', content_tag('strong', name+': ') + order.send('customer_'+attribute)) if !order.send('customer_'+attribute).blank? %>
... ...