[Blends-commit] [SCM] website branch, master, updated. 3a7b0cd4569159623982455ffe88e9c18ab22e3c

Andreas Tille tille at debian.org
Sat Aug 10 07:26:31 UTC 2013


The following commit has been merged in the master branch:
commit 3a7b0cd4569159623982455ffe88e9c18ab22e3c
Author: Andreas Tille <tille at debian.org>
Date:   Sat Aug 10 09:21:42 2013 +0200

    make sure 'en' comes first because the first language determines the default

diff --git a/webtools/blendslanguages.py b/webtools/blendslanguages.py
index 0ab674b..292b6ec 100644
--- a/webtools/blendslanguages.py
+++ b/webtools/blendslanguages.py
@@ -35,5 +35,11 @@ language_dict = { 'en'    : {'short':'en', 'htaccess':'en'   , 'title':'English'
                   'zh_TW' : {'short':'zh_tw', 'htaccess':'zh-TW', 'title':'Chinese (Taiwan)', 'printed':Markup('中文(正)')},
                 }
 # global languages
-languages = language_dict.keys()
-languages.sort()
+_languages = language_dict.keys()
+_languages.sort()
+# make sure 'en' comes first because the first language determines the default
+languages = ['en']
+for l in _languages:
+    if l == 'en':
+        continue
+    languages.append(l)

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list