Submitted by : simon at: 2004-06-07T22:11:14+00:00 (13 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

For some unknown reason browsing in polish gives me:

  Traceback (most recent call last):
  File "/usr/local/src/Zope-2.7.0/lib/python/ZPublisher/Publish.py", line 100, in publish
    request, bind=1)
  File "/usr/local/src/Zope-2.7.0/lib/python/ZPublisher/mapply.py", line 88, in mapply
    if debug is not None: return debug(object,args,context)
  File "/usr/local/src/Zope-2.7.0/lib/python/ZPublisher/Publish.py", line 40, in call_object
    result=apply(object,args) # Type s<cr> to step into published object.
  File "/zope1/Products/ZWiki/ZWikiPage.py", line 239, in __call__
    rendered = self.render(client,REQUEST,RESPONSE,**kw)
  File "/zope1/Products/ZWiki/ZWikiPage.py", line 251, in render
    return self.pageType().render(self, REQUEST, RESPONSE, **kw)
  File "/zope1/Products/ZWiki/PageTypes.py", line 296, in render
    t = page.addSkinTo(t,**kw)
  File "/zope1/Products/ZWiki/UI.py", line 210, in addSkinTo
    return folder.wikipage.__of__(self)(self,REQUEST,body=body,**kw)
  File "/usr/local/src/Zope-2.7.0/lib/python/Shared/DC/Scripts/Bindings.py", line 306, in __call__
    return self._bindAndExec(args, kw, None)
  File "/usr/local/src/Zope-2.7.0/lib/python/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec
    return self._exec(bound_data, args, kw)
  File "/usr/local/src/Zope-2.7.0/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 222, in _exec
    result = self.pt_render(extra_context=bound_names)
  File "/usr/local/src/Zope-2.7.0/lib/python/Products/PageTemplates/PageTemplate.py", line 96, in pt_render
    tal=not source, strictinsert=0)()
  File "/usr/local/src/Zope-2.7.0/lib/python/TAL/TALInterpreter.py", line 189, in __call__
    self.interpret(self.program)
  File "/usr/local/src/Zope-2.7.0/lib/python/TAL/TALInterpreter.py", line 233, in interpret
    handlers[opcode](self, args)
  File "/usr/local/src/Zope-2.7.0/lib/python/TAL/TALInterpreter.py", line 663, in do_useMacro
    self.interpret(macro)
  File "/usr/local/src/Zope-2.7.0/lib/python/TAL/TALInterpreter.py", line 233, in interpret
    handlers[opcode](self, args)
  File "/usr/local/src/Zope-2.7.0/lib/python/TAL/TALInterpreter.py", line 406, in do_optTag_tal
    self.no_tag(stuff[-2], stuff[-1])
  File "/usr/local/src/Zope-2.7.0/lib/python/TAL/TALInterpreter.py", line 388, in no_tag
    self.interpret(program)
  File "/usr/local/src/Zope-2.7.0/lib/python/TAL/TALInterpreter.py", line 233, in interpret
    handlers[opcode](self, args)
  File "/usr/local/src/Zope-2.7.0/lib/python/TAL/TALInterpreter.py", line 629, in do_condition
    self.interpret(block)
  File "/usr/local/src/Zope-2.7.0/lib/python/TAL/TALInterpreter.py", line 233, in interpret
    handlers[opcode](self, args)
  File "/usr/local/src/Zope-2.7.0/lib/python/TAL/TALInterpreter.py", line 663, in do_useMacro
    self.interpret(macro)
  File "/usr/local/src/Zope-2.7.0/lib/python/TAL/TALInterpreter.py", line 233, in interpret
    handlers[opcode](self, args)
  File "/usr/local/src/Zope-2.7.0/lib/python/TAL/TALInterpreter.py", line 629, in do_condition
    self.interpret(block)
  File "/usr/local/src/Zope-2.7.0/lib/python/TAL/TALInterpreter.py", line 233, in interpret
    handlers[opcode](self, args)
  File "/usr/local/src/Zope-2.7.0/lib/python/TAL/TALInterpreter.py", line 290, in do_startTag
    ok, name, s = attrAction(self, item)
  File "/usr/local/src/Zope-2.7.0/lib/python/TAL/TALInterpreter.py", line 356, in attrAction_tal
    evalue = self.engine.evaluateText(item[3])
  File "/usr/local/src/Zope-2.7.0/lib/python/Products/PageTemplates/TALES.py", line 226, in evaluateText
    text = self.evaluate(expr)
  File "/usr/local/src/Zope-2.7.0/lib/python/Products/PageTemplates/TALES.py", line 220, in evaluate
    return expression(self)
  File "/usr/local/src/Zope-2.7.0/lib/python/Products/PageTemplates/ZRPythonExpr.py", line 47, in __call__
    return eval(code, g, {})
  File "Python expression "here.translateHelper('edit-page') + ' (' + here.linkTitle() + ')'"", line 1, in <expression>
  File "/zope1/Products/ZWiki/ZWikiPage.py", line 649, in linkTitle
    prettyprint=prettyprint)
  File "/zope1/Products/ZWiki/ZWikiPage.py", line 661, in linkTitleFrom
    s = _("last edited %(interval)s ago").__str__() % {"interval":interval}
  ValueError: incomplete format

http://zwiki.org/zwikidir/i18n/pl.po


comments:

got it --Simon Michael, Mon, 07 Jun 2004 22:20:21 -0700 reply
The s needs to be preserved in things like %(interval)s - it's a python formatting code.

property change --SimonMichael, Wed, 09 Jun 2004 09:48:25 -0700 reply
Status: open => closed