From 9944f3e1e6ca5eaf0d04634dcc6cb595805c0ef0 Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Tue, 4 Jun 2019 20:48:56 +0100 Subject: [PATCH] Make translations of tooltips in subscriptions list page work again --- .../templates/admin/new_subscription_dialog.html.haml | 4 ++-- config/locales/en.yml | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/templates/admin/new_subscription_dialog.html.haml b/app/assets/javascripts/templates/admin/new_subscription_dialog.html.haml index dc96b67ac8..fa5ac82fd7 100644 --- a/app/assets/javascripts/templates/admin/new_subscription_dialog.html.haml +++ b/app/assets/javascripts/templates/admin/new_subscription_dialog.html.haml @@ -1,6 +1,6 @@ #new-subscription-dialog .text-normal.margin-bottom-30.text-center - = t('admin.subscriptions.index.please_select_a_shop') + = t('js.admin.subscriptions.new.please_select_a_shop') %form{ name: 'new_subscription_form', novalidate: true, ng: { submit: "newSubscription()" }} @@ -8,7 +8,7 @@ %input.ofn-select2.fullwidth#new_subscription_shop_id{ ng: { model: 'shop_id' }, required: true, name: 'shop_id', data: 'shops' } %div{ ng: { show: "submitted && new_subscription_form.$pristine" } } .error{ ng: { show: "new_subscription_form.shop_id.$error.required" } } - = t('admin.subscriptions.index.please_select_a_shop') + = t('js.admin.subscriptions.new.please_select_a_shop') .text-center %input.button.red.icon-plus{ type: 'submit', value: t('continue') } diff --git a/config/locales/en.yml b/config/locales/en.yml index 9d0d03ce01..ca46fb5fc5 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1007,8 +1007,7 @@ en: new: New Subscription create: Create Subscription edit: Edit Subscription - index: - please_select_a_shop: Please select a shop + table: edit_subscription: Edit Subscription pause_subscription: Pause Subscription unpause_subscription: Unpause Subscription @@ -2563,6 +2562,9 @@ See the %{link} to find out more about %{sitename}'s features and to start using add_a_new_customer_for: "Add a new customer for %{shop_name}" customer_placeholder: "customer@example.org" valid_email_error: "Please enter a valid email address" + subscriptions: + new: + please_select_a_shop: "Please select a shop" insufficient_stock: "Insufficient stock available, only %{on_hand} remaining" out_of_stock: reduced_stock_available: Reduced stock available