Lazy load translations and add keys

This commit is contained in:
Hugo Daniel
2018-11-29 15:15:56 +01:00
parent aa948552e1
commit 24dab58de7
3 changed files with 10 additions and 4 deletions

View File

@@ -1,12 +1,12 @@
- content_for :page_title do
= t(:editing_payment_method)
= t('.editing_payment_method')
%i.icon-arrow-right
= @payment_method.name
- content_for :page_actions do
%li
= 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'
= 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 }
= form_for @payment_method, url: admin_payment_method_path(@payment_method) do |f|
%fieldset.no-border-top

View File

@@ -1,8 +1,8 @@
- content_for :page_title do
= t(:new_payment_method)
= t('.new_payment_method')
- content_for :page_actions do
%li
= button_link_to t(:back_to_payment_methods_list), admin_payment_methods_path, icon: 'icon-arrow-left'
= button_link_to t('.back_to_payment_methods_list'), admin_payment_methods_path, icon: 'icon-arrow-left'
= render partial: 'spree/shared/error_messages', locals: { target: @payment_method }
= form_for @payment_method, url: collection_url do |f|
%fieldset.no-border-top

View File

@@ -2696,6 +2696,12 @@ See the %{link} to find out more about %{sitename}'s features and to start using
other: "You have %{count} active order cycles."
manage_order_cycles: "MANAGE ORDER CYCLES"
payment_methods:
new:
new_payment_method: "New Payment Method"
back_to_payment_methods_list: "Back To Payment Methods List"
edit:
editing_payment_method: "Editing Payment Method"
back_to_payment_methods_list: "Back To Payment Methods List"
stripe_connect:
enterprise_select_placeholder: Choose...
loading_account_information_msg: Loading account information from stripe, please wait...