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 [EMAIL PROTECTED] > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 19, 2002 9:19 PM > To: [EMAIL PROTECTED] > 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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]