Browse Source

i18n-ing paypal payer_statuses

Fixes #110
Fixes #111
1-2-stable-sysmocom
Joaquin Rivera Padron 9 years ago
committed by Ryan Bigg
parent
commit
ee7fcbd2e4
  1. 2
      app/overrides/spree/shared/_order_details/add_paypal_details.html.erb.deface
  2. 3
      config/locales/en.yml
  3. 5
      config/locales/es.yml

2
app/overrides/spree/shared/_order_details/add_paypal_details.html.erb.deface

@ -5,7 +5,7 @@
<% if order.payment && order.payment.source.class.to_s == 'Spree::PaypalAccount' %>
<span class="cc-type">
<%= image_tag "paypal.png" %>
<%= order.payment.source.payer_status.to_s.capitalize %>
<%= t("paypal_payer_statuses.#{order.payment.source.payer_status.to_s}").capitalize %>
</span>
<br />
<span class="full-name">

3
config/locales/en.yml

@ -19,6 +19,9 @@ en:
payer_id: Payer ID
payer_country: Country
payer_status: Status
paypal_payer_statuses:
verified: verified
unverified: unverified
comment: Comment
account_details: Account Details
finalize:

5
config/locales/es.yml

@ -0,0 +1,5 @@
---
es:
paypal_payer_statuses:
verified: verificado
unverified: no verificado
Loading…
Cancel
Save