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

EZP-29652 - Multilingual support for ezbinaryfile download in admin UI #636

Merged
merged 1 commit into from
Sep 25, 2018
Merged

EZP-29652 - Multilingual support for ezbinaryfile download in admin UI #636

merged 1 commit into from
Sep 25, 2018

Conversation

amauryvallier
Copy link
Contributor

@amauryvallier amauryvallier commented Sep 20, 2018

Question Answer
Tickets EZP-29652
Bug fix? yes
New feature? no
BC breaks? yes/no
Tests pass? yes/no
Doc needed? yes/no
License GPL-2.0

For now, in the admin, if you display the main view of a content in another language than the default one, it will display the correct link (with the filename in the correct language) but if you click on the download button, you will always get the content of the file in the language of the admin.

I hope that this fix could be convenient, I tried it on two of my projects and it fixed the wrong behaviour with no side effect so far and basic tests running fine. I used native eZ elements (the prioritizedFieldLanguageCode of the content and the preconfigured inLanguage option for the route).

Checklist:

  • Coding standards ($ composer fix-cs)
  • Ready for Code Review

For now, in the admin, if you display the main view of a content in another language than the default one, it will display the correct link (with the filename in the correct language) but if you click on the download button, you will always get the content of the file in the language of the admin.

I hope that this fix could be convenient, I tried it on two of my projects and it fixed the wrong behaviour with no side effect so far. I am using native eZ elements (the prioritizedFieldLanguageCode of the content and the preconfigured inLanguage option for the route).
Copy link
Contributor

@m-tyrala m-tyrala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QA approve

@lserwatka lserwatka merged commit a700acf into ezsystems:master Sep 25, 2018
@lserwatka
Copy link
Member

@amauryvallier thank you for your contribution. Glad to hear you battle tested it as well 👍 It will be part of 2.3 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants