Skip to content

Commit

Permalink
Setup dlfmwiki for system messages' translation. (#5346)
Browse files Browse the repository at this point in the history
As previously mentioned in
[T11314](https://phabricator.miraheze.org/T11314), I need to add these
configurations for my wiki to setup system translation.
  • Loading branch information
JerryHan3 authored Dec 28, 2023
1 parent 3cece00 commit 43439c2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions LocalWiki.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ function onSkinAddFooterLinks( Skin $skin, string $key, array &$footerItems ) {
}
}

break;
case 'dlfmwiki':
$wgHooks['TranslatePostInitGroups'][] = function ( &$list, &$deps, &$autoload ) {
$id = 'local-sys-msg';
$mg = new WikiMessageGroup( $id, 'local-messages' );
$mg->setLabel( 'Local System Messagss' );
$mg->setDescription( 'Messages used specially on this wiki.' );
$list[$id] = $mg;
return true;
};

break;
case 'dmlwikiwiki':
$wgHooks['SpecialPage_initList'][] = 'onSpecialPage_initList';
Expand Down

0 comments on commit 43439c2

Please sign in to comment.