owncloud / notifications

🔔 Notifications app for ownCloud
GNU Affero General Public License v3.0
12 stars 14 forks source link

Mixed languages #261

Open hurradieweltgehtunter opened 5 years ago

hurradieweltgehtunter commented 5 years ago

My language is set to english but notifications are displayed in german. Switching to other languages switches the notification language, too (tested with French, Netherlands, Suomi). Switching back to english displays the notification also in english, which is then correct.

App version: 0.3.5

@pmaier1

image

pmaier1 commented 5 years ago

Has the notification been generated before you switched the language to English? When switching to another language, is it still the same notification that gets properly translated or did you trigger a new one?

pmaier1 commented 5 years ago

For me it works properly on 10.0.10 with language 'English'. It's even translated on-the-fly when switching between languages back and forth.

hurradieweltgehtunter commented 5 years ago

Language was set to english and the notification was generated in german. I changed the language to german and back to english after this. Server version 10.0.10.4

pmaier1 commented 5 years ago

Hm, strange and not reproducible for me. Can you actually reproduce it? Maybe it corresponds to German system language.

hurradieweltgehtunter commented 5 years ago

I created a new user, put him in a custom group and the message appears again in german although the language is set to english.

pmaier1 commented 5 years ago

Hm, I still can't reproduce it but my system language is English.

@PVince81 can you or @VicDeo maybe quickly check what's going on here? THX.

PVince81 commented 5 years ago

@hurradieweltgehtunter do you have a backup of the DB ? you could check in oc_preferences to see what value you had in the locale.

maybe that value was set to something that is not available in the dropdown and confused the system.

or no value was selected at first and some part of the code detected the language setup in the browser/OS ?

need to dig into the L10N code to remember how the detection is done

hurradieweltgehtunter commented 5 years ago

Quite hard to get detailed information as it is an owncloud.online instance. I did not set any language before when it occured. It was set to english as default.