Page MenuHomePhabricator

404, 503 error pages should be localised
Open, LowPublic

Description

Author: le.korrigan

Description:
Currently, when someone types an invalid URL such as http://fr.wikipedia.org/Navire (omitting the "wiki/"), one gets a 404 error written in English. Maybe those error messages could be internationalised in the software ?

Moreover, it points on the website download.wikimedia.org for some reason, but I can't see why this is appropriate (maybe some local help page would be better ?)

Thanks.


See Also:

Details

Reference
bz12302

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:01 PM
bzimport set Reference to bz12302.
bzimport added a subscriber: Unknown Object (MLST).
bzimport created this task.Dec 14 2007, 3:40 PM
  • Bug 9214 has been marked as a duplicate of this bug. ***

This message doesn't come from Mediawiki.

brion added a comment.Mar 30 2009, 9:59 PM

Adding a block on bug 17316 to remind us we'd want to be able to localize the new 404 error page.

The new error message should be editable on the wiki, with a message similar to this:

<h1>Error</h1>
<h2>404 – File not found</h2>
<p style="font-style: italic;">{{SERVER}}/$1</p>
<p>We could not find the above page on our servers.</p>
{{#ifexist:$1|
<p style="font-weight: bold;">To check for "$1" on {{SITENAME}}, see: [[$1]]</p>

<p style="font-weight: bold;">To search for "$1" on {{SITENAME}}, see: [[Special:Search/$1]]</p> }}

<p>Alternatively, you can visit the [[{{MediaWiki:Mainpage}}]] or read [[HTTP 404|more information]] about this type of error.</p>

<p style="font-size: smaller;">A project of the [[foundation:|Wikimedia Foundation]]</p>
</div>

Everything but the {{#ifexist: could be parsed by an extension and saved to just replace all $1 in the static text on but when it is added, I suspect that users will start trying to add parserfunctions there, and sending people to another inexistant page is a bit ugly.

  • Bug 15926 has been marked as a duplicate of this bug. ***
Liuxinyu970226 edited subscribers, added: Aklapper; removed: wikibugs-l-list.

Should we do samething for 503 error?

Nemo_bis renamed this task from 404 error should be localised to 404, 503 error pages should be localised.Jun 21 2017, 7:35 AM
Nemo_bis updated the task description. (Show Details)
Elitre added a subscriber: Elitre.Oct 27 2017, 10:45 AM

As an interim measure, would it be good first task enough to add a few extra languages, similar to what was done for https://en.wikipedia.org/test-sec-warning in T172418: Get translations for "IE8 on XP won't work" ?

Krinkle updated the task description. (Show Details)May 1 2018, 12:42 AM
JJMC89 added a subscriber: Krinkle.

What about error 403? https://en.wikipedia.org/.htaccess https://fr.wikipedia.org/.htaccess https://jbo.wikipedia.org/.htaccess It appears that there isn't a custom 403 page, just the Apache default, which is always English and isn't localized.

Elitre added a comment.Oct 8 2018, 9:30 AM

As an interim measure, would it be good first task enough to add a few extra languages, similar to what was done for https://en.wikipedia.org/test-sec-warning in T172418: Get translations for "IE8 on XP won't work" ?

bumping this question.