You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ivo Limmen <iv...@virgil.nl> on 2003/12/16 14:37:37 UTC
i18n date pattern question
Hi everyone,
I have been trying to i18n a piece of xml with dates. The standard date
patterns are not sufficient for my needs.
I know that you can i18n a date with:
<i18n:date-time locale="nl_NL"
pattern="FULL" value="2003-12-1614:30:56"
src-pattern="yyyy-MM-dd HH:mm:ss"/>
But I have tried to do this:
<i18n:date-time locale="nl_NL"
pattern="my_pattern" value="2003-12-1614:30:56"
src-pattern="yyyy-MM-dd HH:mm:ss" i18n:attr="pattern"/>
This, unfortunatly, does not work.
Is there another way to specify my pattern per country without having to
use the i18n:when / i18n:otherwise ?
Greetings,
--
Ivo Limmen
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: i18n date pattern question
Posted by Jeremy Quinn <je...@media.demon.co.uk>.
On 16 Dec 2003, at 13:37, Ivo Limmen wrote:
> Hi everyone,
>
> I have been trying to i18n a piece of xml with dates. The standard
> date patterns are not sufficient for my needs.
>
> I know that you can i18n a date with:
>
> <i18n:date-time locale="nl_NL"
> pattern="FULL" value="2003-12-1614:30:56"
> src-pattern="yyyy-MM-dd HH:mm:ss"/>
>
> But I have tried to do this:
>
> <i18n:date-time locale="nl_NL"
> pattern="my_pattern" value="2003-12-1614:30:56"
> src-pattern="yyyy-MM-dd HH:mm:ss" i18n:attr="pattern"/>
>
> This, unfortunatly, does not work.
> Is there another way to specify my pattern per country without having
> to use the i18n:when / i18n:otherwise ?
does this help at all ?
http://wiki.cocoondev.org/Wiki.jsp?page=WorkingWithLocales
regards Jeremy