GlobaLeaks icon indicating copy to clipboard operation
GlobaLeaks copied to clipboard

"File a report" button doesn't change language after switching language

Open lasat opened this issue 2 years ago • 3 comments

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:

  1. Enable en and de as allowed user languages
  2. Switch browser language to de
  3. Go to 'http://HOST:PORT/#/?lang=en'
  4. See button text say "Einen Bericht einreichen" instead of "File a report"; all other fields are translated as expected.
  5. Switch browser language to en and reload
  6. 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: grafik

Additional context

Version: 4.10.1

lasat avatar Aug 17 '22 06:08 lasat

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?)

evilaliv3 avatar Aug 17 '22 08:08 evilaliv3

Hi,

thank you for the quick responses.

  1. 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.
  2. 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'.
    1. I could change the language to every else language, but the button text will not be changed.
    2. 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.

lasat avatar Aug 17 '22 09:08 lasat

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?

evilaliv3 avatar Aug 18 '22 08:08 evilaliv3