pimcore
pimcore copied to clipboard
Add translation to the field title for csv and xlsx export
Changes in this pull request
Added that when exporting csv or xlsx files, the translation of the column names is specified and not the normal name
Additional info
So that the CSV and XLSX export in the GridView displays the names of the fields as column names. There is an adjustment to the input mask of the exports with a checkbox whether you want to use the field titles. There is also an adjustment to the export process to translate the field titles.
Review Checklist
- [x] Target branch (
11.2for bug fixes, others11.x) - [ ] Tests (if it's testable code, there should be a test for it - get help)
- [ ] Docs (every functionality needs to be documented, see here)
- [ ] Migration incl.
install.sql(e.g. if the database schema changes, ...) - [ ] Upgrade notes (deprecations, important information, migration hints, ...)
- [x] Label
- [x] Milestone
Thank you for your PR! Could you please sign the CLA and trigger a recheck?
recheck
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Hey @kevinloeber-twocream I tried to test it, but could not make it work.
How should the translation work in general? I tried it with label and also system key but it never got translated.
Hey @mattamon , I have added two text fields in my data model as an example, which have a translation key as a label. When I add the fields in the grid view, the translations are displayed in Pimcore, but when I export the grid view as csv, only the translation keys are displayed and not the translations.
Pimcore:
Export:
@kevinloeber-twocream hmm okay I switched to your branch and still does not get translated for me.
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code