cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Enke Michael <>
Subject I18nTransformer patch
Date Tue, 07 Aug 2001 12:44:52 GMT
I have added some lines of code to
and tested. It is attached to this mail.
I hope this is useful not only to me ;-)

1) before: <i18n:date ... />   -> date and time
   now: <i18n:date ... />      -> only date -> incompatibility
                 -> new URI:
        <i18n:time ... />      -> time
        <i18n:date-time ... /> -> date and time
2) the src-pattern and pattern attributes for date and time
   recognizes now also:"short", "medium", "long" and "full"
   in addition to a regular pattern
3) fixed a bug in <i18n:number/> wich caused wrong output if the
   value was given as text and not as value="...":
   <i18n:number sub-type="currency">
4) for number and date/time: introduced the attributes 'locale'
   and 'src-locale', e.g.:
   <i18n:date src-pattern="short" src-locale="en_US" locale="de_DE">
   will result in 24.12.2001
   A given "real" pattern and src-pattern (not short, medium, long,
   overwrites the locale and src-locale

I send a diff -u <old> <new> where <new> is:
a) -> src/org/apache/cocoon/transformation/
b) -> xdocs/i18n-transformer.xml

Does anybody have suggestions/remarks?

Best regards,

View raw message