mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Bring some spree translations to ofn in payment methods pages
This commit is contained in:
@@ -5,40 +5,40 @@
|
||||
= t '.deactivation_warning'
|
||||
.row
|
||||
.alpha.three.columns
|
||||
= label_tag nil, t(:name)
|
||||
= label_tag nil, t('.name')
|
||||
.omega.eight.columns
|
||||
= text_field :payment_method, :name, class: 'fullwidth'
|
||||
.row
|
||||
.alpha.three.columns
|
||||
= label_tag nil, t(:description)
|
||||
= label_tag nil, t('.description')
|
||||
.omega.eight.columns
|
||||
= text_area :payment_method, :description, {cols: 60, rows: 6, class: 'fullwidth'}
|
||||
- if spree_current_user.admin?
|
||||
.row
|
||||
.alpha.three.columns
|
||||
= label_tag nil, t(:environment)
|
||||
= label_tag nil, t('.environment')
|
||||
.omega.eight.columns
|
||||
= collection_select(:payment_method, :environment, Rails.configuration.database_configuration.keys.sort, :to_s, :titleize, {}, {id: 'gtwy-env', class: 'select2 fullwidth'})
|
||||
.row
|
||||
.alpha.three.columns
|
||||
= label_tag nil, t(:display)
|
||||
= label_tag nil, t('.display')
|
||||
.omega.eight.columns
|
||||
= 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)
|
||||
= label_tag nil, t('.active')
|
||||
.two.columns
|
||||
= radio_button :payment_method, :active, true
|
||||
|
||||
= label_tag nil, t(:say_yes)
|
||||
= label_tag nil, t('.active_yes')
|
||||
.omega.six.columns
|
||||
= radio_button :payment_method, :active, false
|
||||
|
||||
= label_tag nil, t(:say_no)
|
||||
= label_tag nil, t('.active_no')
|
||||
|
||||
.row
|
||||
.alpha.three.columns
|
||||
= label(:payment_method, :tags, t(:tags))
|
||||
= label(:payment_method, :tags, t('.tags'))
|
||||
.omega.eight.columns
|
||||
= hidden_field(:payment_method, :tag_list, "ng-value" => "paymentMethod.tag_list")
|
||||
%tags-with-translation#something{ object: "paymentMethod" }
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#provider-settings{ ng: { controller: "ProvidersCtrl" } }
|
||||
.row
|
||||
.alpha.three.columns
|
||||
= label :payment_method, :type, t(:provider)
|
||||
= label :payment_method, :type, t('.provider')
|
||||
.omega.eight.columns
|
||||
= collection_select(:payment_method, :type, @providers, :to_s, :clean_name, (!@object.persisted? ? { :selected => "Spree::PaymentMethod::Check"} : {}), { class: 'select2 fullwidth', 'provider-prefs-for' => "#{@object.id}"})
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
= @payment_method.name
|
||||
- content_for :page_actions do
|
||||
%li
|
||||
= button_link_to t(:new), spree.new_admin_payment_method_path, icon: 'icon-plus'
|
||||
= button_link_to t('.new'), spree.new_admin_payment_method_path, icon: 'icon-plus'
|
||||
%li
|
||||
= button_link_to t('.back_to_payment_methods_list'), spree.admin_payment_methods_path, icon: 'icon-arrow-left'
|
||||
= render partial: 'spree/shared/error_messages', locals: { target: @payment_method }
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
- content_for :page_title do
|
||||
= Spree.t(:payment_methods)
|
||||
= t('.payment_methods')
|
||||
|
||||
- content_for :page_actions do
|
||||
%li
|
||||
= button_link_to Spree.t(:new_payment_method), new_object_url, icon: 'icon-plus', id: 'admin_new_payment_methods_link'
|
||||
= button_link_to t('.new_payment_method'), new_object_url, icon: 'icon-plus', id: 'admin_new_payment_methods_link'
|
||||
|
||||
- if @payment_methods.any?
|
||||
%table#listing_payment_methods.index
|
||||
@@ -17,12 +17,12 @@
|
||||
%col{style: "width: 11%"}
|
||||
%thead
|
||||
%tr
|
||||
%th= Spree.t(:name)
|
||||
%th= t(:products_distributor)
|
||||
%th= Spree.t(:provider)
|
||||
%th= Spree.t(:environment)
|
||||
%th= Spree.t(:display)
|
||||
%th= Spree.t(:active)
|
||||
%th= t('.name')
|
||||
%th= t('.products_distributor')
|
||||
%th= t('.provider')
|
||||
%th= t('.environment')
|
||||
%th= t('.display')
|
||||
%th= t('.active')
|
||||
%th.actions
|
||||
%tbody
|
||||
- @payment_methods.each do |method|
|
||||
@@ -35,9 +35,9 @@
|
||||
%td= method.type
|
||||
%td.align-center= method.environment.to_s.titleize
|
||||
%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.align-center= method.active ? t('.active_yes') : t('.active_no')
|
||||
%td.actions
|
||||
= link_to_edit method, no_text: true
|
||||
= link_to_delete method, no_text: true
|
||||
- else
|
||||
.alpha.twelve.columns.no-objects-found= Spree.t(:no_payment_methods_found)
|
||||
.alpha.twelve.columns.no-objects-found= t('.no_payment_methods_found')
|
||||
|
||||
@@ -3249,13 +3249,25 @@ See the %{link} to find out more about %{sitename}'s features and to start using
|
||||
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:
|
||||
payment_methods: "Payment Methods"
|
||||
new_payment_method: "New Payment Method"
|
||||
name: "Name"
|
||||
products_distributor: "Distributor"
|
||||
provider: "Provider"
|
||||
environment: "Environment"
|
||||
display: "Display"
|
||||
active: "Active"
|
||||
both: "Both"
|
||||
front_end: "Checkout only"
|
||||
back_end: "Back office only"
|
||||
active_yes: "Yes"
|
||||
active_no: "No"
|
||||
no_payment_methods_found: "No payment methods found"
|
||||
new:
|
||||
new_payment_method: "New Payment Method"
|
||||
back_to_payment_methods_list: "Back To Payment Methods List"
|
||||
edit:
|
||||
new: "New"
|
||||
editing_payment_method: "Editing Payment Method"
|
||||
back_to_payment_methods_list: "Back To Payment Methods List"
|
||||
stripe_connect:
|
||||
@@ -3272,10 +3284,20 @@ See the %{link} to find out more about %{sitename}'s features and to start using
|
||||
business_name: Business Name
|
||||
charges_enabled: Charges Enabled
|
||||
form:
|
||||
name: "Name"
|
||||
description: "Description"
|
||||
environment: "Environment"
|
||||
display: "Display"
|
||||
active: "Active"
|
||||
active_yes: "Yes"
|
||||
active_no: "No"
|
||||
both: "Both Checkout and Back office"
|
||||
front_end: "Checkout only"
|
||||
back_end: "Back office only"
|
||||
tags: "Tags"
|
||||
deactivation_warning: "De-activating a payment method can make the payment method disappear from your list. Alternatively, you can hide a payment method from the checkout page by setting the option 'Display' to 'back office only'."
|
||||
providers:
|
||||
provider: "Provider"
|
||||
payments:
|
||||
source_forms:
|
||||
stripe:
|
||||
|
||||
Reference in New Issue
Block a user