Skip to content
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

theme specific translation are reported as "missing" in the profiler #5883

Closed
havvg opened this issue Aug 24, 2016 · 5 comments · Fixed by #7577
Closed

theme specific translation are reported as "missing" in the profiler #5883

havvg opened this issue Aug 24, 2016 · 5 comments · Fixed by #7577
Labels
Potential Bug Potential bugs or bugfixes, that needs to be reproduced.

Comments

@havvg
Copy link

havvg commented Aug 24, 2016

When using translation files on a theme basis (by putting them into app/Resources/themes/my-theme/translations/messages.en_US.yml etc.), all used keys are reported missing, although all of them are correctly translated by the system.

@gabiudrescu
Copy link
Contributor

are you sure the missing keys are not from en locale, instead of en_US?

maybe you could post a screenshot of your profiller for a better understanding of the problem.

@bnd170
Copy link

bnd170 commented Aug 24, 2016

Did you clear cache? Symfony2 needs to clear cache after dictionary create, dev envoirment inclusive.

@havvg
Copy link
Author

havvg commented Aug 25, 2016

Yes, I cleared the cache and it's working as expected (the translation is correct).

The only thing is the profiler is reporting any translation message as missing as soon as the files are located in app/Resources/themes/my-theme/translations/*.yml

A minimal example (de_DE is the default_locale in this example):
screen shot on 2016-08-25 at 17-41-35

@pjedrzejewski pjedrzejewski added the Potential Bug Potential bugs or bugfixes, that needs to be reproduced. label Aug 30, 2016
@pjedrzejewski
Copy link
Member

/cc @pamil

@michalmarcinkowski
Copy link
Contributor

@pamil @NeverResponse is it still an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Potential Bug Potential bugs or bugfixes, that needs to be reproduced.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants