diff roundup/cgi/actions.py @ 2563:420d5c2a49d9

use client.translator instead of static translationService; fix vim modeline
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Tue, 13 Jul 2004 09:41:15 +0000
parents 82f53c270e7c
children 5a8d9465827e
line wrap: on
line diff
--- a/roundup/cgi/actions.py	Tue Jul 13 06:11:06 2004 +0000
+++ b/roundup/cgi/actions.py	Tue Jul 13 09:41:15 2004 +0000
@@ -1,4 +1,4 @@
-#$Id: actions.py,v 1.33 2004-07-06 11:29:12 a1s Exp $
+#$Id: actions.py,v 1.34 2004-07-13 09:41:15 a1s Exp $
 
 import re, cgi, StringIO, urllib, Cookie, time, random
 
@@ -60,8 +60,7 @@
 
     def gettext(self, msgid):
         """Return the localized translation of msgid"""
-        return templating.translationService.translate(domain="roundup",
-            msgid=msgid, context=self.context)
+        return self.client.translator.gettext(msgid)
 
     _ = gettext
 
@@ -893,4 +892,4 @@
 
         return '\n'
 
-# vim: set filetype=python ts=4 sw=4 et si
+# vim: set filetype=python ts=4 sw=4 et si :

Roundup Issue Tracker: http://roundup-tracker.org/