Issue 1443786
Created on 2006-03-05 23:50 by arno-, last changed 2006-09-18 03:28 by tobias-herp.
msg2219 |
Author: [hidden] (arno-) |
Date: 2006-03-05 23:50 |
|
In templates/classic/html/issue.index.html :
head_title and body_title are not translated with :
List of issues - Show All
List of issues - Show Unassigned
I think that is because in :
<span metal:fill-slot="body_title"
tal:omit-tag="python:1"
i18n:translate="">List of issues
<span tal:condition="request/dispname"
tal:replace="python:' - %s' %
request.dispname" />
List of issues, and the result of request.dispname are
in separate msgid .po strings.
So, we have to put two spans inside another span (as in
bug 1439927).
By the way, tal:replace and i18n:translate seem to be
incompatible :
1. Compilation failed
roundup.cgi.TAL.TALDefs.I18NError: i18n:translate
and tal:replace are mutually exclusive, at line 10,
column 148
Traceback (most recent call last):
File
"/usr/lib/python2.3/site-packages/roundup/cgi/client.py",
line 729, in renderContext
result = pt.render(self, None, None, **args)
File
"/usr/lib/python2.3/site-packages/roundup/cgi/templating.py",
line 312, in render
raise PageTemplate.PTRuntimeError, \
PTRuntimeError: Page Template issue.index.html has errors.
So we have to put tal:content tal:omit-tag
So, with :
<span metal:fill-slot="body_title"
tal:omit-tag="python:1"><span i18n:translate=""
tal:omit-tag="python:1"
tal:content="string:List of issues"/><span
tal:omit-tag
tal:condition="request/dispname"> -
<span
i18n:translate=""
tal:content="request/dispname"
tal:omit-tag="python:1"
/></span></span>
it works.
For head_title, I didn't succeed because of :
i18n:name="tracker"
|
msg2220 |
Author: [hidden] (tobias-herp) |
Date: 2006-09-18 03:28 |
|
Logged In: YES
user_id=805804
fixed by my recently checked in page.html
|
|
Date |
User |
Action |
Args |
2006-03-05 23:50:54 | arno- | create | |
|