[Blends-commit] r1972 - blends/trunk/webtools

Debian Pure Blends Subversion Commit noreply at alioth.debian.org
Fri Nov 6 20:49:53 UTC 2009


Author: tille
Date: Fri Nov  6 20:49:53 2009
New Revision: 1972
URL: http://svn.debian.org/viewsvn/blends?rev=1972&view=rev

Log:
Split zh into zh_TW and zh_CN


Modified:
   blends/trunk/webtools/tasks.py

Modified: blends/trunk/webtools/tasks.py
URL: http://svn.debian.org/viewsvn/blends/blends/trunk/webtools/tasks.py?rev=1972&view=diff&r1=1972&r2=1971&p1=blends/trunk/webtools/tasks.py&p2=blends/trunk/webtools/tasks.py
==============================================================================
--- blends/trunk/webtools/tasks.py	(original)
+++ blends/trunk/webtools/tasks.py	Fri Nov  6 20:49:53 2009
@@ -39,7 +39,8 @@
                   '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)')},
-                  'zh_CN' : {'short':'zh', 'htaccess':'zh-CN', 'title':'Chinese (China)', 'printed':Markup('中文(简)')},
+                  '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('中文(简)')},
                 }
 languages = language_dict.keys()
 languages.sort()
@@ -299,11 +300,11 @@
 		print >> f, template.generate(**data).render('xhtml')
 	except UnicodeDecodeError, errtxt:
 		print >> stderr, \
-		    "Some critical encoding problem occured when trying to render index for lang %s.\n%s" \
+		    "Some critical encoding problem occured when trying to render long package list for lang %s.\n%s" \
 		    % (lang, errtxt)
 	except UndefinedError, errtxt:
 		print >> stderr, \
-		    "UndefinedError while trying to render index for lang %s.\n%s" \
+		    "UndefinedError while trying to render long package list for lang %s.\n%s" \
 		    % (lang, errtxt)
 		
 	f.close()



More information about the Blends-commit mailing list