Chad has uploaded a new change for review.
https://gerrit.wikimedia.org/r/101154
Change subject: Localize error page
......................................................................
Localize error page
Change-Id: Id8ac2cf5b0540380c0a3d9bebc65c6fd40f15ab3
---
M data/i18n/en.php
M data/templates/error.html
2 files changed, 7 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/wikimedia/wikimania-scholarships
refs/changes/54/101154/1
diff --git a/data/i18n/en.php b/data/i18n/en.php
index 93fbca0..bdbce29 100644
--- a/data/i18n/en.php
+++ b/data/i18n/en.php
@@ -159,4 +159,8 @@
'login' => "Log in",
'username' => "Username:",
'password' => "Password:",
+
+ 'error-heading' => "System error",
+ 'error-message' => "An unexpected error has occurred and we are working
to fix the problem. Please try again in a moment.",
+ 'error-id' => 'Error ID: $1',
);
diff --git a/data/templates/error.html b/data/templates/error.html
index d351471..66438b9 100644
--- a/data/templates/error.html
+++ b/data/templates/error.html
@@ -2,11 +2,10 @@
{% block content %}
{% spaceless %}
<div id="error">
- <h2>System error</h2>
- <p>An unexpected error has occurred and we are working to fix the
problem.</p>
- <p>Please try again in a moment.</p>
+ <h2>{{ wgLang.message( 'error-heading' ) }}</h2>
+ <p>{{ wgLang.message( 'error-message' ) }}</p>
{% if errorId|default(false) %}
- <p>Error ID: {{ errorId }}</p>
+ <p>{{ wgLang.message( 'error-message', array( errorId ) ) }}</p>
{% endif %}
</div>
{% endspaceless %}
--
To view, visit https://gerrit.wikimedia.org/r/101154
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id8ac2cf5b0540380c0a3d9bebc65c6fd40f15ab3
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/wikimania-scholarships
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits