Convert -{}- markups in title="" and alt="".

convertTo() is used to replace translate() currently in use to
do conversion for some attributes of HTML tags.

Change-Id: Iee3ec2913787f15616abe6cf8880b59a883c82a0
(bug 16020) Fix race condition in User::addToDatabase()

Fix the DB error which comes from User::addToDatabase() if it is called
when the user already exists. This is the most common DB error we log at
WMF in normal operation, perhaps because of double clicks on the "create
account" button, or perhaps due to CentralAuth autocreation when
multiple pages on another wiki are opened in the browser simultaneously,
as the bug reporter suggests.

See the doc comment for the interface rationale. Patched
Special:Userlogin to be aware of the new return value. Most extension
callers will continue to work, I will patch a couple that need it in
subsequent commits.

Change-Id: I1f6ef5e6319bfe692fb82a3fa50dc66c9fde8f15
Fix creation of pages in the MediaWiki namespace.

Creation of pages in the MediaWiki namespace failed with a "no such section"
error if the corresponding system message did not exist. Fixed now.

Change-Id: Ia6e879c66a6330ea2a63246b3aed51c9c6e1d49d
Display converted namespace names in Html::namespaceSelector().

By the way, the code to get converted titles and namespaces
has been cleaned up.

Change-Id: Ifcbd56c989d83b9d32dfa99e0b2f06d01e17a2bd
Stop expanding search term in <title> of the search results page

When entering a search term such as {{SITENAME}} on Special:Search,
the <title> was generated with template expansion.

This patch prevents transformation by using search term as rawParams
of the 'searchresults-title' and 'pagetitle' messages.

Change-Id: Ief0bdd10ad882ebfaeefd11bf4217e70dd922d9d
Merge "Convert -{}- markups in title="" and alt=""."
Fix test SpecialSearchTest.testSearchTermIsNotExpanded

Ief0bdd10 / 9299bab "Stop expanding search term in <title> of the search
results page" had an issue comparing the site title that could be in
different language.  I have converted the assertion to make sur we
always have the plain search term (aka: {{SITENAME}}) which will work
regardless of the language currently set.

Change-Id: Idbb778174978c17a75fa7671d4967851c2732c15
Add three tests for categories mixed with templates.

Apparently we didn't catch a regression in this area, so I've added
a set of tests to make sure we don't miss it again.

Change-Id: I3c4bfa15ce1182a6a697fb70e74489e06e1d9969
Fix the jqueryMsg tests for plural rule parsing

mediawiki.language.data was not retrieved from server corresponding to language
changes

mediawiki.language.convertPlural depends on currentUI language from
mw.config.get( 'wgUserLanguage' ). Set that for each parser test and
restore it at teardown of QUnit.

Change-Id: I5b81cd8573311d1c0d8817e430108f4ad76de6bd
Merge "(bug 16020) Fix race condition in User::addToDatabase()"
Avoid thumb.php fatal for bad titles on private wikis.

Change-Id: Id2c19d888989fdbaad6412aa9eb62bb22a75f241
Localisation updates from http://translatewiki.net.

Change-Id: Iaab523e4848ae6eebcfd016511802678b2eb199b
Avoid fatals for bad filenames given for chunk uploads.

Change-Id: I904a801ecbf9eabd9156d70a42d46323455507bd
Tidy up InfoAction and note it's hook in docs/hooks.txt

Also add $context parameter to the hook and (bug 40845) don't
overwrite pageInfo's $title parameter.

Change-Id: I41128abb72553142b45e90befabde541b2d8941f
(bug 40899) Cache resources for anonymous users

Changes mTouched for anonymous users to '1' because '0' is treated as 'now' by wfTimestamp()

Change-Id: If0d77f72dc776c4709a1e5da360fbd6273178b29
Show redirects correctly on diff pages.

Change-Id: Ic3c2d6cff016a8fecdde511e2d14b30426737c8a
Merge "Fix creation of pages in the MediaWiki namespace."
Merge "Tidy up InfoAction and note it's hook in docs/hooks.txt"
(bug 35378) Support multiple collations at the same time

Change-Id: Iec99060e3ac89cb56fe2d8a2a66003e9de879957