-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Mention cache in translation page #342
Comments
Hi Paul- I'm not sure about this quite yet. When you add the Thanks! |
@weaverryan The issue is when you add a translation file. In this case, the kernel does not know that the cache needs to be refreshed as this file is not in the list of watched resources yet. |
I just tried to recreate it but wasn't able to. I pulled a copy of sf2_std, added FOSUB, then pointed a browser to /login and got the untranslated strings. I added framework.translator.fallback to my config, hit /login again, and got the translated strings. Weird. I didn't add any of my own translation files but perhaps adding FOSUB and the translations it includes triggers the situation @stof described. Not sure. I'll let you close this issue if you like since I'm not sure what else I may have done to trigger the situation I was in. I've been tinkering with all kinds of things in this project lately so I'm not sure how to reproduce it. |
That would have saved me some time :) Thanks. |
Beautiful, that's the goal :) |
I got bit by this so I thought I'd mention it. I added FOW\UserBundle to my app after I'd been working on other pieces. I found the strings on FOSUB's stock login page and others were not being translated. I found I needed to add the config entry to enable translation but that didn't fix the issue. I needed to clear my cache before the change was applied. Perhaps a little blurb suggesting "cache:clear" next to the instructions for adding the config entry is in order?
The text was updated successfully, but these errors were encountered: