forked from coreshop/CoreShop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request coreshop#2691 from dpfaffenbauer/issues/1047
[InventoryBundle] add translations for stock label #2
- Loading branch information
Showing
3 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
src/CoreShop/Bundle/InventoryBundle/Resources/translations/messages.de.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
coreshop: | ||
inventory: | ||
stock: | ||
on_hand: 'Verfügbare Lagerbestände: %on_hand%' | ||
on_hold: 'Reservierte Lagerbestände: %on_hold%' | ||
not_tracked: 'Lagerbestände nicht verfolgt' |
6 changes: 6 additions & 0 deletions
6
src/CoreShop/Bundle/InventoryBundle/Resources/translations/messages.en.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
coreshop: | ||
inventory: | ||
stock: | ||
on_hand: 'Available Stock on Hand: %on_hand%' | ||
on_hold: 'Reserved Stock: %on_hold%' | ||
not_tracked: 'Stock not tracked' |
4 changes: 2 additions & 2 deletions
4
src/CoreShop/Bundle/InventoryBundle/Resources/views/pimcore/stock_text.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{% if stockable.isTracked %} | ||
<div class="alert alert-success"> | ||
<strong>Available on Hand: {{ stockable.onHand ?: 0 }}</strong> / Reserved: {{ stockable.onHold ?: 0 }} | ||
<strong>{{ 'coreshop.inventory.stock.on_hand'|trans({'%on_hand%': stockable.onHand ?: 0}) }}</strong> / {{ 'coreshop.inventory.stock.on_hold'|trans({'%on_hold%': stockable.onHold ?: 0}) }} | ||
</div> | ||
{% else %} | ||
<div class="alert alert-warning"> | ||
Stock Tracking is disabled | ||
{{ 'coreshop.inventory.stock.not_tracked'|trans }} | ||
</div> | ||
{% endif %} |