Merge pull request #1792 from leandroalemao/missing-translations-new-product-page

Fix i18n translation keys for New Product Page
This commit is contained in:
Enrico Stano
2017-09-04 16:07:15 +02:00
committed by GitHub
4 changed files with 17 additions and 7 deletions

View File

@@ -19,14 +19,14 @@
.twelve.columns.alpha{ 'ng-controller' => 'unitsCtrl' }
.six.columns.alpha
= f.field_container :units do
= f.label :variant_unit_with_scale, :units
= f.label :variant_unit_with_scale, t(:units)
%select.select2.fullwidth{ id: 'product_variant_unit_with_scale', 'ng-model' => 'product.variant_unit_with_scale', 'ng-options' => 'unit[1] as unit[0] for unit in variant_unit_options' }
%option{'value' => '', 'ng-hide' => "hasUnit(product)"}
%input{ type: 'hidden', 'ng-value' => 'product.variant_unit', name: 'product[variant_unit]' }
%input{ type: 'hidden', 'ng-value' => 'product.variant_unit_scale', name: 'product[variant_unit_scale]' }
.three.columns
= f.field_container :unit_value do
= f.label :product_unit_value_with_description, :value, 'ng-disabled' => "!hasUnit(product)"
= f.label :product_unit_value_with_description, t(:value), 'ng-disabled' => "!hasUnit(product)"
%input.fullwidth{ id: 'product_unit_value_with_description', 'ng-model' => 'product.master.unit_value_with_description', :type => 'text', placeholder: "eg. 2", 'ng-disabled' => "!hasUnit(product)" }
%input{ type: 'hidden', 'ng-value' => 'product.master.unit_value', name: 'product[unit_value]' }
%input{ type: 'hidden', 'ng-value' => 'product.master.unit_description', name: 'product[unit_description]' }
@@ -87,7 +87,7 @@
= button t('actions.create'), 'icon-ok', :submit, value: "create"
%span.or
= t(:or)
= button "Create And Add Another", 'icon-repeat', :submit, value: 'add_another'
= button t('actions.create_and_add_another'), 'icon-repeat', :submit, value: 'add_another'
%span.or
= t(:or)
= link_to_with_icon 'icon-remove', t('actions.cancel'), bulk_edit_admin_products_path, :class => 'button'

View File

@@ -1,4 +1,4 @@
.three.columns.omega{ "ng-if" => "product.variant_unit_with_scale != 'items'" }
= f.field_container :display_as do
= f.label :product_display_as, t(:display_as)
%input#product_display_as.fullwidth{name: "product[display_as]", placeholder: "{{ placeholder_text }}", type: "text"}
= f.label :product_display_as, t('.display_as')
%input#product_display_as.fullwidth{name: "product[display_as]", placeholder: "{{ placeholder_text }}", type: "text"}

View File

@@ -1,5 +1,5 @@
= f.field_container :primary_taxon_id do
= f.label :primary_taxon_id, t(:product_category)
= f.label :primary_taxon_id, t('.product_category')
%span.required *
%br
= f.collection_select(:primary_taxon_id, Spree::Taxon.all, :id, :name, {:include_blank => true}, {:class => "select2 fullwidth"})

View File

@@ -161,7 +161,8 @@ en:
powered_by: Powered by
blocked_cookies_alert: "Your browser may be blocking cookies needed to use this shopfront. Click below to allow cookies and reload the page."
allow_cookies: "Allow Cookies"
actions:
create_and_add_another: "Create and Add Another"
admin:
# Common properties / models
date: Date
@@ -1484,6 +1485,9 @@ Please follow the instructions there to make your enterprise visible on the Open
create: "Create"
search: "Search"
supplier: "Supplier"
product_name: "Product Name"
product_description: "Product Description"
units: "Unit Size"
coordinator: "Coordinator"
distributor: "Distributor"
enterprise_fees: "Enterprise Fees"
@@ -2037,6 +2041,7 @@ Please follow the instructions there to make your enterprise visible on the Open
other: "You have %{count} active order cycles."
manage_order_cycles: "MANAGE ORDER CYCLES"
products:
unit_name_placeholder: 'eg. bunches'
bulk_edit:
header:
title: Bulk Edit Products
@@ -2044,6 +2049,11 @@ Please follow the instructions there to make your enterprise visible on the Open
title: LOADING PRODUCTS
no_products: "No products yet. Why don't you add some?"
no_results: "Sorry, no results match"
product_name: Product Name
primary_taxon_form:
product_category: Product Category
display_as:
display_as: Display As
reports:
bulk_coop:
bulk_coop_supplier_report: 'Bulk Co-op - Totals by Supplier'