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 #1

Updated by Guilhem Moulin over 3 years ago

  • Status changed from New to Closed

Beluga Beluga wrote:

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

done

Actions #2

Updated by Beluga Beluga over 3 years ago

Guilhem Moulin wrote in #note-1:

Beluga Beluga wrote:

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

done

Thanks for the quick action! Now everything is working as expected - one can see the translations in effect by clicking the language selector in the top bar to the left of one's user profile link.

Actions

Also available in: Atom PDF