]> source.dussan.org Git - nextcloud-server.git/commit
fix(l10n): Fix plural issue with different locale and language 39031/head
authorJoas Schilling <coding@schilljs.com>
Wed, 21 Jun 2023 05:11:16 +0000 (07:11 +0200)
committerJoas Schilling <coding@schilljs.com>
Tue, 27 Jun 2023 12:15:46 +0000 (14:15 +0200)
commit756e1191628b6a47dfef92e4c4d2edfc47fdb140
treecb893b646304031cdfc041c0f1455aea5eb3452c
parent13d9fb1ad700d0c913588251bf43ab9bd2e767ca
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