cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "''" <>
Subject i18n upper/lower case (was Re: New: [PATCH] I18nTransformer...)
Date Wed, 20 Mar 2002 11:06:36 GMT
Hi Konstantin!

	Great to hear from you.

On Wed, Mar 20, 2002 at 11:37:41AM +0300, Piroumian, Konstantin wrote:
> Hi, Marcus!
> How are you, mate?

	I'm fine mate. And yourself ? 

> 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().

	Good idea. I'll change the code and submit a new patch.

	BTW - while we're talking about it, the original syntax I wanted
	to implement was something like this:

	<i18n:format type="upper">text</i18n:format>
	<i18n:format type="lower">text</i18n:format>


	Basically using surrounding tags rather than an attribute.

	That way we wouldn't be restricted to converting case of just
	translated text, but could upper/lower case any text given as

	The state model of I18nTransformer proved to be a bit difficult
	to change though to add this new tag, hence the format="upper"

	Your knowledge about I18nTransformer is definitely better than
	mine - What do you think ? Is it easier to implement than I
	originally thought ?



     ,,$$$$$$$$$,      Marcus Crafter
    ;$'      '$$$$:    Computer Systems Engineer
    $:         $$$$:   ManageSoft GmbH
     $       o_)$$$:   82-84 Mainzer Landstrasse
     ;$,    _/\ &&:'   60327 Frankfurt Germany
       '     /( &&&

To unsubscribe, e-mail:
For additional commands, email:

View raw message