Topic on Help talk:Notifications/Special:Notifications

How to change filter pagename(s)?

7
Pretor~nowiki (talkcontribs)

Hi,

On the Special:Notification page it is possible to filter by selecting a pagename to the left, eg. "MediaWiki".

For my page it shows the DB-name and prefix in lower case (eg. translatewiki_net-bw_).

How do I change this to eg. "TranslateWiki"?

Trizek (WMF) (talkcontribs)

Hello

Are you having that case on a Wikimedia-hosted wiki (Wikipedia, Wiktionary, etc.) or on a personal wiki? I'm asking it in order to give you the best reply.

Pretor~nowiki (talkcontribs)

Hi,

It's a personal wiki.

Roan Kattouw (WMF) (talkcontribs)

Create/edit the a page called MediaWiki:Project-localized-name-WIKINAME, e.g. MediaWiki:Project-localized-name-translatewiki_net-bw , and put the display name of the wiki there. See MediaWiki:Project-localized-name-enwiki for example.

(Technically, it works slightly differently on Wikimedia-hosted wikis, which is why that page will look a little weird.)

Pretor~nowiki (talkcontribs)

Thank you, but this did not fix it for me.

Can it be that my db-prefix ends with an underscore (_)? (just like the db-prefix transelatewiki uses, bw_)

Because, when I try to create the page including the underscore, the underscore disappears.

Roan Kattouw (WMF) (talkcontribs)

Yes, that's probably it. There is a hacky way you could try instead:

Create a file called e.g. Wikinames.i18n.php, with the following content:

<?php
$messages = array();
$messages['en'] = array(
    'project-localized-name-translatewiki_net-bw_' => 'TranslateWiki',
    // other project names here if you have more
);

// Translations for other languages here if relevant, e.g. $messages['fr'] = array( ... etc

Then add the following to LocalSettings.php

$wgExtensionMessagesFiles['Wikinames'] = 'path/to/Wikinames.i18n.php';
Pretor~nowiki (talkcontribs)

Works great :)

Thanks!