cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piroumian, Konstantin" <KPiroum...@flagship.ru>
Subject RE: DO NOT REPLY [Bug 7253] New: - [PATCH] I18nTransformer, add s support for setting translations to upper/lower case
Date Wed, 20 Mar 2002 08:37:41 GMT
Hi, Marcus!

How are you, mate?

So, why not to use String.toUpperCase(Locale)/String.toLowerCase(Locale)
versions? According to JDK 1.3:

public String toUpperCase(Locale locale)
Converts all of the characters in this String to upper case using the rules
of the given locale. Usually, the characters are converted by calling
Character.toUpperCase. Exceptions to this rule are listed in the following
table...

The same with toLowerCase().
--
Konstantin Piroumian 
kpiroumian@flagship.ru

> -----Original Message-----
> From: bugzilla@apache.org [mailto:bugzilla@apache.org] 
> Sent: Tuesday, March 19, 2002 9:19 PM
> To: cocoon-dev@xml.apache.org
> Subject: DO NOT REPLY [Bug 7253] New: - [PATCH] 
> I18nTransformer, adds support for setting translations to 
> upper/lower case
> 
> 
> DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
> RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
> <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7253>.
> ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
> INSERTED IN THE BUG DATABASE.
> 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7253

[PATCH] I18nTransformer, adds support for setting translations to
upper/lower case

           Summary: [PATCH] I18nTransformer, adds support for setting
                    translations to upper/lower case
           Product: Cocoon 2
           Version: Current CVS
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: sitemap components
        AssignedTo: cocoon-dev@xml.apache.org
        ReportedBy: crafterm@fztig938.bank.dresdner.net


Attached is a patch which allows one to add an attribute to i18n:text that
will
modify the case of the translated text. Currently upper and lower case are
supported. ie:

<i18n:text format="upper">key</i18n:text>

and

<i18n:text format="lower">key</i18n:text>

This saves the need to store multiple keys of the same string with different
cases.

Note, conversion is done using String.toUpperCase() and String.toLowerCase()
which doesn't take into account language peculiarities. Conversions should
be
tested (any ideas about how solve this would be appreciated).

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message