That partially solved the problem. For the following html code:
<h2 i18n:translate="search-document">Search documentation</h2>
the corresponding text in po is:
msgid "search-document"
msgstr "Search it!"
and that works fine,
but the other part, which is:
<p class="app-welcome" i18n:translate="">
Welcome to <span class="app-name" i18n:name="app">${project}</
span>, an application generated by<br/>
the Pyramid web application development framework.
</p>
and the corresponding po text:
msgid ""
"Welcome to ${appname} an application generated by the Pyramid web "
"application development framework. "
msgstr "Welcome to ${appname}!"
never showed up in the rendering result. Would you give me further
assistance to help me out?
On 5月30日, 下午8时06分, Douglas Cerna <[email protected]> wrote:
> On Mon, May 30, 2011 at 12:45 PM, Geo <[email protected]> wrote:
> > 2. changed in the the mytemplate.pt:
> > <h2 i18n:translate="search-document">Search documentation</h2>
> > ...
> > <p class="app-welcome" i18n:translate="">
> > Welcome to <span class="app-name" i18n:name='app-name'>$
> > {project}</span>, an application generated by<br/>
> > the Pyramid web application development framework.
> > </p>
>
> Make sure you specify the i18n namespace and your application domain
> in the template. Something like:
>
> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
> xmlns:tal="http://xml.zope.org/namespaces/tal"
> xmlns:i18n="http://xml.zope.org/namespaces/i18n"
> i18n:domain="mypyramidapp">
>
> Hope that helps you.
>
> Douglas
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.