[wp-trac] [WordPress Trac] #2521: DateTime display broken
WordPress Trac
wp-trac at lists.automattic.com
Thu Mar 2 00:34:39 GMT 2006
#2521: DateTime display broken
-----------------------+----------------------------------------------------
Id: 2521 | Status: new
Component: General | Modified: Thu Mar 2 00:34:39 2006
Severity: normal | Milestone: 2.1
Priority: normal | Version: 2.0.1
Owner: anonymous | Reporter: drssay
-----------------------+----------------------------------------------------
In korean, Feburary is "2월".
Display of Date 2006/02/06 is "Feburary 6th, 2006" in English. But "? 6th,
2006" in Korean. This ? is second byte of "월".
/wp-include/function:35
{{{
$dateformatstring = preg_replace("/([^\\\])D/",
"\\1".backslashit($dateweekday_abbrev), $dateformatstring);
$dateformatstring = preg_replace("/([^\\\])F/",
"\\1".backslashit($datemonth), $dateformatstring);
$dateformatstring = preg_replace("/([^\\\])l/",
"\\1".backslashit($dateweekday), $dateformatstring);
$dateformatstring = preg_replace("/([^\\\])M/",
"\\1".backslashit($datemonth_abbrev), $dateformatstring);
}}}
PHP parsed second argument of preg_replace is "\\1".backslashit() to
"\\12월".
reference 1 is changed reference 12. so, result is "월".
Next code trim 1 byte. so, result is ?(second byte of "월").
Finally. I want to changed "\\1" to "\\1 ".
( One blank appended )
--
Ticket URL: <http://trac.wordpress.org/ticket/2521>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list