Page MenuHomeMiraheze

Setup system message translation
Open, NormalPublic

Description

Miraheze wiki URL:dlfm.miraheze.org

I’d like to add these contents into LocalSettings.php:

$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;
};

Therefore, I can translate system messages on my wiki.

Event Timeline

Potential vandalism from user "RespectMat".

@JerryHan3 Checkout https://github.com/miraheze/mw-config/blob/master/LocalWiki.php. The way that file works is just a big switch statement, which holds custom code for the wikis, just add a case for your wiki, paste it there, and submit a pull request.

I've submitted the pull request #5346.