Skip to content

Commit fdfff31

Browse files
author
Alexander Smishlajev
committed
use client.translator instead of static translationService;
fix vim modeline
1 parent cebf7f7 commit fdfff31

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

roundup/cgi/actions.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#$Id: actions.py,v 1.33 2004-07-06 11:29:12 a1s Exp $
1+
#$Id: actions.py,v 1.34 2004-07-13 09:41:15 a1s Exp $
22

33
import re, cgi, StringIO, urllib, Cookie, time, random
44

@@ -60,8 +60,7 @@ def hasPermission(self, permission):
6060

6161
def gettext(self, msgid):
6262
"""Return the localized translation of msgid"""
63-
return templating.translationService.translate(domain="roundup",
64-
msgid=msgid, context=self.context)
63+
return self.client.translator.gettext(msgid)
6564

6665
_ = gettext
6766

@@ -893,4 +892,4 @@ def handle(self):
893892

894893
return '\n'
895894

896-
# vim: set filetype=python ts=4 sw=4 et si
895+
# vim: set filetype=python ts=4 sw=4 et si :

0 commit comments

Comments
 (0)