Skip to content

Commit

Permalink
bug #309 [PDF Template][Translation] Fix translation on pdf template …
Browse files Browse the repository at this point in the history
…(BastienGoze)

This PR was merged into the main branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | main             |
| Bug fix?        | yes                                                       |
| New feature?    | no                                                    |
| BC breaks?      | no                                                       |
| Deprecations?   | no |
| Related tickets |                 |
| License         | MIT                                                          |

Fix translation on pdf template

Commits
-------

464b0d8 Fix translation on pdf template
  • Loading branch information
GSadee committed Apr 23, 2024
2 parents 4581626 + 464b0d8 commit 4263f0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Resources/views/Invoice/Download/pdf.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@
</tr>
<tr>
<td class="border-0" colspan="6"></td>
<td class="text-right bg-gray" colspan="2">{{ 'sylius_invoicing_plugin.ui.payment.paid'|trans }}:</td>
<td class="text-right bg-gray" colspan="2">{{ 'sylius_invoicing_plugin.ui.payment.paid'|trans([], 'messages', invoice.localeCode) }}:</td>
<td class="text-right bg-gray" colspan="2">
{% if invoice.paymentState() is constant('Sylius\\InvoicingPlugin\\Entity\\InvoiceInterface::PAYMENT_STATE_COMPLETED') %}
{{ 'sylius_invoicing_plugin.ui.payment.yes'|trans }}
{{ 'sylius_invoicing_plugin.ui.payment.yes'|trans([], 'messages', invoice.localeCode) }}
{% else %}
{{ 'sylius_invoicing_plugin.ui.payment.no'|trans }}
{{ 'sylius_invoicing_plugin.ui.payment.no'|trans([], 'messages', invoice.localeCode) }}
{% endif %}
</td>
</tr>
Expand Down

0 comments on commit 4263f0e

Please sign in to comment.