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.

Event Timeline

xSavitar 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

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.

xSavitar updated the task description. (Show Details)

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

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!

xSavitar lowered the priority of this task from High to Low.Jan 25 2020, 7:10 PM
Aklapper added a subscriber: DAlangi_WMF.

Removing task assignee due to inactivity as this open task has been assigned for more than two years. See the email sent to the task assignee on August 22nd, 2022.
Please assign this task to yourself again if you still realistically [plan to] work on this task - it would be welcome!
If this task has been resolved in the meantime, or should not be worked on ("declined"), please update its task status via "Add Action… 🡒 Change Status".
Also see https://www.mediawiki.org/wiki/Bug_management/Assignee_cleanup for tips how to best manage your individual work in Phabricator. Thanks!