Skip to content

Commit

Permalink
Install L10n extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
lens0021 committed Feb 21, 2019
1 parent 7033e3d commit 719bf24
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
22 changes: 22 additions & 0 deletions configs/LocalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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
#
Expand Down
2 changes: 2 additions & 0 deletions extension-installer/install_extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
'BetaFeatures',
'VisualEditor',
'Widgets',
'UniversalLanguageSelector',
'Translate',
]
# 3rd party extensions and their URLs
extensions_3rdparty = {
Expand Down

0 comments on commit 719bf24

Please sign in to comment.