Permalink
Browse files

Port to Spree 2.0 translations

  • Loading branch information...
1 parent 059c2d5 commit c99f9f9832cef23f0ecfbeb31c8c99ff350fc788 @rterbush rterbush committed May 9, 2013
View
18 app/views/spree/admin/captcha_settings/edit.html.erb 100644 → 100755
@@ -1,7 +1,7 @@
<%= render :partial => 'spree/admin/shared/configuration_menu' %>
<% content_for :page_title do %>
- <%= t('captcha.captcha_settings') %>
+ <%= Spree.t('captcha.captcha_settings') %>
<% end %>
<%= form_tag(admin_captcha_settings_path, :method => :put) do |f| -%>
@@ -10,37 +10,37 @@
<div data-hook="admin_captcha_settings" class="row">
<div class="field choices">
- <label><%= t('captcha.use_captcha') %></label><br>
+ <label><%= Spree.t('captcha.use_captcha') %></label><br>
<%= label_tag do %>
<%= radio_button_tag 'preferences[use_captcha]', true, Spree::Captcha::Config[:use_captcha] %>
- <%= t(:yes) %>
+ <%= Spree.t(:yes) %>
<% end %>
<%= label_tag do %>
<%= radio_button_tag 'preferences[use_captcha]', false, !Spree::Captcha::Config[:use_captcha] %>
- <%= t(:no) %>
+ <%= Spree.t(:no) %>
<% end %>
</div>
<div data-hook="public_key" class="field">
- <label><%= t('captcha.public_key') %></label><br>
+ <label><%= Spree.t('captcha.public_key') %></label><br>
<%= text_field_tag('preferences[public_key]', Spree::Captcha::Config[:public_key], :size => 40) %>
</div>
<div data-hook="private_key" class="field">
- <label><%= t('captcha.private_key') %></label><br>
+ <label><%= Spree.t('captcha.private_key') %></label><br>
<%= text_field_tag('preferences[private_key]', Spree::Captcha::Config[:private_key], :size => 40) %>
</div>
<div data-hook="private_key" class="field">
- <label><%= t('captcha.theme') %>:</label><br>
- <%= select_tag('preferences[theme]', options_for_select(Spree::CaptchaConfiguration::THEMES, Spree::Captcha::Config[:theme]), class: "select2") %>
+ <label><%= Spree.t('captcha.theme') %>:</label><br>
+ <%= select_tag('preferences[theme]', options_for_selecSpree.t(Spree::CaptchaConfiguration::THEMES, Spree::Captcha::Config[:theme]), class: "select2") %>
</div>
</div>
<div class="form-buttons filter-actions actions" data-hook="buttons">
- <%= button t(:update), 'icon-refresh' %>
+ <%= button Spree.t(:update), 'icon-refresh' %>
</div>
</fieldset>
View
14 app/views/spree/email_sender/send_mail.html.erb 100644 → 100755
@@ -1,31 +1,31 @@
-<h1><%= t('email_to_friend.tell_about', :product => @object.name) %></h1>
+<h1><%= Spree.t('email_to_friend.tell_about', :product => @object.name) %></h1>
<%= form_for(@mail_to_friend, :url => email_to_friend_path(params[:type], @object)) do |f| -%>
<%= render 'spree/shared/error_messages', :target => @mail_to_friend %>
<p>
- <%= f.label(:sender_name, t('email_to_friend.sender_name')) %><br/>
+ <%= f.label(:sender_name, Spree.t('email_to_friend.sender_name')) %><br/>
<%= f.text_field(:sender_name) %>
</p>
<p>
- <%= f.label(:sender_email, t('email_to_friend.sender_email')) %><br/>
+ <%= f.label(:sender_email, Spree.t('email_to_friend.sender_email')) %><br/>
<%= f.text_field(:sender_email) %>
</p>
<p>
- <%= f.label(:recipient_name, t('email_to_friend.recipient_name')) %><br/>
+ <%= f.label(:recipient_name, Spree.t('email_to_friend.recipient_name')) %><br/>
<%= f.text_field(:recipient_name) %>
</p>
<p>
- <%= f.label(:recipient_email, t('email_to_friend.recipient_email')) %><br/>
+ <%= f.label(:recipient_email, Spree.t('email_to_friend.recipient_email')) %><br/>
<%= f.text_field(:recipient_email) %>
</p>
<p>
- <%= f.label(:message, t('email_to_friend.message')) %><br/>
+ <%= f.label(:message, Spree.t('email_to_friend.message')) %><br/>
<%= f.text_area(:message) %>
</p>
<% if Spree::Captcha::Config[:use_captcha] %>
<%= recaptcha_tags :public_key => Spree::Captcha::Config[:public_key], :display => {:theme => Spree::Captcha::Config[:theme]} %>
<% end %>
<p>
- <%= f.submit t('email_to_friend.send_message') %>
+ <%= f.submit Spree.t('email_to_friend.send_message') %>
</p>
<% end -%>

0 comments on commit c99f9f9

Please sign in to comment.