Page MenuHomePhabricator

Suppress rendering translated versions of a page and render **only** the default
Open, LowPublic

Description

The idea of this feature is to suppress the translated version of the page in order languages in the category tree and show only the default page (upon creation). This option is not available by default but can be enabled using the notranslations option in the category tree.

Also, note that if notranslations option is added with the showcount option available, the number of suppressed pages should influence the value of the count. So for example, if we had a page with 20 translated pages (meaning 21 pages in the category), the output should be (TestCat‎ (1 P)), instead of (TestCat (21 P)).

Option name(?)
  • notranslations
  • suppresstranslations

Maybe other ideas of better names?

Use case(s)

Having a page with so many translated pages in a category tree will make the list so long and in addition, the main page already has links to the translated versions maybe at the top or at the bottom with <languages/> tag (?). So, it would be good to have an option to suppress the translations and have just the main/default pages in the category tree.

Details

Related Gerrit Patches:
mediawiki/extensions/CategoryTree : masterSuppress page translations and render only the default page(s)

Event Timeline

D3r1ck01 created this task.Jul 29 2019, 7:03 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 29 2019, 7:03 PM
D3r1ck01 renamed this task from Suppress translation/translated versions of a page and keep just the default in Category Tree to Suppress rendering translated versions of a page and render **only** the default.Jul 29 2019, 7:05 PM

@daniel, I'll make a patch with the option notranslations for a start. Let me know if that is a good name or if there are better options. Thanks

D3r1ck01 moved this task from Backlog to Doing [WIP] on the User-D3r1ck01 board.
D3r1ck01 updated the task description. (Show Details)Jul 29 2019, 7:12 PM

Change 526234 had a related patch set uploaded (by D3r1ck01; owner: Derick Alangi):
[mediawiki/extensions/CategoryTree@master] Suppress page translations and render only the default page(s)

https://gerrit.wikimedia.org/r/526234

Also, note that if notranslations option is added with the showcount option available, the suppressed pages shouldn't influence the value of the count.

Given that the counts are loaded from https://www.mediawiki.org/wiki/Manual:Category_table, I don't see any efficient way to achieve this.

D3r1ck01 updated the task description. (Show Details)Jul 30 2019, 9:41 AM
D3r1ck01 updated the task description. (Show Details)Jul 30 2019, 9:48 AM
D3r1ck01 updated the task description. (Show Details)
D3r1ck01 moved this task from Doing [WIP] to Under Review on the User-D3r1ck01 board.

Change 526234 merged by jenkins-bot:
[mediawiki/extensions/CategoryTree@master] Suppress page translations and render only the default page(s)

https://gerrit.wikimedia.org/r/526234

D3r1ck01 moved this task from Under Review to Backlog on the User-D3r1ck01 board.EditedSat, Jan 25, 7:08 PM

Given that the counts are loaded from https://www.mediawiki.org/wiki/Manual:Category_table, I don't see any efficient way to achieve this.

count is the only blocker for this change. I'll try to track this in a sub-task and work on it!

D3r1ck01 lowered the priority of this task from High to Low.Sat, Jan 25, 7:10 PM