Page MenuHomePhabricator

[[MediaWiki:Showingresults/en]] and [[MediaWiki:Showingresultsnum/en]] translation issue with formatted numbers in parameters
Closed, ResolvedPublic

Description

These messages contain substitution variables for preformatted numbers using locale-sensitive digits and group separators.

This means that these variables may not be used safely as the 1st parameter given to the {{PLURAL: number|forms...}} parser function calls.
For example to conditionally format the plural forms of the term "result(s)", or for formatting ordinals indicating the range of search results displayed.

This is because the PLURAL: parserfunction in Mediawiki only accepts raw numbers using only ASCII digits, and English group separators (for large values) or decimal separors (for non-integer values) and cannot guess for which language it was preformatted (e.g. ambiguities on the meaning of group and decimal separators, and probably not supporting alternate native digits for other scripts).

There should be other parameters passing the unformatted numeric values.


Message URL: https://translatewiki.net/w/i.php?title=Special:Translate&showMessage=showingresults&group=core&language=qqq

Event Timeline

Verdy_p renamed this task from [[MediaWiki:Showingresults/en]] and MediaWiki:Showingresultsnum/en]] translation issue to [[MediaWiki:Showingresults/en]] and [[MediaWiki:Showingresultsnum/en]] translation issue with formatted numbers in parameters.Apr 15 2022, 11:25 PM
Verdy_p updated the task description. (Show Details)
Verdy_p updated the task description. (Show Details)
Gehel subscribed.

I don't think this is related to search. Maybe Platform Engineering knows more about this.

Is MediaWiki:Showingresultsnum used at all somewhere?

Is MediaWiki:Showingresultsnum used at all somewhere?

Not in MediaWiki core. It only seems to be referenced in two qqq messages (that should be fixed).

In MediaWiki-extensions-WikiLexicalData-or-OmegaWiki it is used, but not defined. But that extensions is fairly rotten

Pppery subscribed.

The relevant message was removed as part of T264980. Closing as obsolete.