[wp-trac] [WordPress Trac] #15652: Tags with Accents are Incorrectly Sorted in Cloud

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 3 21:33:00 UTC 2010


#15652: Tags with Accents are Incorrectly Sorted in Cloud
-------------------------+--------------------------------------------------
 Reporter:  CatherineBr  |       Owner:                               
     Type:  enhancement  |      Status:  new                          
 Priority:  normal       |   Milestone:  Future Release               
Component:  I18N         |     Version:  3.0.2                        
 Severity:  normal       |    Keywords:  sorting, sort, accents, cloud
-------------------------+--------------------------------------------------

Comment(by CatherineBr):

 For a beginner like me, the natural place to specify the locale is WP-
 CONFIG.PHP, and not the server, because I wouldn't know how to do it. My
 WP-CONFIG.PHP says :

 define ('WPLANG', 'fr_FR');

 So, couldn't WordPress read that WPLANG constant, and modify the sorting
 accordingly ? This is beyond my competence, but I found a PHP code that
 seems to do that, using the "Collator" class :

 $coll = collator_create( 'en_US' );
 $res  = collator_compare( $coll, $s1, $s2 );

 But this "Collator" class seems to require a PHP extension of some sort,
 as I couldn't get it to execute.

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


More information about the wp-trac mailing list