Solving upper/lower case
| From: | Alexander Pervak | Date: | Mon, 21 Oct 2002 11:13:17 +0000 |
| Subject: | Solving upper/lower case | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6210@lists.php.net to get a copy of this message | ||
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!