Re: [SMARTY] Solving upper/lower case
| From: | Roberto Bertó | Date: | Mon, 21 Oct 2002 19:45:35 +0000 |
| Subject: | Re: [SMARTY] Solving upper/lower case | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6215@lists.php.net to get a copy of this message | ||
Yeah, that class tell about the locale solution :-)
I guess its better change the locale setting in your main php file, and
not in modifier.
On Mon, 2002-10-21 at 08:13, Alexander Pervak wrote:
> Roberto, Betrand! Thanks for participation!!
> I'd tried some ways, but as i realized that the problem is in the
> locale settings i'd simply modify stanard Smarty plugins like that
>
> function smarty_modifier_upper($string,$locale='')
> {
> if ($locale) setlocale("LC_CTYPE",$locale);
> return strtoupper($string);
> }
>
> function smarty_modifier_lower($string,$locale='')
> {
> if ($locale) setlocale("LC_CTYPE",$locale);
> return strtolower($string);
> }
>
> Than i implement it like that
> {$selCurr.lastname|lower:"ru_RU.KOI8-R"}
>
> Thanks again!
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Atenciosamente,
---------------------------------------------------------
Roberto Bertó - Gerente de Contas
email: roberto@desenvolve.com.br
DESENVOLVE Soluções de Internet
http://www.desenvolve.com.br
TEL/FAX: 51 32270599 Rua Duque de Caxias, 1594 conj. 204
CEP 900010-281 - Porto Alegre - RS
---------------------------------------------------------