You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by philguillard <ph...@gmail.com> on 2006/02/09 18:39:17 UTC
i18n:attr translation
Hi,
What do you think about that ?
<img src="foo.png" alt="translation.foo" i18n:attr="alt"/>
I get a WARN
I18nTransformer: Translation not found for attribute alt in element <img>
Is that not the right synthax ?
Phil
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: i18n:attr translation
Posted by philguillard <ph...@gmail.com>.
Andrew Stevens wrote:
>> From: philguillard <ph...@gmail.com>
>> Date: Fri, 10 Feb 2006 01:39:17 +0800
>>
>> Hi,
>> What do you think about that ?
>> <img src="foo.png" alt="translation.foo" i18n:attr="alt"/>
>>
>> I get a WARN
>> I18nTransformer: Translation not found for attribute alt in element <img>
>>
>> Is that not the right synthax ?
>
>
> The fact it's the I18nTransformer giving the warning suggests it's been
> triggered, so the namespace and attribute (i18n:attr) are okay. Plus,
> it knows that it should be translating the alt attribute. However, it
> appears not to be finding any localised message for the key
> "translation.foo". Have you got it configured with the correct path
> etc. for your catalog, and does the catalog contain an entry for that key?
>
>
> Andrew.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
Thanks Andrew,
Right, since i have a few XSL in this, the translation error came from
some other img tags. It works correctly.
Phil
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: i18n:attr translation
Posted by Andrew Stevens <at...@hotmail.com>.
>From: philguillard <ph...@gmail.com>
>Date: Fri, 10 Feb 2006 01:39:17 +0800
>
>Hi,
>What do you think about that ?
><img src="foo.png" alt="translation.foo" i18n:attr="alt"/>
>
>I get a WARN
>I18nTransformer: Translation not found for attribute alt in element <img>
>
>Is that not the right synthax ?
The fact it's the I18nTransformer giving the warning suggests it's been
triggered, so the namespace and attribute (i18n:attr) are okay. Plus, it
knows that it should be translating the alt attribute. However, it appears
not to be finding any localised message for the key "translation.foo". Have
you got it configured with the correct path etc. for your catalog, and does
the catalog contain an entry for that key?
Andrew.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org