[Blends-commit] [SCM] website branch, master, updated. 27d6ed75782ab671f02caf17e57b959550b918a2
Akshita Jha
akshita-guest at users.alioth.debian.org
Mon Jul 27 15:21:39 UTC 2015
The following commit has been merged in the master branch:
commit 27d6ed75782ab671f02caf17e57b959550b918a2
Author: Akshita Jha <akshita-guest at users.alioth.debian.org>
Date: Mon Jul 27 20:51:18 2015 +0530
Modify blendslanguages.py : Make blendslanguages.py pep8 complaint
diff --git a/webtools_py3/blendslanguages.py b/webtools_py3/blendslanguages.py
index 2dfac0f..be03aa9 100644
--- a/webtools_py3/blendslanguages.py
+++ b/webtools_py3/blendslanguages.py
@@ -6,34 +6,64 @@
from genshi import Markup
-# The keys of the following dictionary are used to address the translation files of DDTP
+# The keys of the following dictionary are used to
+# address the translation files of DDTP
# The values contain dictionaries in turn with the following meaning:
# 'short' = shortcut of language as extension of the output files
# 'htaccess' = language definition in htaccess
# 'title' = English name of the language used in title attribut of link
# 'printed' = printed name for links
-language_dict = { 'en' : {'short':'en', 'htaccess':'en' , 'title':'English', 'printed':Markup('English')},
- 'cs' : {'short':'cs', 'htaccess':'cs' , 'title':'Czech', 'printed':Markup('česky')},
- 'da' : {'short':'da', 'htaccess':'da' , 'title':'Danish' , 'printed':Markup('dansk')},
- 'de' : {'short':'de', 'htaccess':'de' , 'title':'German', 'printed':Markup('Deutsch')},
- 'es' : {'short':'es', 'htaccess':'es' , 'title':'Spanish', 'printed':Markup('español')},
- 'fi' : {'short':'fi', 'htaccess':'fi' , 'title':'Finnish', 'printed':Markup('suomi')},
- 'fr' : {'short':'fr', 'htaccess':'fr' , 'title':'French', 'printed':Markup('français')},
- 'hu' : {'short':'hu', 'htaccess':'hu' , 'title':'Hungarian', 'printed':Markup('magyar')},
- 'it' : {'short':'it', 'htaccess':'it' , 'title':'Italian', 'printed':Markup('Italiano')},
- 'ja' : {'short':'ja', 'htaccess':'ja' , 'title':'Japanese', 'printed':Markup('日本語 (Nihongo)')},
- 'ko' : {'short':'ko', 'htaccess':'ko' , 'title':'Korean', 'printed':Markup('한국어 (Hangul)')},
- 'nl' : {'short':'nl', 'htaccess':'nl' , 'title':'Dutch', 'printed':Markup('Nederlands')},
- 'pl' : {'short':'pl', 'htaccess':'pl' , 'title':'Polish', 'printed':Markup('polski')},
- 'pt_BR' : {'short':'pt', 'htaccess':'pt-BR', 'title':'Portuguese', 'printed':Markup('Português')},
- 'ru' : {'short':'ru', 'htaccess':'ru' , 'title':'Russian', 'printed':Markup('Русский (Russkij)')},
- 'uk' : {'short':'uk', 'htaccess':'uk' , 'title':'Ukrainian', 'printed':Markup("українська (ukrajins'ka)")},
- 'sk' : {'short':'sk', 'htaccess':'sk' , 'title':'Slovenian', 'printed':Markup('slovensky')},
- 'sr' : {'short':'sr', 'htaccess':'sr' , 'title':'Serbian', 'printed':Markup('српски(srpski)')},
- 'sv' : {'short':'sv', 'htaccess':'sv' , 'title':'Swedish', 'printed':Markup('svenska')},
- 'zh_CN' : {'short':'zh_cn', 'htaccess':'zh-CN', 'title':'Chinese (China)', 'printed':Markup('中文(简)')},
- 'zh_TW' : {'short':'zh_tw', 'htaccess':'zh-TW', 'title':'Chinese (Taiwan)', 'printed':Markup('中文(正)')},
- }
+language_dict = {'en': {'short': 'en', 'htaccess': 'en', 'title': 'English',
+ 'printed': Markup('English')},
+ 'cs': {'short': 'cs', 'htaccess': 'cs', 'title': 'Czech',
+ 'printed': Markup('česky')},
+ 'da': {'short': 'da', 'htaccess': 'da', 'title': 'Danish',
+ 'printed': Markup('dansk')},
+ 'de': {'short': 'de', 'htaccess': 'de', 'title': 'German',
+ 'printed': Markup('Deutsch')},
+ 'es': {'short': 'es', 'htaccess': 'es', 'title': 'Spanish',
+ 'printed': Markup('español')},
+ 'fi': {'short': 'fi', 'htaccess': 'fi', 'title': 'Finnish',
+ 'printed': Markup('suomi')},
+ 'fr': {'short': 'fr', 'htaccess': 'fr', 'title': 'French',
+ 'printed': Markup('français')},
+ 'hu': {'short': 'hu', 'htaccess': 'hu', 'title': 'Hungarian',
+ 'printed': Markup('magyar')},
+ 'it': {'short': 'it', 'htaccess': 'it', 'title': 'Italian',
+ 'printed': Markup('Italiano')},
+ 'ja': {'short': 'ja', 'htaccess': 'ja', 'title': 'Japanese',
+ 'printed': Markup('日本語\
+ (Nihongo)')},
+ 'ko': {'short': 'ko', 'htaccess': 'ko', 'title': 'Korean',
+ 'printed': Markup('한국어\
+ (Hangul)')},
+ 'nl': {'short': 'nl', 'htaccess': 'nl', 'title': 'Dutch',
+ 'printed': Markup('Nederlands')},
+ 'pl': {'short': 'pl', 'htaccess': 'pl', 'title': 'Polish',
+ 'printed': Markup('polski')},
+ 'pt_BR': {'short': 'pt', 'htaccess': 'pt-BR',
+ 'title': 'Portuguese',
+ 'printed': Markup('Português')},
+ 'ru': {'short': 'ru', 'htaccess': 'ru', 'title': 'Russian',
+ 'printed': Markup('Русск\
+ ий (Russkij)')},
+ 'uk': {'short': 'uk', 'htaccess': 'uk', 'title': 'Ukrainian',
+ 'printed': Markup("украї\
+ нська\
+ (ukrajins'ka)")},
+ 'sk': {'short': 'sk', 'htaccess': 'sk', 'title': 'Slovenian',
+ 'printed': Markup('slovensky')},
+ 'sr': {'short': 'sr', 'htaccess': 'sr', 'title': 'Serbian',
+ 'printed': Markup('српск\
+ и(srpski)')},
+ 'sv': {'short': 'sv', 'htaccess': 'sv', 'title': 'Swedish',
+ 'printed': Markup('svenska')},
+ 'zh_CN': {'short': 'zh_cn', 'htaccess': 'zh-CN',
+ 'title': 'Chinese (China)',
+ 'printed': Markup('中文(简)')},
+ 'zh_TW': {'short': 'zh_tw', 'htaccess': 'zh-TW',
+ 'title': 'Chinese (Taiwan)',
+ 'printed': Markup('中文(正)')}, }
# global languages
_languages = list(language_dict.keys())
_languages.sort()
--
Static and dynamic websites for Debian Pure Blends
More information about the Blends-commit
mailing list