Page MenuHomePhabricator

Parameter $1 of MediaWiki:Searchmenu-exists is replaced by wrong string
Closed, ResolvedPublic

Description

bug in the MediaWiki:Searchmenu-exists message

As shown in the attached image, when I searched for page "categoria:categorias sem classificação adicional" at pt.wikibooks the message shown was that from [[MediaWiki:Searchmenu-exists]]:

"Há uma página chamada "" nesta wiki"

but the parameter $1 was substituted by an empty string instead of the name of the page between quotes.

The problem only happens if I set the my preferences to pt-br (Português do Brasil).

(PS: I've disabled javascript to be sure it wasn't my fault)


Version: unspecified
Severity: normal
URL: http://pt.wikibooks.org/w/index.php?uselang=pt-br&title=Especial%3APesquisar&redirs=1&search=categoria%3Acategorias+sem+classifica%C3%A7%C3%A3o+adicional&fulltext=Search&ns0=1&ns1=1&ns2=1&ns3=1&ns4=1&ns5=1&ns6=1&ns7=1&ns8=1&ns9=1&ns10=1&ns11=1&ns12=1&ns13=1&ns14=1&ns15=1&ns90=1&ns91=1&ns92=1&ns93=1

Attached:

searchmenu-exists-bug.png (424×1 px, 63 KB)

Details

Reference
bz24989

Event Timeline

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

Another problem happens when the searched text has a # as the first character:
http://en.wikipedia.org/w/index.php?title=Special%3ASearch&search=%23mytest&fulltext=Search
results in
There is a page named "[[:]]" on Wikipedia

Link was missing initial : to force inline linking in the pt-br master copy; fixed on TranslateWiki:

http://translatewiki.net/w/i.php?title=MediaWiki:Searchmenu-exists/pt-br&diff=2695605&oldid=906725

It should update automatically after a while.

(Note the issue mentioned in second link probably remains an is a general issue, not related to that language translation.)

(In reply to comment #2)

Link was missing initial : to force inline linking in the pt-br master copy;
fixed on TranslateWiki:

http://translatewiki.net/w/i.php?title=MediaWiki:Searchmenu-exists/pt-br&diff=2695605&oldid=906725

It should update automatically after a while.

Thanks for fixing that. =D

(Note the issue mentioned in second link probably remains an is a general
issue, not related to that language translation.)

Should't the bug be open until that is also resolved? I just tried it on other wikis, and the same problem happens e.g.:
http://de.wikipedia.org/w/index.php?title=Special:Search&search=%23mytest&fulltext=Search&uselang=de
(which displays "Es gibt eine Seite, die den Namen „[[:]]“ hat.")
and
http://fr.wikipedia.org/w/index.php?title=Special%3ASearch&search=%23mytest&fulltext=Search&uselang=fr
(whose result is "La page [[:]] a été trouvée.")