Add missing translations for variants edit page

This commit is contained in:
luisramos0
2019-10-02 11:53:39 +01:00
committed by Maikel Linke
parent acbd4b076d
commit 5fb9ebc594
2 changed files with 8 additions and 4 deletions

View File

@@ -29,13 +29,13 @@
- if opt = @variant.option_values.detect {|o| o.option_type == option_type }.try(:presentation)
= text_field(:new_variant, option_type.presentation, value: opt, disabled: 'disabled', class: 'fullwidth')
.field
= f.label :sku, t(:sku)
= f.label :sku, t('.sku')
= f.text_field :sku, class: 'fullwidth'
.field
= f.label :price, t(:price)
= f.label :price, t('.price')
= f.text_field :price, value: number_to_currency(@variant.price, unit: ''), class: 'fullwidth'
.field
= f.label :cost_price, t(:cost_price)
= f.label :cost_price, t('.cost_price')
= f.text_field :cost_price, value: number_to_currency(@variant.cost_price, unit: ''), class: 'fullwidth'
%div{ 'set-on-demand' => '' }
@@ -53,7 +53,7 @@
.right.six.columns.omega.label-block
- if @product.variant_unit != 'weight'
.field
= f.label 'weight', t('weight')+' (kg)'
= f.label 'weight', t(:weight)+' (kg)'
- value = number_with_precision(@variant.weight, precision: 2)
= f.text_field 'weight', value: value, class: 'fullwidth'

View File

@@ -3175,6 +3175,10 @@ See the %{link} to find out more about %{sitename}'s features and to start using
email_confirmation:
confirmation_pending: "Email confirmation is pending. We've sent a confirmation email to %{address}."
variants:
form:
cost_price: "Cost Price"
sku: "SKU"
price: "Price"
autocomplete:
producer_name: "Producer"
unit: "Unit"