From 76e32b126fd3435716811c8c6f1bb6e8731a67a1 Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Wed, 2 Oct 2019 12:37:44 +0100 Subject: [PATCH] Add a few more missing translation keys for product images and variants display as and display name --- .../spree/admin/variants/_form.html.haml | 4 +-- config/locales/en.yml | 25 ++++++++++++------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/app/views/spree/admin/variants/_form.html.haml b/app/views/spree/admin/variants/_form.html.haml index 176b2f4326..6da99b7ffc 100644 --- a/app/views/spree/admin/variants/_form.html.haml +++ b/app/views/spree/admin/variants/_form.html.haml @@ -1,9 +1,9 @@ .label-block.left.six.columns.alpha{'ng-app' => 'admin.products'} .field - = f.label :display_name, t(:display_name) + = f.label :display_name, t('.display_name') = f.text_field :display_name, class: "fullwidth" .field - = f.label :display_as, t(:display_as) + = f.label :display_as, t('.display_as') = f.text_field :display_as, class: "fullwidth" - if product_has_variant_unit_option_type?(@product) diff --git a/config/locales/en.yml b/config/locales/en.yml index 21d28a0a1e..06fdbbf9b9 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -475,14 +475,14 @@ en: import_date: Imported upload_an_image: Upload an image seo: - product_search_keywords: Product Search Keywords - product_search_tip: Type words to help search your products in the shops. Use space to separate each keyword. - SEO_keywords: SEO Keywords - seo_tip: Type words to help search your products in the web. Use space to separate each keyword. - search: Search + product_search_keywords: "Product Search Keywords" + product_search_tip: "Type words to help search your products in the shops. Use space to separate each keyword." + SEO_keywords: "SEO Keywords" + seo_tip: "Type words to help search your products in the web. Use space to separate each keyword." + search: "Search" properties: - property_name: Property Name - inherited_property: Inherited Property + property_name: "Property Name" + inherited_property: "Inherited Property" variants: infinity: "Infinity" to_order_tip: "Items made to order do not have a set stock level, such as loaves of bread made fresh to order." @@ -2938,6 +2938,13 @@ See the %{link} to find out more about %{sitename}'s features and to start using normal_amount: "Normal Amount" discount_amount: "Discount Amount" + no_images_found: "No Images Found" + new_image: "New Image" + filename: "Filename" + alt_text: "Alternative Text" + thumbnail: "Thumbnail" + back_to_images_list: "Back To Images List" + # TODO: remove `email` key once we get to Spree 2.0 email: Email # TODO: remove 'account_updated' key once we get to Spree 2.0 @@ -2951,8 +2958,6 @@ See the %{link} to find out more about %{sitename}'s features and to start using zipcode: Postcode weight: Weight (per kg) error_user_destroy_with_orders: "Users with completed orders may not be deleted" - no_images_found: "No Images Found" - new_image: "New Image" options: "Options" actions: @@ -3193,6 +3198,8 @@ See the %{link} to find out more about %{sitename}'s features and to start using cost_price: "Cost Price" sku: "SKU" price: "Price" + display_as: "Display As" + display_name: "Display Name" autocomplete: producer_name: "Producer" unit: "Unit"