Page MenuHomePhabricator

Wrong displaying of Mediawiki:Nogomatch
Closed, ResolvedPublic

Description

Author: pablo

Description:
The English (default) text for Mediawiki:nogomatch is:

'''There is no page titled "$1".''' You can [[$1|create this page]].

That text is shown when putting some text in the search box and hitting the "Go"
button.

The software adds a leading ":" (it seems that is new behaviour, since bug
#3352); while that is correct for the link, it is incorrect for the plain text,
eg, it will display as:

There is no page titled ":Foo". You can create this page.

I think $1 should pass the searched string only, and add the ":" in the
translation, where it is needed only, eg:

'''There is no page titled "$1".''' You can [[:$1|create this page]].

(colon in the link, but not in the plain text).

Or either use two different parameters $1 $2, with and without the leading colon.


Version: 1.7.x
Severity: normal

Details

Reference
bz6059

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:19 PM
bzimport set Reference to bz6059.
bzimport added a subscriber: Unknown Object (MLST).

robchur wrote:

Addressed in SVN trunk, r14444 and r14445. The parameter $2 passed to
"nogomatch" will contain the search terms minus the : prefix, allowing for nicer
messages to be used.