wiki.techinc.nl/includes
Federico Leva fa5576bee5 Add direct links to translation interface on Special:AllMessages
The local Special:AllMessages page is the first and most friendly place
where average users will look for the message and try to translate it:
when they find it, add a link to translatewiki.net so that they can start
translating without searching for it from scratch.

Special:SearchTranslations is the only target usable for this: the solr
search is smart enough to present the most relevant results first and the
translation interface is directly available in place.
On the bright side, similar messages popping up from other projects or areas
of the code will provide suggestions and help find other occurrences of
translations which can similarly be improved.

More specifically, we are using a combined language, key and text search:
* the English text is the only thing guaranteed to exist, if the message is
  available, though quoting it can give some false negatives and not quoting
  it would give it too much weight if it's long;
* the key can be used thanks to the feature revealed by Niklas Laxström in
  comments to this patch: it is simpler to handle but allows only exact matches
  and can be wrong if TWN adds a prefix for the extension, so it can't be used
  alone, but in the best case it's what we're looking for;
* the language makes sense in combination with the key match.
We boost key and language to get the current translation of the message where
possible; if it's not, the first result will usually be English text.
https://wiki.apache.org/solr/SolrQuerySyntax
https://lucene.apache.org/core/2_9_4/queryparsersyntax.html

From the initial search, the user can further refine its search and navigate
the interface to find the message(s) and editor where to add or edit the
translation.

