]> BookStack Code Mirror - bookstack/commit
Extended translations system for arrays & extension
authorDan Brown <redacted>
Wed, 12 Dec 2018 20:46:27 +0000 (20:46 +0000)
committerDan Brown <redacted>
Wed, 12 Dec 2018 20:46:27 +0000 (20:46 +0000)
commit323bff7d6d3974e5752bfec9581d733b91e933f5
treec689405dd91724e384aaefb7995f9c662453625d
parent0e3d507ec2e38d2540bc58f8fbcd7e737d44e6b3
Extended translations system for arrays & extension

Extended the base Laravel translation system to
allow a locale to be based upon another.

Also adds functionality to take base & fallback locales into account when fetching
an array of translations.

Related to work done in #1159
16 files changed:
app/Http/Controllers/HomeController.php
app/Providers/TranslationServiceProvider.php [new file with mode: 0644]
app/Translation/Translator.php [new file with mode: 0644]
composer.json
config/app.php
resources/lang/de_informal/activities.php
resources/lang/de_informal/auth.php
resources/lang/de_informal/common.php
resources/lang/de_informal/components.php
resources/lang/de_informal/entities.php
resources/lang/de_informal/errors.php
resources/lang/de_informal/pagination.php
resources/lang/de_informal/passwords.php
resources/lang/de_informal/settings.php
resources/lang/de_informal/validation.php
tests/LanguageTest.php