You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2002/03/19 19:18:32 UTC
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