Skip to content

Commit

Permalink
[Pdf] set translation credit memo locale
Browse files Browse the repository at this point in the history
  • Loading branch information
SirDomin committed Jan 28, 2021
1 parent 9b57d66 commit e3e19b7
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions src/Resources/views/Download/creditMemo.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<img src="https://demo.sylius.com/assets/shop/img/logo.png" style="width:300px;">
</td>
<td>
{{ 'sylius_refund.ui.issued_at'|trans }}: {{ creditMemo.issuedAt|date('Y-m-d H:i:s') }}<br>
{{ 'sylius_refund.ui.issued_at'|trans([], 'messages', creditMemo.localeCode) }}: {{ creditMemo.issuedAt|date('Y-m-d H:i:s') }}<br>
</td>
</tr>
</table>
Expand All @@ -45,7 +45,7 @@
<table>
<tr>
<td>
{{ 'sylius_refund.ui.buyer'|trans }}<br/>
{{ 'sylius_refund.ui.buyer'|trans([], 'messages', creditMemo.localeCode) }}<br/>
<strong>{{ from.fullName }} </strong><br/>
{% if from.company %}{{ from.company }}<br/>{% endif %}
{{ from.street }}<br/>
Expand All @@ -55,7 +55,7 @@
</td>
<td>
{% if to != null %}
{{ 'sylius_refund.ui.seller'|trans }}<br/>
{{ 'sylius_refund.ui.seller'|trans([], 'messages', creditMemo.localeCode) }}<br/>
{% if to.company %}<strong>{{ to.company }}</strong><br/>{% endif %}
{% if to.street %}{{ to.street }}<br/>{% endif %}
{% if to.city %}{{ to.city }}<br/>{% endif %}
Expand All @@ -72,19 +72,19 @@
{% endif %}

<tr class="number">
<td colspan="9">{{ 'sylius_refund.ui.credit_memo'|trans }} #{{ creditMemo.number }}</td>
<td colspan="9">{{ 'sylius_refund.ui.credit_memo'|trans([], 'messages', creditMemo.localeCode) }} #{{ creditMemo.number }}</td>
</tr>

<tr class="heading">
<td>{{ 'sylius_refund.ui.no'|trans }}</td>
<td>{{ 'sylius.ui.name'|trans }}</td>
<td>{{ 'sylius.ui.quantity'|trans }}</td>
<td>{{ 'sylius_refund.ui.unit_net_price'|trans }}</td>
<td>{{ 'sylius_refund.ui.net_value'|trans }}</td>
<td>{{ 'sylius_refund.ui.tax_rate'|trans }}</td>
<td>{{ 'sylius_refund.ui.tax_amount'|trans }}</td>
<td>{{ 'sylius_refund.ui.gross_value'|trans }}</td>
<td>{{ 'sylius.ui.currency'|trans }}</td>
<td>{{ 'sylius_refund.ui.no'|trans([], 'messages', creditMemo.localeCode) }}</td>
<td>{{ 'sylius.ui.name'|trans([], 'messages', creditMemo.localeCode) }}</td>
<td>{{ 'sylius.ui.quantity'|trans([], 'messages', creditMemo.localeCode) }}</td>
<td>{{ 'sylius_refund.ui.unit_net_price'|trans([], 'messages', creditMemo.localeCode) }}</td>
<td>{{ 'sylius_refund.ui.net_value'|trans([], 'messages', creditMemo.localeCode) }}</td>
<td>{{ 'sylius_refund.ui.tax_rate'|trans([], 'messages', creditMemo.localeCode) }}</td>
<td>{{ 'sylius_refund.ui.tax_amount'|trans([], 'messages', creditMemo.localeCode) }}</td>
<td>{{ 'sylius_refund.ui.gross_value'|trans([], 'messages', creditMemo.localeCode) }}</td>
<td>{{ 'sylius.ui.currency'|trans([], 'messages', creditMemo.localeCode) }}</td>
</tr>

{% for item in creditMemo.lineItems %}
Expand All @@ -103,17 +103,17 @@

<tr class="total">
<td colspan="6"></td>
<td>{{ 'sylius.ui.total'|trans }}:</td>
<td>{{ 'sylius.ui.total'|trans([], 'messages', creditMemo.localeCode) }}:</td>
<td>{{ '%0.2f'|format(creditMemo.total/100) }}</td>
<td>{{ creditMemo.currencyCode }}</td>
</tr>

{% if creditMemo.taxItems|length > 0 %}
<tr class="heading">
<td colspan="6"></td>
<td>{{ 'sylius_refund.ui.tax_rate'|trans }}</td>
<td>{{ 'sylius_refund.ui.tax_amount'|trans }}</td>
<td>{{ 'sylius.ui.currency'|trans }}</td>
<td>{{ 'sylius_refund.ui.tax_rate'|trans([], 'messages', creditMemo.localeCode) }}</td>
<td>{{ 'sylius_refund.ui.tax_amount'|trans([], 'messages', creditMemo.localeCode) }}</td>
<td>{{ 'sylius.ui.currency'|trans([], 'messages', creditMemo.localeCode) }}</td>
</tr>

{% for item in creditMemo.taxItems %}
Expand Down

0 comments on commit e3e19b7

Please sign in to comment.