aboutsummaryrefslogtreecommitdiffstats
path: root/_layouts/index.html
diff options
context:
space:
mode:
authorStefan Schüßler2013-04-05 10:36:22 +0200
committerJack Nagel2013-04-05 14:11:39 -0500
commit0583a470ece78ef8d975d0dbe3ecf6bd8217914f (patch)
tree171afa50de1a00488870c163e189a1560db2de9c /_layouts/index.html
parentcee6cfb14a452be5ac1522b185d73d1f67e7eb05 (diff)
downloadhomebrew-0583a470ece78ef8d975d0dbe3ecf6bd8217914f.tar.bz2
Fix for language codes and Spanish
http://www.w3.org/International/articles/language-tags/ "The golden rule when creating language tags is to keep the tag as short as possible. Avoid region, script or other subtags except where they add useful distinguishing information." Closes #18984. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to '_layouts/index.html')
-rw-r--r--_layouts/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/_layouts/index.html b/_layouts/index.html
index 96b74e36f..a7f328f8c 100644
--- a/_layouts/index.html
+++ b/_layouts/index.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{ page.lang }}" lang="{{ page.lang }}">
<head>
<title>{{ page.title }}</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
@@ -29,7 +29,7 @@
{% if page.lang == lang.langcode %}
{{ lang.lang_string }}
{% else %}
- <a href={% if lang.langcode == 'en' %}"index.html"{% else %}"index_{{ lang.langcode }}.html"{% endif %}>
+ <a href={% if lang.langcode == 'en' %}"index.html"{% else %}"index_{{ lang.langcode | downcase }}.html"{% endif %}>
{{ lang.lang_string }}
</a>
{% endif %}