Localisation updates from https://translatewiki.net.
Localisation updates from https://translatewiki.net.
Localisation updates from https://translatewiki.net.
Travis: only use Apache as web server

Workaround for build errors with PHP built-in web server since
30-Apr-2014 [1].

[1] https://github.com/travis-ci/travis-ci/issues/2235

Cherry-picked from master.
Conflicts:
	scripts/travis_before_script.sh
Travis before_script add DB_TYPE

Since PHP >= 5.5 has deprecated mysql driver, we use mysqli instead
Travis before script: use PORT variable (align with master)
Document ability to display status on bug_report_page.php

Fix for issue #14678 omitted to amend the comment block in
config_defaults_inc.php as well as the documentation.

Fixes #17289
Localisation updates from https://translatewiki.net.
Localisation updates from https://translatewiki.net.
bug_report.php: fix warning when not using attachments

When attachments are not used, 'ufile' is not defined, so $t_files
becomes NULL (line 150) causing the 'Invalid argument supplied for
foreach' warning.

Fixes #17322
Whitespace
Fix #17324: remove var_dump()
Issue #17322: apply same logic in bug_file_add.php
Remove use of deprecated pattern modifier in string_insert_hrefs()

string_insert_hrefs() relied on PREG_REPLACE_EVAL ('e') pattern modifier
for preg_replace() to apply rtrim() function to subpatterns.

In PHP 5.5, this feature has been deprecated for security reasons [1] so
we rely on preg_replace_callback() instead.

Fixes #17292

Backporting the fix from master branch, replacing the closure with an
anonymous function for compatibility with PHP < 5.3.

[1] http://php.net/reference.pcre.pattern.modifiers.php#reference.pcre.pattern.modifiers.eval
Travis: use port 8080 instead of 80

Fixes build errors with PHP built-in web server. By using port 8080, we
no longer need to use sudo since it's only needed for port 80.

This a backport from master branch, and includes the revert of commit
9315a7398328125578efdd189a443bb11313968a.
Travis: delay before creating db with pgsql

We occasionally get build errors with pgsql when creating the database

psql: could not connect to server: No such file or directory
	Is the server running locally and accepting
	connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

Adding a short delay before calling psql should hopefully reduce the
frequency of these errors.
Allow update of existing project document

Prior to this, it was impossible to update a document's title or
description without uploading a new file, as MantisBT would trigger an
error.

Fixes #17405
Add error param when updating project doc with empty title

Added missing error_parameter() call so that when attempting to update
an existing project document with an empty Title, the error message
indicates which field is required.

Fixes #17407
Remove extract() call on untrusted input

As per recommendation in PHP manual http://php.net/extract, drop use of
extract() on input from $_FILE superglobal.
Filter API: add missing table prefix

When building the where clause for free-text search, the filter API did
not prefix the 'summary' column with the table name.

Fixes #17457