Skip to content

Commit

Permalink
Merge pull request coreshop#2691 from dpfaffenbauer/issues/1047
Browse files Browse the repository at this point in the history
[InventoryBundle] add translations for stock label #2
  • Loading branch information
dpfaffenbauer authored Aug 22, 2024
2 parents 317bb8f + a7896ee commit b5798e8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
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'
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'
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 %}

0 comments on commit b5798e8

Please sign in to comment.