diff --git a/app/overrides/spree/shared/_order_details/add_paypal_details.html.erb.deface b/app/overrides/spree/shared/_order_details/add_paypal_details.html.erb.deface index 0261682..1637326 100644 --- a/app/overrides/spree/shared/_order_details/add_paypal_details.html.erb.deface +++ b/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' %> <%= image_tag "paypal.png" %> - <%= order.payment.source.payer_status.to_s.capitalize %> + <%= t("paypal_payer_statuses.#{order.payment.source.payer_status.to_s}").capitalize %>
diff --git a/config/locales/en.yml b/config/locales/en.yml index 930bc70..423c8df 100644 --- a/config/locales/en.yml +++ b/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: diff --git a/config/locales/es.yml b/config/locales/es.yml new file mode 100644 index 0000000..6f58dad --- /dev/null +++ b/config/locales/es.yml @@ -0,0 +1,5 @@ +--- +es: + paypal_payer_statuses: + verified: verificado + unverified: no verificado