Skip to content

Commit

Permalink
Merge pull request #457 from bummzack/issues/missing-address-translat…
Browse files Browse the repository at this point in the history
…ions

Merged #457
  • Loading branch information
bummzack committed Mar 17, 2016
2 parents 838194d + 466c8a5 commit 65b3e92
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
7 changes: 4 additions & 3 deletions code/product/Product.php
Expand Up @@ -144,15 +144,16 @@ public function getCMSFields()
);
//physical measurements
$fieldSubstitutes = array(
'LengthUnit' => self::config()->length_unit,
'WeightUnit' => self::config()->weight_unit,
'LengthUnit' => self::config()->length_unit
);
$fields->addFieldsToTab(
'Root.Shipping',
array(
TextField::create(
'Weight',
_t('Product.WeightWithUnit', 'Weight ({WeightUnit})', '', $fieldSubstitutes),
_t('Product.WeightWithUnit', 'Weight ({WeightUnit})', '', array(
'WeightUnit' => self::config()->weight_unit
)),
'',
12
),
Expand Down
7 changes: 4 additions & 3 deletions code/product/variations/ProductVariation.php
Expand Up @@ -127,15 +127,16 @@ public function getCMSFields()

//physical measurement units
$fieldSubstitutes = array(
'LengthUnit' => Product::config()->length_unit,
'WeightUnit' => Product::config()->weight_unit,
'LengthUnit' => Product::config()->length_unit
);

//physical measurements
$fields->push(
TextField::create(
'Weight',
_t('Product.WeightWithUnit', 'Weight ({WeightUnit})', '', $fieldSubstitutes),
_t('Product.WeightWithUnit', 'Weight ({WeightUnit})', '', array(
'WeightUnit' => Product::config()->weight_unit
)),
'',
12
)
Expand Down
7 changes: 7 additions & 0 deletions lang/en.yml
Expand Up @@ -31,6 +31,13 @@ en:
CreateNewTitle: 'Create new address'
NoAddress: 'No addresses found.'
Title: 'Default addresses'
DefaultShippingAddress: 'Default Shipping Address'
DefaultBillingAddress: 'Default Billing Address'
MakeDefaultShipping: 'Make Default Shipping'
MakeDefaultShippingTitle: 'Make this my default shipping address'
MakeDefaultBilling: 'Make Default Billing'
MakeDefaultBillingTitle: 'Make this my default billing address'
DeleteAddress: 'Delete this address'
AccountPage_EditProfile:
Title: 'Edit Profile'
Address:
Expand Down

0 comments on commit 65b3e92

Please sign in to comment.