Change-Id: I8de3faba829c50cdc0f2d09726f738c585792e00
2014-01-25 04:24:27 +00:00
..
actions Avoid expensive backlink counts for info action in miser mode 2014-01-16 12:39:33 -08:00
api Add Title::hasFragment and use it 2014-01-24 15:42:13 +00:00
cache Revert "Include short descriptions for extensions bundled in the release" 2014-01-12 23:59:44 +00:00
changes Merge "Changes list legend modules cleanup" 2014-01-24 00:55:23 +00:00
clientpool Improve redis connection error log 2013-12-15 20:07:23 +01:00
content Move redirect rendering into WikitextContent 2014-01-07 09:18:22 -05:00
context Fix typo in DerivativeContext doc 2013-12-25 22:56:49 -08:00
dao Remove underscore from classes LBFactory_*, LoadBalancer_*, LoadMonitor_* 2013-12-26 16:30:15 -05:00
db Merge "Provide correct type as input for LoadMonitor::postConnectionBackoff()" 2014-01-22 22:06:12 +00:00
debug Replace deprecated <tt> with <code> 2013-11-20 17:21:31 +01:00
deferred Make imagelinks work like templatelinks 2014-01-07 23:13:43 +00:00
diff Move redirect rendering into WikitextContent 2014-01-07 09:18:22 -05:00
externalstore ExternalStoreDB: update for PHP 5 2013-12-03 14:52:44 +11:00
filebackend Removed expiremental LSLockManager class 2014-01-17 15:16:01 -08:00
filerepo Extend FileRepo::findFile private option to accept a User object 2014-01-17 11:43:22 -05:00
gallery Update type hints in TraditionalImageGallery 2013-12-02 11:55:27 +01:00
htmlform Add mediawiki.ui.button to places in core using mw.ui 2013-12-18 20:23:17 -05:00
installer Replace <i> and <b> by <em> and <strong> in i18n 2014-01-24 21:59:00 +01:00
interwiki Updates for Interwiki.php 2013-12-02 12:00:01 +01:00
job Fix comment on JobQueue::push 2014-01-24 20:26:43 +01:00
json Update formatting and comments in FormatJson 2013-11-25 18:46:25 +01:00
libs SECURITY: Disallow stylesheets in svg 2014-01-14 02:00:12 +01:00
logging Merge "Return void for LogPager::limitPerformer and limitTitle" 2014-01-02 17:55:23 +00:00
media Improved vague/incomplete $1 thumb.php error messages 2014-01-17 18:20:17 -08:00
normal Generate Utf8Case.ser directly from UnicodeData.txt 2014-01-06 18:22:24 -05:00
objectcache Remove FakeMemCachedClient 2014-01-22 17:17:18 +00:00
parser Add Title::hasFragment and use it 2014-01-24 15:42:13 +00:00
profiler Add ProfilerMwprof 2014-01-07 13:03:11 -08:00
rcfeed rcfeed: Use wfWikiID() instead of $wgDBname 2014-01-10 17:52:25 -08:00
resourceloader Remove preference "Show table of contents (for pages with more ...)" 2014-01-24 12:59:44 -08:00
revisiondelete Avoid calling protected File field 2013-12-12 10:25:12 -08:00
search Merge "Begin abstracting more of the database-specific search backend out" 2014-01-23 23:39:34 +00:00
site Reduce complexity of SiteSQLStore saveSites method 2013-09-18 22:31:40 +02:00
specialpage Merge "ChangesListSpecialPage and subclasses: Reorder functions" 2014-01-24 00:56:12 +00:00
specials Add direct links to translation interface on Special:AllMessages 2014-01-25 04:24:27 +00:00
templates Merge "Restore Signupstart and Signupend messages for account creation" 2013-12-06 22:57:08 +00:00
upload SECURITY: Return error on invalid XML for SVGs 2014-01-13 22:15:27 -08:00
utils Create and move some functions for class ArrayUtils 2014-01-23 22:13:22 +00:00
.htaccess
Action.php Fixed spacing 2013-11-19 19:03:54 +01:00
AjaxDispatcher.php
AjaxResponse.php Removed 'Disable browser page caching" user preference 2013-12-07 14:02:44 +05:30
Article.php Add Title::hasFragment and use it 2014-01-24 15:42:13 +00:00
AuthPlugin.php Update docs and declare visibility on class props 2013-11-01 12:35:27 +01:00
AutoLoader.php Merge "Create ChangesListSpecialPage as a base class for Watchlist and RC" 2014-01-24 00:51:07 +00:00
Autopromote.php
Block.php Remove methods in Block deprecated in 1.18 2014-01-11 20:32:24 +01:00
CacheHelper.php
Category.php
Categoryfinder.php
CategoryPage.php
CategoryViewer.php Remove classes and functions deprecated in MediaWiki 1.17 2014-01-05 18:54:27 +01:00
ChangesFeed.php
ChangeTags.php Show minor edits and tags in Special:Undelete 2013-11-27 12:50:52 -05:00
Collation.php Create and move some functions for class ArrayUtils 2014-01-23 22:13:22 +00:00
Cookie.php Fixed spacing 2013-12-01 20:58:51 +01:00
DefaultSettings.php Remove preference "Show table of contents (for pages with more ...)" 2014-01-24 12:59:44 -08:00
Defines.php Remove DBABagOStuff 2014-01-16 11:43:59 -08:00
DeprecatedGlobal.php Kill $wgArticle 2013-11-01 14:17:26 -07:00
EditPage.php Merge "Add validation of the content model edited by EditPage" 2014-01-09 15:02:08 +00:00
Exception.php MWException doesn't care about $wgTitle anymore 2014-01-02 12:00:45 -08:00
Export.php Change Title::getInterwiki() in conditions to Title::isExternal() 2014-01-02 11:59:10 +01:00
FakeTitle.php Add Title::hasFragment and use it 2014-01-24 15:42:13 +00:00
Fallback.php
Feed.php
FeedUtils.php
FileDeleteForm.php
ForkController.php Make it easy to get the number of the currently running child 2014-01-08 14:18:28 -08:00
FormOptions.php FormOptions: Implement FLOAT type 2013-11-07 23:50:59 +01:00
GitInfo.php Fixed spacing 2013-12-01 20:58:51 +01:00
GlobalFunctions.php Remove some deprecated global functions 2014-01-23 01:38:27 +01:00
HistoryBlob.php HistoryBlobCurStub: correct setting name in doc comment 2013-10-27 01:10:12 -04:00
Hooks.php Add ability to mark hooks as deprecated 2014-01-10 09:12:26 +01:00
Html.php Fixed spacing 2013-12-01 20:58:51 +01:00
HtmlFormatter.php Move closing parenthesis from multi line if and function to own line 2013-12-01 21:39:00 +01:00
HttpFunctions.php Fixed spacing 2013-12-15 20:56:09 +01:00
ImagePage.php Move redirect rendering into WikitextContent 2014-01-07 09:18:22 -05:00
ImageQueryPage.php
Import.php Change Title::getInterwiki() in conditions to Title::isExternal() 2014-01-02 11:59:10 +01:00
Init.php Rename wfIsHipHop() to wfIsHHVM() 2013-10-29 15:36:10 -07:00
Licenses.php
limit.sh Improve logging for wfShellExec() and ignore missing cgroup 2013-10-28 21:14:09 +00:00
Linker.php More use of Title::hasFragment 2014-01-24 22:22:45 +01:00
LinkFilter.php Fixed spacing 2013-12-01 20:58:51 +01:00
MagicWord.php Raw option of parser functions should match complete word 2014-01-12 22:25:33 +00:00
Message.php Add logging for "Invalid message parameter" 2013-12-21 11:42:05 +00:00
MessageBlobStore.php Remove TODO for use of TRUNCATE and replace with comment 2014-01-22 21:17:05 +01:00
mime.info
mime.types
MimeMagic.php Clean up MimeMagic singleton handling 2013-11-22 16:49:32 -08:00
Namespace.php Improve UI for page protection with $wgNamespaceProtection 2013-12-03 22:27:28 +00:00
OutputHandler.php
OutputPage.php Fix to avoid IE "compatibility view" 2013-12-23 21:41:58 +00:00
PageQueryPage.php Show correct link color on cached result of Special:DeadendPages 2013-11-16 21:27:54 +01:00
Pager.php Update documentation related to newFromRow and formatRow 2013-12-27 13:56:52 +01:00
PathRouter.php
PHPVersionError.php More 1.22 -> 1.23 2013-10-31 11:17:07 +01:00
PoolCounter.php
Preferences.php Remove preference "Show table of contents (for pages with more ...)" 2014-01-24 12:59:44 -08:00
PrefixSearch.php Change Title::getInterwiki() in conditions to Title::isExternal() 2014-01-02 11:59:10 +01:00
ProtectionForm.php Improve UI for page protection with $wgNamespaceProtection 2013-12-03 22:27:28 +00:00
QueryPage.php Update documentation for QueryPage::execute() 2013-12-27 17:57:19 +01:00
Revision.php Update docs for Revision::getRevisionText() 2014-01-01 15:32:48 +00:00
RevisionList.php
Sanitizer.php SECURITY: Disallow -o-link in styles 2014-01-13 22:12:28 -08:00
Setup.php Move BitmapHandler::canRotate() call out of Setup.php 2013-12-21 21:44:30 -08:00
SiteConfiguration.php
SiteStats.php Move the DeferredUpdates hierarchy to its own directory 2013-11-04 10:32:40 +11:00
Skin.php Add support for skins to set attributes of <html> element. 2013-12-18 10:43:11 -08:00
SkinTemplate.php Remove deprecated methods from Revision, SkinTemplate, and WikiPage 2013-12-27 19:44:14 +01:00
SquidPurgeClient.php
StatCounter.php Make the format of UDP-logged stats configurable 2013-10-04 22:52:02 -07:00
Status.php Status::getHTML should actually return HTML 2013-12-09 12:14:06 -05:00
StreamFile.php Move closing parenthesis from multi line if and function to own line 2013-12-01 21:39:00 +01:00
StubObject.php
tidy.conf
Timestamp.php Handle Swift JSON listings with unqualified timestamps 2013-11-06 17:12:41 -08:00
Title.php Merge "Little change of readability in Title::secureAndSplit" 2014-01-25 00:41:54 +00:00
TitleArray.php Make (Title|User)Array implements Countable 2013-12-12 09:19:19 +00:00
User.php User::saveOptions() optimization 2014-01-24 11:09:11 -08:00
UserArray.php UserArray: Avoid * and double keys in select 2013-12-14 14:51:42 +00:00
UserMailer.php Deprecate $wgPasswordSenderName 2014-01-01 08:27:59 -06:00
UserRightsProxy.php
WatchedItem.php Do not load special pages in WatchedItem::load 2014-01-12 16:33:56 +00:00
WebRequest.php Merge "Remove classes and functions deprecated in MediaWiki 1.17" 2014-01-09 21:11:51 +00:00
WebResponse.php
WebStart.php Remove remaining calls to MWInit methods 2013-09-15 19:04:08 +00:00
Wiki.php Remove deprecated MediaWiki::articleFromTitle() and WikiPage::createUpdates() 2014-01-22 18:28:36 +01:00
WikiCategoryPage.php
WikiFilePage.php No variable assignment on return statement 2014-01-02 09:43:35 +00:00
WikiMap.php
WikiPage.php Remove deprecated MediaWiki::articleFromTitle() and WikiPage::createUpdates() 2014-01-22 18:28:36 +01:00
Xml.php Fixed spacing 2013-12-01 20:58:51 +01:00
ZhConversion.php Updated location of zhtable in comment 2013-12-19 18:53:44 +00:00