Project

General

Profile

Actions

Task #3525

closed

Unstructured element translation for the sidebar of the wiki

Added by Beluga Beluga over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Wiki
Target version:
-
Start date:
Due date:
% Done:

0%

Tags:

Description

Following the guide for unstructured element translation we need to do this:

Someone with access to the wiki VM needs to edit LocalSettings.php and add the block

$wgHooks['TranslatePostInitGroups'][] = function ( &$list, &$deps, &$autoload ) {
    $id = 'wiki-sidebar';
    $mg = new WikiMessageGroup( $id, 'sidebar-messages' );
    $mg->setLabel( 'Sidebar' );
    $mg->setDescription( 'Messages used in the sidebar of this wiki.' );
    $list[$id] = $mg;
    return true;
};

Then, I can edit the page MediaWiki:Sidebar-messages and add the content

getinvolved-description donate-description

Now users with the access level

editinterface
can go to Special:Translate/wiki-sidebar and translate the strings.

For reference, we define the sidebar here: https://wiki.documentfoundation.org/MediaWiki:Sidebar
Our own system messages are https://wiki.documentfoundation.org/MediaWiki:Getinvolved-description and https://wiki.documentfoundation.org/MediaWiki:Donate-description

Actions

Also available in: Atom PDF