While putting my localization strings in place I discovered an interesting
quirk that perhaps someone could explain.

This is my construct:

<title tal:content="title|default" i18n:translate="">foo bar</title>

The idea is that a page can override the default page title by setting the
title variable. If not specified, the page title should be translated from
whatever is in the template (i.e. "foo bar").

The outcome of my construct is I18N("foo bar") . "foo bar" - the
translation of "foo bar" followed by "foo bar" itself. Setting the title
variable has no effect.

Has anyone come across this? And is there an easy fix for what I need?

Version = 1.2.2

PHPTAL mailing list

Reply via email to