From 719bf24deb41d62c6262b96aa345857f044e96ea Mon Sep 17 00:00:00 2001 From: lens0021 Date: Thu, 21 Feb 2019 22:50:14 +0900 Subject: [PATCH] Install L10n extensions --- configs/LocalSettings.php | 22 ++++++++++++++++++++++ extension-installer/install_extensions.rb | 2 ++ 2 files changed, 24 insertions(+) diff --git a/configs/LocalSettings.php b/configs/LocalSettings.php index 211f918d..2efff938 100644 --- a/configs/LocalSettings.php +++ b/configs/LocalSettings.php @@ -202,6 +202,9 @@ # Disable Enhanced RecentChange Filters $wgDefaultUserOptions['rcenhancedfilters-disable'] = 1; +# Enable ULS compact links beta feature to opt-out +$wgDefaultUserOptions['uls-compact-links'] = 1; + # Hide some Preferences $wgHiddenPrefs[] = 'gender'; $wgHiddenPrefs[] = 'realname'; @@ -512,6 +515,25 @@ # BetaFeatures wfLoadExtension( 'BetaFeatures' ); +# UniversalLanguageSelector +wfLoadExtension( 'UniversalLanguageSelector' ); +$wgULSPosition = 'interlanguage'; +$wgULSGeoService = false; # API endpoint used by default is deprecated + +# Translate +include_once "$IP/extensions/Translate/Translate.php"; +$wgGroupPermissions['autoconfirmed']['translate'] = true; +$wgGroupPermissions['translator']['pagetranslation'] = true; +$wgGroupPermissions['translator']['translate-manage'] = true; +$wgGroupPermissions['translator']['translate-messagereview'] = true; +$wgTranslatePageTranslationULS = true; +$wgPageTranslationLanguageList = 'sidebar-always'; + +$wgTranslatePermissionUrl = 'Project:번역'; +$wgTranslateSecondaryPermissionUrl = 'Project:번역'; + +$wgTranslateUseSandbox = true; + # # Load secret.php # diff --git a/extension-installer/install_extensions.rb b/extension-installer/install_extensions.rb index 6997d087..8a6994f9 100644 --- a/extension-installer/install_extensions.rb +++ b/extension-installer/install_extensions.rb @@ -47,6 +47,8 @@ 'BetaFeatures', 'VisualEditor', 'Widgets', + 'UniversalLanguageSelector', + 'Translate', ] # 3rd party extensions and their URLs extensions_3rdparty = {