8000 Translator: WDT collector use last locale page · Issue #22004 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Translator: WDT collector use last locale page #22004

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alborq opened this issue Mar 15, 2017 · 2 comments
Closed

Translator: WDT collector use last locale page #22004

alborq opened this issue Mar 15, 2017 · 2 comments

Comments

@alborq
Copy link
alborq commented Mar 15, 2017
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 2.8.9

Hi.

When you use translator in dev; WDT calculate Fallback, Defined Message
BUT
It do this, with the lastest locale used in page and not a locale use during translation

Exemple :
Locale FR :
{{ 'hi'|trans }} => Say 'Bonjour'
Change locale with $this->translator->setLocale('en');
{{ 'hi'|trans }} => Say 'Hi'
Change locale with $this->translator->setLocale('An Unknow language');
{{ 'hi'|trans }} => Say 'Hi' //Fallback
Change locale with $this->translator->setLocale('en');

WDT Render : You havent fallback message. because it's post analyse.

Usecase : mass mailing with different language

@fancyweb
Copy link
Contributor
fancyweb commented Jul 10, 2020

@xabbuh This issue was (indirectly) fixed by #32925, I tested it, you can close.

@xabbuh
Copy link
Member
xabbuh commented Jul 10, 2020

cool 👍 thank you for checking @fancyweb

@xabbuh xabbuh closed this as completed Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
0