]> BookStack Code Mirror - bookstack/commitdiff
Added estonian to language logic
authorDan Brown <redacted>
Mon, 25 Oct 2021 13:49:03 +0000 (14:49 +0100)
committerDan Brown <redacted>
Mon, 25 Oct 2021 13:49:03 +0000 (14:49 +0100)
app/Config/app.php
app/Http/Middleware/Localization.php
resources/lang/en/settings.php

index 120644aede9b3e048e38120719ff10a4a92549eb..f90a7dd76020bd22a0d26798f67682a0b28bd80a 100755 (executable)
@@ -61,7 +61,7 @@ return [
     'locale' => env('APP_LANG', 'en'),
 
     // Locales available
-    'locales' => ['en', 'ar', 'bg', 'bs', 'ca', 'cs', 'da', 'de', 'de_informal', 'es', 'es_AR', 'fa', 'fr', 'he', 'hr', 'hu', 'id', 'it', 'ja', 'ko', 'lt', 'lv', 'nl', 'nb', 'pt', 'pt_BR', 'sk', 'sl', 'sv', 'pl',  'ru', 'th', 'tr', 'uk', 'vi', 'zh_CN', 'zh_TW'],
+    'locales' => ['en', 'ar', 'bg', 'bs', 'ca', 'cs', 'da', 'de', 'de_informal', 'es', 'es_AR', 'et', 'fa', 'fr', 'he', 'hr', 'hu', 'id', 'it', 'ja', 'ko', 'lt', 'lv', 'nl', 'nb', 'pt', 'pt_BR', 'sk', 'sl', 'sv', 'pl',  'ru', 'th', 'tr', 'uk', 'vi', 'zh_CN', 'zh_TW'],
 
     //  Application Fallback Locale
     'fallback_locale' => 'en',
index e824651469b5aa30493c5004ed1affdd6ac89ac8..d8e1253e5edd5f925ffff25b258371974e58a1a0 100644 (file)
@@ -15,6 +15,7 @@ class Localization
 
     /**
      * Map of BookStack locale names to best-estimate system locale names.
+     * Locales can often be found by running `locale -a` on a linux system.
      */
     protected $localeMap = [
         'ar'          => 'ar',
@@ -27,6 +28,7 @@ class Localization
         'en'          => 'en_GB',
         'es'          => 'es_ES',
         'es_AR'       => 'es_AR',
+        'et'          => 'et_EE',
         'fr'          => 'fr_FR',
         'he'          => 'he_IL',
         'hr'          => 'hr_HR',
index 0ab168b66998bca0de4807f94d181b9b12ed1683..46df0d07daf8f5c254664d678a2c0b553e663e45 100755 (executable)
@@ -248,6 +248,7 @@ return [
         'de_informal' => 'Deutsch (Du)',
         'es' => 'Español',
         'es_AR' => 'Español Argentina',
+        'et' => 'Eesti Keel',
         'fr' => 'Français',
         'he' => 'עברית',
         'hr' => 'Hrvatski',