From 728b743c03560f7f0aff53599f33e7e2a99f6868 Mon Sep 17 00:00:00 2001 From: Christian Scheb Date: Fri, 12 Apr 2019 00:32:42 +0200 Subject: [PATCH] Upgrade note on translations being moved to its own domain --- UPGRADE.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/UPGRADE.md b/UPGRADE.md index fe45be70..43b89c95 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -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 +

{{ "translation_key"|trans({}, 'SchebTwoFactorBundle') }} +``` + ## 2.x to 3.x ### Dependencies