Task #3525
closedUnstructured element translation for the sidebar of the wiki
0%
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
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
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.