[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r21792: {check} make the set of languages more maintainable. no idea if this (check/trunk/cgi-bin)



Author: arma
Date: 2010-03-03 22:58:16 +0000 (Wed, 03 Mar 2010)
New Revision: 21792

Modified:
   check/trunk/cgi-bin/TorCheck.py
Log:
make the set of languages more maintainable. no idea if this
will be valid python code; somebody should fix it.


Modified: check/trunk/cgi-bin/TorCheck.py
===================================================================
--- check/trunk/cgi-bin/TorCheck.py	2010-03-03 22:43:19 UTC (rev 21791)
+++ check/trunk/cgi-bin/TorCheck.py	2010-03-03 22:58:16 UTC (rev 21792)
@@ -82,10 +82,18 @@
         return 0
 
 def getLocales():
-    locale_descriptions = { 'en_US' : 'English', 'de' : 'Deutsch', 'es' :
-    'espaÃol', 'fa_IR' : 'fa_IR', 'fr' : 'franÃais', 'ja' : '(Nihogo)', 'it_IT' : 'Italiano', 
-    'pt_BR' : 'PortuguÃs', 'pl': 'polski', 'ru': 'ÐÑÑÑÐÐÐ (Russkij)', 
-    'zh_CN' :'(Simplified Chinese)' }
+    locale_descriptions = {
+    'de' : 'Deutsch',
+    'en_US' : 'English',
+    'es' : 'espaÃol',
+    'fa_IR' : 'fa_IR',
+    'fr' : 'franÃais',
+    'it_IT' : 'Italiano',
+    'ja' : '(Nihogo)',
+    'pl' : 'polski',
+    'pt_BR' : 'PortuguÃs',
+    'ru' : 'ÐÑÑÑÐÐÐ (Russkij)',
+    'zh_CN' : '(Simplified Chinese)' }
     return locale_descriptions
 
 def getLocaleName(lang):