Last modified: 2014-04-05 22:24:24 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)>.
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>).
[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' ); }
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?
(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.