]> source.dussan.org Git - nextcloud-server.git/commit
fix(l10n): Fix plural issue with different locale and language 38917/head
authorJoas Schilling <coding@schilljs.com>
Wed, 21 Jun 2023 05:11:16 +0000 (07:11 +0200)
committerJoas Schilling <coding@schilljs.com>
Wed, 21 Jun 2023 05:14:56 +0000 (07:14 +0200)
commitab8205fd35a3815673fc17fa78adc5bc770cfdc7
tree9ed65a1661b83f8790dc2f61e37a8d5b0333bc79
parent5fb7ea22be0814eb8e1e1e0f2df6032ef53983cc
fix(l10n): Fix plural issue with different locale and language

We need to use the language code here instead of the locale,
because Symfony does not distinguish between the two and would
otherwise e.g. with locale "Czech" and language "German" try to
pick a non-existing plural rule, because Czech has 4 plural forms
and German only 2.

Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/L10N/L10N.php
tests/lib/L10N/L10nTest.php