small "bug" in html_select_date
till <[email protected]> Tue, 13 Feb 2007 10:52:56 +0100
| Newsgroups | gmane.comp.php.smarty.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I found this small issue this morning, the code to reproduce is as follows:
<?php
setlocale(LC_ALL, 'de_DE@euro'); // depends on your ENV
$smarty =3D new Smarty;
$smarty->...
...
$smarty->assign('formPrefix', ...);
...
$smarty->display('foo.tpl');
?>
foo.tpl contains this code:
<html>
<head>
<meta http-equiv=3D"content-type" content=3D"text/html; charset=3Dutf-8" />
</head>
<body>
<form>
{html_select_date
field_array=3D$formPrefix
prefix=3D"startDate_"
year_empty=3D"..."
month_empty=3D"..."
day_empty=3D"..."
field_order=3D"DMY"
time=3D$value}
</form>
</body>
</html>
Anyway, the expect result is a dropdown filled with the names of the
month (among date and year). On the months, I expected to get "M=E4rz"
(German "March"), but I got "M?rz". Which is close but not close
enough.
A "patch" to fix it:
http://www.lagged.de/oss/smarty/function.html_select_date.php.patch
Cheers,
--=20
Till Klampaeckel
e: mailto:[email protected]
p: +491704018676
l: http://beta.plazes.com/whereis/till
Want to know what's up in Berlin?
- http://berlin.metblogs.com
--
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php