[wp-trac] [WordPress Trac] #12019: Corsican appears in the blogs language drop down box

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 25 18:03:20 UTC 2010


#12019: Corsican appears in the blogs language drop down box
--------------------------+-------------------------------------------------
 Reporter:  wpmuguru      |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  Multisite     |     Version:            
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------
 MU Trac Ticket: http://trac.mu.wordpress.org/ticket/1109

 In the last version, support for translation was added to the time zone
 list of cities. Since it is a long list, and should be loaded only when
 the 'General Settings' page is loaded, it uses a separate translation file
 (continents-cities). The list of cities is here:
 http://trac.mu.wordpress.org/browser/tags/2.8.4a/wp-admin/includes
 /continents-cities.php

 Since I'm using the Hebrew translation I have two .mo files in my
 languages directory: he_IL.mo and continents-cities-he_IL.mo. Wpmu searchs
 for all *.mo files and checks the first two letters of the file name to
 determine the language. According to this, the continents-cities-he_IL.mo
 file is recognized as Corsican.

 This issue appears in options-general.php and for admin also in wpmu-
 options.php.

 As far as I know, all translations use a file name structure of 'aa_bb.mo'
 where 'aa' is the language and 'bb' is the country. A possible solution to
 this issue would be to check for the underscore ('_') after the first two
 letters of the file name to make sure it’s a different language.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12019>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list