Page MenuHomePhabricator

Ability to use <languages> tag as replacement for {{languages}} template on non-Translate extension pages
Open, MediumPublicFeature

Description

Feature summary:

On wikis with Translate extension installed, it would be helpful if the already "upgraded" languages tag built into Translate (<languages />) could double as a replacement for {{languages}} template on pages which do not use Translate extension, but have a similar language subpage setup (which is already required for most uses of {{languages}}.

Use cases:

Pages or categories which have not (or for whatever reason cannot be) setup for use with Translate:

Benefits:

There are already efforts underway on Meta-Wiki to reduce usage of {{languages}}:

As noted in those discussion, ongoing maintenance of this template is a burden, and simply switching all pages to usage of Translate extension does not solve all use cases.

Notes:
  • Should have ability to set for a specific page as that is often necessary (examples, the /Translations categories).
Lingering questions:
  • Is this doable?
Related tasks:

Event Timeline

Varnent triaged this task as Medium priority.Apr 2 2024, 5:31 PM
Varnent updated the task description. (Show Details)
Lingering questions:
  • Is this doable?

Not necessarily, and definitely not easily: the problem is purging the parser cache. Currently, if any translation page is edited/created (through a translation unit), moved or deleted, the parser cache of all translations belonging to the same translatable page is invalidated. This is good as long as any page can only link to its “sibling pages” using <languages/>, but it would be insufficient with your requested scope widening.

Lingering questions:
  • Is this doable?

Not necessarily, and definitely not easily: the problem is purging the parser cache. Currently, if any translation page is edited/created (through a translation unit), moved or deleted, the parser cache of all translations belonging to the same translatable page is invalidated. This is good as long as any page can only link to its “sibling pages” using <languages/>, but it would be insufficient with your requested scope widening.

@Tacsipacsi: Given the increasingly limited usage of {{languages}} - is it reasonable to say that the potential advantages do not outweigh the necessary hurdles to overcome (if possible at all) such that we should just "decline" this idea? I am okay with that - I just want to make sure I am not misreading your comment. :)