nextcloud / polls

🗳️ Polls app for Nextcloud
https://apps.nextcloud.com/apps/polls
GNU Affero General Public License v3.0
256 stars 73 forks source link

Translations get mixed up (Language: English, Locale: Switzerland) #1887

Open FloMiLe opened 3 years ago

FloMiLe commented 3 years ago

What is going wrong? What did you observe?

In date and time strings, German and English words get mixed.

I guess that this is due to my settings, which are Language: English and Locale: Switzerland.

Examples:

Screen Shot 2021-08-09 at 11 35 47 Screen Shot 2021-08-09 at 11 36 00
dartcafe commented 3 years ago

That comes from the moment.js implementation, which uses the locale setting while the translations use the language setting. This will be solved when moving from moment.js to date-fns and/or Intl.

spreeni151 commented 3 years ago

After NC update from 20 to 21 and switching polls from 2.06 to 3.1 I realized, that all text modules which contains quotation marks are not translated to German. For example 'Allow "Maybe" vote' . Could this be a conflict with the syntax that is used in the l10n translation files?

dartcafe commented 3 years ago

I have to look after that. Maybe, you could add a new issue for that?

spreeni151 commented 3 years ago

o.k. I'll do, thank you.

dartcafe commented 3 years ago

Note: Possibly switch to date-fns and away from moment.js