Page MenuHomeMiraheze

Create new 'ErrorPages' repository for 404.php and MissingWiki.php to be localised
Open, NormalPublic

Description

We should create a new repository for our error pages, MissingWiki.php and 404.php.

This would allow localisation of them similarly to how we localise the landing page.

Assigning to myself as I will do the work to create the repository, and move them over, and then localise them, as long as there are no objections to doing this.

Alternatively we could simply move them to landing, but that isn't ideal because they wouldn't exactly fit in there. The best option, in my opinion is a new repository.

Event Timeline

Universal_Omega created this task.

@Universal_Omega I actually thought of something - if these are missing wiki notices how could they display a user's language? Or were you thinking of a dropdown?

@Universal_Omega I actually thought of something - if these are missing wiki notices how could they display a user's language? Or were you thinking of a dropdown?

Same way the landing page is done.

I think that this will work to detect the client language from the browser:

Locale::acceptFromHttp( $_SERVER['HTTP_ACCEPT_LANGUAGE'] );

I'm not 100% sure, but it should work. A dropdown is an option but maybe not the best just for error pages.