Content
Bug OP-14205: Consent always shown in Browser language despite user's language being set differently
View differences
Updated by Wieland Lindenthal over 2 years ago
### Steps to reproduce
1. Have two accounts, one for an admin and one for a normal user. Both already had logged in in the past. So if the there is a consent screen it is the one that stands alone and not the one that is shown during sign-up.
2. For both users the browser's preferred language is set to English
3. Set default user language to German
<img class="op-uc-image op-uc-image_inline" style="width:280px;" src="/api/v3/attachments/89811/content">
4. Set the normal user's language to German
<img class="op-uc-image op-uc-image_inline" style="width:394px;" src="/api/v3/attachments/89813/content">
5. Set a consent with an English text and a German text
6. Check the checkbox for users that already have given a consent to give it again.
<img class="op-uc-image op-uc-image_inline" style="width:775px;" src="/api/v3/attachments/89814/content">
7. Logout the normal user
8. Login with the normal user
### What is the buggy behavior?
* Despite the normal user's language being German, the consent is shown in English (which is my Browser's preferred language)
### What is the expected behavior?
1. As the user already passed the login, OpenProject should know that the user's language is German and show the German consent message
### Environment information
_Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs_
**OpenProject installation type**
* [x] Hosted cloud edition
* [ ] Packaged installation
* What distribution?
* [ ] Docker All-in-one container
* [ ] Docker-compose installation
* [ ] Other (please specify)
**OpenProject version**
_If you're not running on the cloud edition, please specify the version of OpenProject you're running. Example: v12.1.5_
**Browser**
* [ ] Chrome
* [x] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)
1. Have two accounts, one for an admin and one for a normal user. Both already had logged in in the past. So if the there is a consent screen it is the one that stands alone and not the one that is shown during sign-up.
2. For both users the browser's preferred language is set to English
3. Set default user language to German
<img class="op-uc-image op-uc-image_inline" style="width:280px;" src="/api/v3/attachments/89811/content">
4. Set the normal user's language to German
<img class="op-uc-image op-uc-image_inline" style="width:394px;" src="/api/v3/attachments/89813/content">
5. Set a consent with an English text and a German text
6. Check the checkbox for users that already have given a consent to give it again.
<img class="op-uc-image op-uc-image_inline" style="width:775px;" src="/api/v3/attachments/89814/content">
7. Logout the normal user
8. Login with the normal user
### What is the buggy behavior?
* Despite the normal user's language being German, the consent is shown in English (which is my Browser's preferred language)
### What is the expected behavior?
1. As the user already passed the login, OpenProject should know that the user's language is German and show the German consent message
### Environment information
* [x] Hosted cloud edition
* [ ] Packaged installation
* What distribution?
* [ ] Docker All-in-one container
* [ ] Docker-compose installation
* [ ] Other (please specify)
**OpenProject version**
_If you're not running on the cloud edition, please specify the version of OpenProject you're running. Example: v12.1.5_
**Browser**
* [ ] Chrome
* [x] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)