Page MenuHomePhabricator

Add a tracking category to error "int" magic word usage
Open, Needs TriagePublic

Description

Hello. It will be very nice if {{int:<unexisting message>}} will get tracking category, and we'll stop find these errors occasionally. Thank you.

Event Timeline

To clarify:

if
MediaWiki:Foo/<user-language> does not exist
AND
MediaWiki:Foo does not exist
AND
there is no definition of "Foo" in site language file
AND
there is no definition of "Foo" in English language file
then
add tracking category
?

Or different set of conditions?

You know better than me all these details, @Danny_B. I just want to avoid the situation when some page has message title transcluded, rather than message text.

Do you actually have any example of such page? (Permalink welcome.) Thank you.

You can start with the examples in hewiki help:reference, section 1, permalink 18838846.

Hello, I encountered the need for such a category in Wikispecies.

Internationalization is done there through the use of system messages, see species:Wikispecies:Localization.

Occasionally, a new internationalized term is added to a page, using {{int:<new term>}}, and is displayed as ⧼<new term>⧽ since MediaWiki:<new term> has not been created yet.

Example in species:Pterophilus sudanensis: the page was created with the term {{int:Type host}} which was displayed as ⧼Type host⧽, since species:MediaWiki:Type host didn't exist before.

The conditions could be as follows:

if
{{int:Foo}} is added to a page
AND
MediaWiki:Foo does not exist
then
add tracking category