GlobaLeaks
GlobaLeaks copied to clipboard
"File a report" button doesn't change language after switching language
Describe the bug The "File a report"-Button on the start page use always the browser language and ignore the user selected language.
To Reproduce Steps to reproduce the behavior:
- Enable en and de as allowed user languages
- Switch browser language to de
- Go to 'http://HOST:PORT/#/?lang=en'
- See button text say "Einen Bericht einreichen" instead of "File a report"; all other fields are translated as expected.
- Switch browser language to en and reload
- The button is now translated
Expected behavior All text field labels and button texts should switch to chosen language.
Screenshots
After changing language from german to english:
Additional context
Version: 4.10.1
Thank you @lasat
I tried to follow your instruction but i'm not able to reproduce. Can you clarify me the steps you take to change language? (do you use the drop down menu or you change the link?)
Hi,
thank you for the quick responses.
- I start with 'http://HOST:PORT/' with browser language set to 'de' (Firefox "language switch" add-on set do 'de'). All text fields are displayed in german language.
- I use the drop down menu to switch to English. All text fields change to 'en', but not the "file a report"-button. The url is changed during that to 'http://HOST:PORT/#/?lang=en'.
- I could change the language to every else language, but the button text will not be changed.
- If I change the browser language to 'en' and reload the button change his content to english, but will not change to any other language if I use the drop-down menu.
I hope this description is more understandable.
Thank you.
This is helpful to understan but actually i'm still not able to reproduce the behaviour.
Are you able to reproduce this on https://try.globaleaks.org?