]> BookStack Code Mirror - bookstack/commit
Fixed incorrect pluralisation for de_informal
authorDan Brown <redacted>
Mon, 16 Jan 2023 16:54:53 +0000 (16:54 +0000)
committerDan Brown <redacted>
Mon, 16 Jan 2023 16:56:41 +0000 (16:56 +0000)
commit6070d804f8ac331c66dd689d8f55ba8a08fb8cf9
tree6176bafb054f5370a10d1523e1624c8a2b59c29b
parent5393465ea7caf45997026323bb30f9bc2c6c1213
Fixed incorrect pluralisation for de_informal

Updated language system to only use initial part of locale for
translation pluralisation to better match the hard-coded logic of the
built-in MessageSelector. Extends and overrides Laravel's default for
this system.

Added test to cover.
Related to #3976.
app/Providers/TranslationServiceProvider.php
app/Translation/MessageSelector.php [new file with mode: 0644]
tests/LanguageTest.php