-
Notifications
You must be signed in to change notification settings - Fork 428
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
Bugfix missing l10n load #919
Conversation
@tvanekeris thanks for your contribution. Apparently, this is not commonly used, as I've never seen any reports of this bug. Should we keep this functionality? Are you using it (with custom templates)? |
Hi @jieter, first of all thanks for the great project! I have built a custom template based on the templates from the project (because I am mostly not using bootstrap, but bulma). I have then seen that loading the l10n module is missing in the templates and wanted to play it back to the main project. So far I have no values in my tables that need the localization (most data is currently strings), but I will probably have in the future (e.g. for comma or point separator for decimals), so I think to keep the l10n in the templates is a good thing. |
You only need to load l10n if you're going to use the template tags/filters it provides which are The templates are making use of these filters, so this seems a valid change 👍 If it's just localization of data like dates and numbers that you need, the |
Hi, yes exactly. In every file where I added the
It might work without the include (have not tested it) but according to the docs (and also hints from PyCharm IDE) the |
Thanks! What puzzles me is that this never failed for me in tests, or that we received any complaints about it. But I agree it looks to be necessary. I'll merge this. |
Added missing load tag "l10n" in all templates where "localize" filter is used.