globaleaks / globaleaks-whistleblowing-software

GlobaLeaks is a free and open-source whistleblowing software enabling anyone to easily set up and maintain a secure reporting platform.
https://www.globaleaks.org
Other
1.25k stars 275 forks source link

Translation bugs when default language is not 'en' #4315

Open mordoviu opened 2 weeks ago

mordoviu commented 2 weeks ago

What version of GlobaLeaks are you using?

5.0.26

What browser(s) are you seeing the problem on?

Chrome, Firefox

What operating system(s) are you seeing the problem on?

Linux

Describe the issue

In my Globaleaks installation, I am using two languages, German and English, and German is (and has to be) the default language. After Upgrade to Globaleaks 5 I am observing some bugs in the translation when I switch the language from German to English as admin or whistleblower: some menu items and questions are not translated to English, they stay in German. This bug however cannot be reproduced when English is set as default language. Please see screenshots attached for a visual example. translation_bug_example_globaleaks_5

Proposed solution

No response

mordoviu commented 4 days ago

Issue remains on 5.0.28

evilaliv3 commented 4 days ago

Thank you @mordoviu

@msmannan00 : would you please check into this with priority?

msmannan00 commented 4 days ago

sure, will get back here shortly

msmannan00 commented 4 days ago

@evilaliv3 the issue is that en.json doesn't contain the keys, for instance Alternative contact method works because its present in en.json adding "Specify" and "Would you like to tell us who you are" in en makes it work.

evilaliv3 commented 4 days ago

Ah, well noted thank you!

Message ID: <globaleaks/globaleaks-whistleblowing-software/issues/4315/2498218402@ github.com>

evilaliv3 commented 4 days ago

@msmannan00 : i actually do not think the bug lies in the problem that you describe.

@mordoviu would you please make a video where you switch languages to show the situation?

msmannan00 commented 4 days ago

sure, but it was happening exactly like that when I set the config from German to English switch even with lang=en it showed similar behavior as described adding lang fixed it , but maybe I am thinking wrong please do share video will check it out, the two strings highlighted with red were not changing on language change

mordoviu commented 2 days ago

Sure! I added a video demonstrating the behavior, the default language is set to 'de'. Screencast from 27.11.2024 16:42:50.webm

Let me know, if you need more information.