mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-01 21:47:16 +00:00
Move payment_method display field translations to OFN and adapt them to changes on same field in shipping method
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user