Thank you Douglas! It fixed my problem! Under vim I joined the </p> line
with the line above and then deleted the space and then the extra space
disappeared in the generated po file.
But it is strange when I double check my template file, there is no space in
the end of line, and when I press return and join the lines again, the space
reappears. Maybe there is a problem with my vim settings.
Although the issue is fixed, but it reminds me the following points:
1. Is there a better way to deal with this issue? Since it seems too tricky
to spot the problem, either it should be documented or there must be a fix
in the chameleon zpt.
2. For the <br i18n:name="break"/> part, it is missed from the documentation
of chameleon and pyramid. Finally, I found "Internationalization (i18n) For
Developers <http://plone.org/documentation/kb/i18n-for-developers>" in
the Plone
documentation. It has more detail information about the i18n of zpt.
Although it doesn't mention the same issue as we encountered here, it is far
more completed and practical. Maybe we can improve the i18n chapter of
pyramid, otherwise people like me with none or little zpt experience will be
scratching head for hours.




On Wed, Jun 1, 2011 at 12:06 AM, Douglas Cerna <[email protected]>wrote:

> On Wed, Jun 1, 2011 at 12:23 AM, george hu <[email protected]> wrote:
> > Nope, this will produce the following po text:
> > msgid ""
> > "Welcome to ${app}, an application generated by${break} the Pyramid web "
> > "application development framework. "
> > msgstr ""
> > and it doesn't work either.
>
> Weird, for me it generates:
>
> msgid ""
> "Welcome to ${app}, an application generated by${break} the Pyramid web "
> "application development framework."
> msgstr ""
>
> Note the ending of this message id "...framework." and yours have
> "...framework. " (an extra space).
>
> 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.
>
>

-- 
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.

Reply via email to