cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Enke Michael <Michael.E...@wincor-nixdorf.com>
Subject I18nTransformer patch
Date Tue, 07 Aug 2001 12:44:52 GMT
Hi,
I have added some lines of code to I18nTransformer.java
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: http://apache.org/cocoon/i18n/2.1
        <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">
    123.45
   </i18n:number>
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">
    12/24/01
   </i18n:date>
   will result in 24.12.2001
   A given "real" pattern and src-pattern (not short, medium, long,
full)
   overwrites the locale and src-locale

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

Does anybody have suggestions/remarks?

Best regards,
Michael


Mime
View raw message