Skip to content

Commit

Permalink
added translatable string
Browse files Browse the repository at this point in the history
  • Loading branch information
Makreig committed Nov 24, 2020
1 parent 73a433a commit 0883e1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Extensions/AddToCartFormExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function updateAddToCartForm()
'Quantity',
LiteralField::create(
'StockLevel',
'<p><small>'.$product->StockLevel.' items in stock.</small></p>'
'<p><small>'._t('SilverCommerce\Stock.INSTOCK', '{count} items in stock.', [ 'count' => $product->StockLevel ]).'</small></p>'
)
);
} else {
Expand All @@ -31,7 +31,7 @@ public function updateAddToCartForm()
$fields->push(
LiteralField::create(
'OutOfStock',
'<div class="alert alert-info"><p>Sorry, this item is out of stock</p></div>'
'<div class="alert alert-info"><p>'._t('SilverCommerce\Stock.OUTOFSTOCK', 'Sorry, this item is out of stock').'</p></div>'
)
);
}
Expand Down

0 comments on commit 0883e1f

Please sign in to comment.