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

Roger Dingledine arma at torproject.org
Wed Mar 3 22:58:16 UTC 2010


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):



More information about the tor-commits mailing list