Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

Commit

Permalink
Upgrade note on translations being moved to its own domain
Browse files Browse the repository at this point in the history
  • Loading branch information
scheb committed Apr 11, 2019
1 parent 8210151 commit 728b743
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,21 @@ external service is considered a bad security practise, the method
Use the method `getQRContent()` on that same class to retrieve the content for the QR code and use a solutions like
[endroid/qr-code-bundle](https://github.com/endroid/qr-code-bundle) to generate the QR code image yourself.

### Translations

The bundle's translations have been moved to its own domain `SchebTwoFactorBundle`. The prefix `scheb_two_factor.` has
been removed on the translation keys. Please update in your templates:

Before:
```twig
{{ "scheb_two_factor.translation_key"|trans }}
```

After:
```twig
<p>{{ "translation_key"|trans({}, 'SchebTwoFactorBundle') }}
```

## 2.x to 3.x

### Dependencies
Expand Down

0 comments on commit 728b743

Please sign in to comment.