Re: [Cheetahtemplate-discuss] [gettext] NameMapper.NotFound: cannot find '_'
Brought to you by:
rtyler,
tavis_rudd
From: Philippe N. <ph...@ba...> - 2005-09-27 08:09:48
|
Le mardi 27 septembre 2005 =E0 09:44 +0200, Stephane Bortzmeyer a =E9crit= : > It seems possible to use gettext for making multilingual Web sites > (http://www.cheetahtemplate.org/docs/users_guide_html_multipage/tips.ge= ttext.html). >=20 > But I cannot do it, Cheetah compiles but Python cannot run the > compiled template. >=20 > % python index.py > Traceback (most recent call last): > File "index.py", line 126, in ? > index().runAsMainProgram() > File "/usr/local/lib/python2.4/site-packages/Cheetah/Template.py", li= ne 328, in runAsMainProgram > CmdLineIface(templateObj=3Dself).run() > File "/usr/local/lib/python2.4/site-packages/Cheetah/TemplateCmdLineI= face.py", line 45, in run > print self._template > File "index.py", line 95, in respond > write(filter(VFFSL(SL,"_",False)("Server got itself in trouble."), = rawExpr=3D'$_("Server got itself in trouble.")')) # from line 6, col 1. > NameMapper.NotFound: cannot find '_' >=20 I think you need to put _ in the searchList of the Template instance Philippe |