Actions
Task #3525
closedUnstructured element translation for the sidebar of the wiki
Start date:
Due date:
% Done:
0%
Tags:
URL:
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
editinterfacecan 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