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
Make all GDPR pages translatable #15574
Comments
created a PR for GDPR overview and opt out. Regarding the GDPR Tools. That page is fully generated with angularjs components. That means if we make it translatable, we would need to put all the translations for it into the javascript translation array. As that would be quite a lot new translations in there, I was wondering if there might be a better solution we could implement, maybe like loading the needed translations on demand using JS. Or prerender the templates before serving them, so the most translations would be done serverside. @tsteur @mattab @diosmosis Any thoughts on that? |
You mean like
Pre-rendering is out of scope for now as this adds quite some complexity and potentially would need to upgrade angular for it etc. It's important to focus on the Matomo 4 milestone for now. Maybe something to keep in mind for Matomo 5 or so? Not sure how much data we're talking about GZIPED. If I see this right this is maybe currently only around 30KB? I reckon eventually it could be good to fetch translations through an ajax request with some good caching and not serve them on every page view but might make the UI bit funny if translations take too long to load. It be for sure good to have, but reckon not much of a priority right now considering all the other things we have to do. |
It's quite a lot new stuff in here: https://github.com/matomo-org/matomo/blob/4.x-dev/plugins/PrivacyManager/angularjs/manage-gdpr/managegdpr.directive.html and https://github.com/matomo-org/matomo/blob/4.x-dev/plugins/PrivacyManager/angularjs/anonymize-log-data/anonymize-log-data.directive.html We could for sure simply add them to the javascript translations, but that way they would be loaded everywhere, but they would only be needed on that one page. Implementing something like and API method |
@sgiehl Maybe create a new issue for this refactoring, and then it can be scheduled eventually. It's not a priority right now. Be good to focus on 3.13.3 and Matomo 4 first 👍 |
Can we store the translations in a JSON file like asset files are stored (in tmp and gzipped)? Then the user would only need to load it once in a while. |
I reckon something like this could work, would need to be generated per language though. The problem is that you can't really ensure that file exists in tmp so it would likely need to go through Matomo PHP. The good thing is this allows us to send proper cache headers. So far it's not yet really an urgent problem but could re-evaluate then as part of Matomo 5 to see how much data the translations are to see if it has become a problem 👍 |
Updated the PR above so all GDPR pages are now translatable. As discussed for now all translations will be in the javascript array... |
Followup from #14954
I noticed that the whole
GDPR overview
page, the help on theGDPR Tools
page and the whole GDPR tool is hardcoded in English.To make it possible for everyone to use them, we should make them translatable.
The text was updated successfully, but these errors were encountered: