From 195f1e12376f7e26b4c11b40cfdee1737840e37e Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Tue, 19 Jul 2022 14:39:43 +1000 Subject: [PATCH] Make "Select all" translatable --- app/views/admin/order_cycles/checkout_options.html.haml | 2 +- config/locales/en.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/admin/order_cycles/checkout_options.html.haml b/app/views/admin/order_cycles/checkout_options.html.haml index e8823d4148..c298bd86c2 100644 --- a/app/views/admin/order_cycles/checkout_options.html.haml +++ b/app/views/admin/order_cycles/checkout_options.html.haml @@ -27,7 +27,7 @@ %td.text-center %label = check_box_tag nil, nil, (shipping_methods - @order_cycle.shipping_methods).empty?, { "data-action": "change->select-all#toggleAll", "data-select-all-target": "all" } - = "Select all" + = t(".select_all") %td - if shipping_methods.any? - shipping_methods.each do |shipping_method| diff --git a/config/locales/en.yml b/config/locales/en.yml index bc9be69a68..0739d192c9 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1171,6 +1171,7 @@ en: payment_methods: "Payment Methods" save: "Save" save_and_back_to_list: "Save and Back to List" + select_all: "Select all" shipping_methods: "Shipping Methods" wizard_progress: edit: "1. General Settings"