Page MenuHomePhabricator

PLURAL not supported in UploadWizard upload phase
Open, Needs TriagePublic

Description

The message file-exists-duplicate, when used on the UploadWizard, is shown unparsed, like:

Questo file è un duplicato {{PLURAL:$1|del seguente|dei seguenti}} file:

The translation is correct: https://translatewiki.net/wiki/MediaWiki:File-exists-duplicate/it

Event Timeline

Nemo_bis created this task.Feb 5 2020, 8:59 PM
Restricted Application added subscribers: Liuxinyu970226, Aklapper. · View Herald TranscriptFeb 5 2020, 8:59 PM
Aklapper moved this task from Untriaged to Plural on the I18n board.

Yes, we usually file a separate report for each incorrectly used message. It's usually something silly like forgetting to load jqueryMsg https://www.mediawiki.org/wiki/Manual:Messages_API#Notes_about_gender,_grammar,_plural , although sometimes it's more complicated.

Yes, we usually file a separate report for each incorrectly used message.

I just said 'related'. I didn't imply anything else.

Same thing in English:

This file is a duplicate of the following {{PLURAL:$1|file|files}}:

This is odd, because deletion of https://commons.wikimedia.beta.wmflabs.org/wiki/MediaWiki:File-deleted-duplicate did resolve the problem for that message. The only obvious difference I see is that that message only includes a link and the message in this phab only includes a template. See also T246879.

As I noted in the duplicate bug, in the console, the following warning is thrown, which might be relevant:

VM96:90 mediawiki.jqueryMsg: file-exists-duplicate: Cannot read property 'hasAlreadyBeenUsedAsAReplacement' of undefined
Sdkb awarded a token.Mar 16 2020, 4:56 AM
Sdkb added a subscriber: Sdkb.