https://bugzilla.wikimedia.org/show_bug.cgi?id=18599





--- Comment #2 from Bruno <thecentercannoth...@yahoo.com>  2009-04-27 13:20:14 
UTC ---
err...  maybe I'm confused, but (a) wikimedia projects are already generally
speaking localized (en.wikipedia, es.wiktionary...), and (b) each user can set
their language localization in their preferences (which I'm assuming is stored
in an easily accessible cookie, and probably defaults to the the encoding of
the project they're working on).  given that (and cribbing from the PHP manual
at http://www.php.net/manual/en/function.sort.php):

<?php
     setlocale( 'LC_ALL', $lang_code ); // $lang_code form a cookie or project,
as above, possibly LC_COLLATE would be sufficient
     sort( $array_of_watchlist_article_names, SORT_LOCALE_STRNG ); 
     // ...continue processing the list normally
?>

might be a few extra lines of housekeeping code needed, but otherwise why
wouldn't something like this work?  also, I think this behavior changed in PHP
6, so there might need to be code to account for that.  


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to