[Cdd-commits] r684 - cdd/trunk/webtools

CDD Subversion Commit noreply at alioth.debian.org
Mon Apr 7 16:42:28 UTC 2008


Author: js
Date: Mon Apr  7 16:42:28 2008
New Revision: 684

Modified:
   cdd/trunk/webtools/tasks_idx.py
Log:
Expand l10n per template (until proper genshi gettext is figured out).


Modified: cdd/trunk/webtools/tasks_idx.py
==============================================================================
--- cdd/trunk/webtools/tasks_idx.py	(original)
+++ cdd/trunk/webtools/tasks_idx.py	Mon Apr  7 16:42:28 2008
@@ -22,21 +22,22 @@
 # initialize gensi
 loader = TemplateLoader(template_dir)
 
-data = dict(
-    gtstrTasksPage = _('Tasks page'),
-    gtstrSummary   = _('Summary'),
-    gtstrProject   = _('Project'),
+for lang in languages:
+	l10nstring[lang].install()
+	data = dict(
+		gtstrTasksPage	= _('Tasks page'),
+		gtstrSummary	= _('Summary'),
+		gtstrProject	= _('Project'),
 
-    projectname    = _('Debian Med'), 
-    projecturl  = 'http://debian-med.alioth.debian.org/',
-    logourl     = 'http://people.debian.org/~tille/debian-med/logos/med-06.jpg',
-    projectadvertising = _("""Help us to see Debian used by medical practicioners and researchers!
-                            Join us on the
-                            <a href="http://alioth.debian.org/projects/debian-med">Alioth page</a>.""")
-                         ,
-    tasks         = ('Bio', 'Bio-dev', 'Imaging'),
-    taskshortdesc = 'Debian-Med imaging packages',
-    tasklongdesc  = """This meta package will install Debian packages which might be useful in medical 
+		projectname	= _('Debian Med'), 
+		projecturl	= 'http://debian-med.alioth.debian.org/',
+		logourl		= 'http://people.debian.org/~tille/debian-med/logos/med-06.jpg',
+		projectadvertising = _("""Help us to see Debian used by medical practicioners and researchers!
+Join us on the
+<a href="http://alioth.debian.org/projects/debian-med">Alioth page</a>."""),
+		tasks		= ('Bio', 'Bio-dev', 'Imaging'),
+		taskshortdesc	= 'Debian-Med imaging packages',
+		tasklongdesc	= """This meta package will install Debian packages which might be useful in medical 
 image processing. 
 <br/>
 It installs several packages supporting DICOM (Digital Imaging and 
@@ -48,17 +49,16 @@
 For more information, you can visit the NEMA homepage <a href="http://medical.nema.org/">http://medical.nema.org/</a> 
 or download the current DICOM standard as PDF files from 
 <a href="http://www.dclunie.com/dicom-status/status.html">http://www.dclunie.com/dicom-status/status.html</a> . """,
-            )
-# Make sure that long description is taken over verbatim because it might
-# contain several html tags
-VERBATIM=('tasklongdesc', 'projectadvertising')
-for verbatim in VERBATIM:
-    data[verbatim] = Markup(data[verbatim])
+		)
 
-template = loader.load('tasks_idx.xhtml')
+	# Make sure that long description is taken over verbatim because it might
+	# contain several html tags
+	VERBATIM=('tasklongdesc', 'projectadvertising')
+	for verbatim in VERBATIM:
+		data[verbatim] = Markup(data[verbatim])
+
+	template = loader.load('tasks_idx.xhtml')
 
-for lang in languages:
-	l10nstring[lang].install()
         print _('Hello world')
 	f = open('index_' + lang + '.html', 'w')
 	print >> f, template.generate(**data).render('xhtml')



More information about the Cdd-commits mailing list