]> BookStack Code Mirror - bookstack/commitdiff
Merge branch 'master' of git://github.com/kmoj86/BookStack into kmoj86-master
authorDan Brown <redacted>
Sat, 22 Sep 2018 11:23:17 +0000 (12:23 +0100)
committerDan Brown <redacted>
Sat, 22 Sep 2018 11:23:17 +0000 (12:23 +0100)
1  2 
config/app.php
resources/lang/en/settings.php

diff --combined config/app.php
index b0883b9bea6922780b062f7e7c6d114238909b0f,c98efadd59d6b4955af43eeab2bda86edcc33863..79c73df4aff4a62408adedfc584a17cdb86cf08a
@@@ -77,21 -77,8 +77,20 @@@ return 
      */
  
      'locale' => env('APP_LANG', 'en'),
-     'locales' => ['en', 'de', 'es', 'es_AR', 'fr', 'nl', 'pt_BR', 'sk', 'sv', 'ja', 'pl', 'it', 'ru', 'zh_CN', 'zh_TW'],
+     'locales' => ['en', 'ar', 'de', 'es', 'es_AR', 'fr', 'nl', 'pt_BR', 'sk', 'sv', 'ja', 'pl', 'it', 'ru', 'zh_CN', 'zh_TW'],
  
 +    /*
 +    |--------------------------------------------------------------------------
 +    | Auto-detect the locale for public users
 +    |--------------------------------------------------------------------------
 +    |
 +    | For public users their locale can be guessed by headers sent by their
 +    | browser. This is usually set by users in their browser settings.
 +    | If not found the default app locale will be used.
 +    |
 +    */
 +    'auto_detect_locale' => env('APP_AUTO_LANG_PUBLIC', true),
 +
      /*
      |--------------------------------------------------------------------------
      | Application Fallback Locale
          'Activity' => BookStack\Services\Facades\Activity::class,
          'Setting'  => BookStack\Services\Facades\Setting::class,
          'Views'    => BookStack\Services\Facades\Views::class,
 -        'Images'   => \BookStack\Services\Facades\Images::class,
 +        'Images'   => BookStack\Services\Facades\Images::class,
  
      ],
  
index 839199b1fc1924d936130b1590c22a66f42b4a1b,6b1eb3929e0aebf4e18e8ab07ed1afbea2f39369..46ef8d29fc62952865bf4084dba6341edb5cdc2d
@@@ -32,8 -32,9 +32,8 @@@ return 
      'app_primary_color' => 'Application primary color',
      'app_primary_color_desc' => 'This should be a hex value. <br>Leave empty to reset to the default color.',
      'app_homepage' => 'Application Homepage',
 -    'app_homepage_desc' => 'Select a page to show on the homepage instead of the default view. Page permissions are ignored for selected pages.',
 -    'app_homepage_default' => 'Default homepage view chosen',
 -    'app_homepage_books' => 'Or select the books page as your homepage. This will override any page selected as your homepage.',
 +    'app_homepage_desc' => 'Select a view to show on the homepage instead of the default view. Page permissions are ignored for selected pages.',
 +    'app_homepage_select' => 'Select a page',
      'app_disable_comments' => 'Disable comments',
      'app_disable_comments_desc' => 'Disable comments across all pages in the application. Existing comments are not shown.',
  
@@@ -90,7 -91,6 +90,7 @@@
      'role_manage_settings' => 'Manage app settings',
      'role_asset' => 'Asset Permissions',
      'role_asset_desc' => 'These permissions control default access to the assets within the system. Permissions on Books, Chapters and Pages will override these permissions.',
 +    'role_asset_admins' => 'Admins are automatically given access to all content but these options may show or hide UI options.',
      'role_all' => 'All',
      'role_own' => 'Own',
      'role_controlled_by_asset' => 'Controlled by the asset they are uploaded to',
      ///////////////////////////////////
      'language_select' => [
          'en' => 'English',
+         'ar' => 'العربية',
          'de' => 'Deutsch',
          'es' => 'Español',
          'es_AR' => 'Español Argentina',
          'it' => 'Italian',
          'ru' => 'Русский',
          'zh_CN' => '简体中文',
 -          'zh_TW' => '繁體中文'
 +        'zh_TW' => '繁體中文'
      ]
      ///////////////////////////////////
  ];