diff --git a/app/views/spree/admin/payment_methods/_form.html.haml b/app/views/spree/admin/payment_methods/_form.html.haml index 8ab592fd81..371e4cd0b5 100644 --- a/app/views/spree/admin/payment_methods/_form.html.haml +++ b/app/views/spree/admin/payment_methods/_form.html.haml @@ -21,7 +21,7 @@ .alpha.three.columns = label_tag nil, t(:display) .omega.eight.columns - = select(:payment_method, :display_on, Spree::PaymentMethod::DISPLAY.collect { |display| [t(display), display == :both ? nil : display.to_s] }, {}, {class: 'select2 fullwidth'}) + = select(:payment_method, :display_on, Spree::PaymentMethod::DISPLAY.collect { |display| [t('.' + display.to_s), display == :both ? nil : display.to_s] }, {}, {class: 'select2 fullwidth'}) .row .alpha.three.columns = label_tag nil, t(:active) diff --git a/app/views/spree/admin/payment_methods/index.html.haml b/app/views/spree/admin/payment_methods/index.html.haml index 4e79bf1c9d..983d91ded5 100644 --- a/app/views/spree/admin/payment_methods/index.html.haml +++ b/app/views/spree/admin/payment_methods/index.html.haml @@ -34,7 +34,7 @@ %br/ %td= method.type %td.align-center= method.environment.to_s.titleize - %td.align-center= method.display_on.blank? ? Spree.t(:both) : Spree.t(method.display_on) + %td.align-center= method.display_on.blank? ? t('.both') : t('.' + method.display_on.to_s) %td.align-center= method.active ? Spree.t(:say_yes) : Spree.t(:say_no) %td.actions = link_to_edit method, no_text: true diff --git a/config/locales/en.yml b/config/locales/en.yml index 158e964b89..bb15d37476 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -3248,6 +3248,10 @@ See the %{link} to find out more about %{sitename}'s features and to start using back_end: "Back office only" deactivation_warning: "De-activating a shipping method can make the shipping method disappear from your list. Alternatively, you can hide a shipping method from the checkout page by setting the option 'Display' to 'back office only'." payment_methods: + index: + both: "Both" + front_end: "Checkout only" + back_end: "Back office only" new: new_payment_method: "New Payment Method" back_to_payment_methods_list: "Back To Payment Methods List" @@ -3267,6 +3271,10 @@ See the %{link} to find out more about %{sitename}'s features and to start using account_id: Account ID business_name: Business Name charges_enabled: Charges Enabled + form: + both: "Both Checkout and Back office" + front_end: "Checkout only" + back_end: "Back office only" payments: source_forms: stripe: