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

Add translation to the field title for csv and xlsx export #17353

Open
wants to merge 7 commits into
base: 11.x
Choose a base branch
from

Conversation

kevinloeber-twocream
Copy link
Contributor

@kevinloeber-twocream kevinloeber-twocream commented Jul 15, 2024

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.

Copy link

github-actions bot commented Jul 15, 2024

Review Checklist

  • Target branch (11.2 for bug fixes, others 11.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, ...)
  • Label
  • Milestone

@CLAassistant
Copy link

CLAassistant commented Jul 25, 2024

CLA assistant check
All committers have signed the CLA.

@kingjia90

This comment has been minimized.

@kevinloeber-twocream
Copy link
Contributor Author

recheck

@mattamon mattamon added this to the 11.4.0 milestone Aug 29, 2024
Copy link

sonarcloud bot commented Aug 29, 2024

@mattamon
Copy link
Contributor

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.

@kevinloeber-twocream
Copy link
Contributor Author

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:
image
image
image
Export:
image

@mattamon
Copy link
Contributor

@kevinloeber-twocream hmm okay I switched to your branch and still does not get translated for me.

@mattamon mattamon self-assigned this Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants