[wp-trac] Re: [WordPress Trac] #7753: Use of localized calendar system and translating digits in entire WordPress

WordPress Trac wp-trac at lists.automattic.com
Tue May 5 11:13:53 GMT 2009


#7753: Use of localized calendar system and translating digits in entire WordPress
-----------------------------------------+----------------------------------
 Reporter:  kambiz.k                     |        Owner:  anonymous
     Type:  enhancement                  |       Status:  reopened 
 Priority:  normal                       |    Milestone:  2.8      
Component:  i18n                         |      Version:  2.6.1    
 Severity:  normal                       |   Resolution:           
 Keywords:  has-patch reporter-feedback  |  
-----------------------------------------+----------------------------------

Comment(by kambiz.k):

 Yes, the new date_i18n hook does the trick however changes in wp-
 admin/includes/template.php are required. My old patch for this file was
 incorrect and I updated it now.

 In touch_time function of wp-admin/includes/template.php file, mysql2date
 function is used to get numeric values of year, month, and day. This
 values should be always in Gregorian calendar system without any
 translation. However, translate parameter of mysql2date function is set to
 true by default. You should set value of translate parameter to false for
 mysql2date calls in touch_time function.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/7753#comment:12>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list