Last modified: 2014-04-05 22:24:24 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T62570, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60570 - Allow "go" search feature to reach messages
Allow "go" search feature to reach messages
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
TwnMainPage (Other open bugs)
master
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-29 08:34 UTC by Nemo
Modified: 2014-04-05 22:24 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Nemo 2014-01-29 08:34:32 UTC
As a translator or interested MediaWiki user, if I already know the key of a message, I want to reach it with one click from the translatewiki.net main page, without special knowledge of the site's functioning being required.

----

Details follow if the issue is not clear enough for the reader.

Context: the new main page suppresses all the normal wiki elements, including the search bar. The new search, based on Special:SearchTranslations, doesn't search normal pages nor bring to pages with exact title matches (called "go" feature in monobook and internals, default for Vector's search). Two solutions come to my mind:
* restore the normal search bar on the main page (the new one is made visible enough by its huge size),
* make the new search work with exact title matches.

Workarounds used currently:
1) entering the page title directly in the location bar (requires knowledge of the wiki's structure and of the browser location bar's functioning),
2) entering the page title with interwiki prefix in the browser's search (requires a properly configured Firefox or other equally good browser and knowledge of the interwiki prefix),
3) reaching the actual search bar (Special:Search-based) by clicking one of the five links at the very bottom of the page, or the username link in the personal tools (requires knowledge of the wiki's structure and it's very slow).

Filed on behalf of Nnemo: <https://www.mediawiki.org/wiki/Thread:Template_talk:Extension/Link_to_translatewiki/reply_(10)>.
Comment 1 Nemo 2014-02-02 15:36:08 UTC
Before I forget again, a somehow similar messageid operator exists to search by message key (without language subpage), e.g. <https://translatewiki.net/w/i.php?title=Special%3ASearchTranslations&query=messageid%3A%22MediaWiki%3ATitlematches%22> (first revealed by Nikerabbit in <https://gerrit.wikimedia.org/r/#/c/94064/2/includes/specials/SpecialAllmessages.php>).
Comment 2 Helder 2014-02-03 16:12:02 UTC
[offtopic] Just in case someone else likes it, I use this a script like this to easily get from a WMF wiki to Translatewiki:

// Add a link to Translatewiki above the interface messages
if ( 8 === mw.config.get( 'wgNamespaceNumber' ) ) {
	mw.util.addPortletLink(
		'p-namespaces',
		'//translatewiki.net/wiki/' +
			mw.util.wikiUrlencode( mw.config.get( 'wgPageName' ) ) +
			'/' + mw.config.get( 'wgUserLanguage' ),
		'Translatewiki',
		'ca-trans',
		'See this message on Translatewiki.net'
	);
}
Comment 3 Siebrand Mazeland 2014-04-05 20:22:48 UTC
I'd like to discuss expected behaviour here. We have Special:Translations for a list of all translations of a key. For example https://translatewiki.net/wiki/Special:Translations/MediaWiki:Show.

You could search for "MediaWiki:Show" on the main page, or for "Show".

1. What would be expected behaviour, and
2. What would the algorithm look like that makes the decision?

Suggestion: I think the easier way would be a two click work flow. Similar to a "Did you mean". We can have Special:SearchTranslations do a check for keys that match the search term, and if it finds something, we could add a link to Special:Translations/<key> at the top of the search results.

How does that sound?
Comment 4 Nemo 2014-04-05 22:24:24 UTC
(In reply to Siebrand Mazeland from comment #3)
> How does that sound?

It sounds like a separate feature requests, unless Nnemo disagrees on my interpretation of his request. The "go" search feature only checks title match; optionally you could pick an appropriate langcode subpage.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links