aboutsummaryrefslogtreecommitdiff
path: root/templates/base.html
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2019-11-06 14:53:47 +0800
committerStephen Finucane <stephen@that.guru>2019-11-30 15:21:59 +0000
commitac79e1f882097c32fa3b11598bda5bc6f36ced9f (patch)
treea0c6534bb241d79f5556d3afbbed9d30d860e576 /templates/base.html
parent8c229caa71d58e971708ac7ebdb02d6858cd2a4c (diff)
downloadpatchwork-ac79e1f882097c32fa3b11598bda5bc6f36ced9f.tar
patchwork-ac79e1f882097c32fa3b11598bda5bc6f36ced9f.tar.gz
Disable i18n machinery, use correct locale
Two issues here. Firstly, the use of the 'USE_I18N'. The Django docs describe this as such: A boolean that specifies whether Django’s translation system should be enabled. This provides an easy way to turn it off, for performance. If this is set to False, Django will make some optimizations so as not to load the translation machinery. We don't do translations and won't until such a time as someone comes asking for them. Optimize things accordingly by setting 'USE_I18N' to False and removing the now-unnecessary 'LANGUAGE_CODE' setting. Secondly, the use of en-AU is a bit of a lie since our UI is actually written in US English (or should be). The primary reason for a lang tag to be present is to assist screenreaders and other accessibility tools, so make their lives easier by reflecting the truth. Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/base.html b/templates/base.html
index 40b6cda..27db7f5 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -1,6 +1,6 @@
{% load static %}
<!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en-AU">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>{% block title %}Patchwork{% endblock %} - Patchwork</title>