Topic on Help talk:Extension:Translate

Is it possible to hide category pages not in my current language ?

7
Tuxxic (talkcontribs)

Hi,

I am using Translate to translate my category pages, therefore there are many pages added to them.

My goal is to display on my category page only the pages containing the language code I am using, for instance "Page title/en" should only be displayed on English version of my category page.

Is it possible to do it ?

Nikerabbit (talkcontribs)

You can leave the category inside <translate> tags and change it in translations. Or you can leave it outside <translate> tags and use something like [[Category:Name{{#translation}}]] magic word to automatically append language code of the translation page (and none for source page).

Tuxxic (talkcontribs)
Tuxxic (talkcontribs)

Thanks, but how can I display translated page name instead of Name/en ? Is it possible using MsCatselect, another plugin I use for selecting categories ?

I want to use MsCatSelect to do category selection, so I put the categories out of <translate> tags.

I have so many questions lately, sorry @Nikerabbit, maybe one day I will help you with the code :)

Nikerabbit (talkcontribs)

At the moment it's not possible in MediaWiki core to display translated page names in category listings.

Tuxxic (talkcontribs)

OK, I can stop searching :) Thanks for advice !

This post was hidden by Tuxxic (history)
Reply to "Is it possible to hide category pages not in my current language ?"