[wpmu-trac] [WordPress MU Trac] #529: fix for alternative english file in options pages

WordPress MU Trac wpmu-trac at lists.automattic.com
Fri Dec 21 00:55:05 GMT 2007


#529: fix for alternative english file in options pages
------------------------+---------------------------------------------------
 Reporter:  huwr        |       Owner:  somebody 
     Type:  defect      |      Status:  new      
 Priority:  normal      |   Milestone:           
Component:  component1  |     Version:           
 Severity:  normal      |    Keywords:  has-patch
------------------------+---------------------------------------------------
 CMS and rebrand authors may wish to provide alternative wording in english
 for wp-admin. presently, dropping an en.mo file in languages/ creates a
 dropdown box with two options for english: one for the blank "" standard
 english, and one for the "en" alternative file. there's no distinction
 made between the two.

 this patch overrides the default english with the alternative file, when
 present.

 there's another slight hole present in the original code that wasnt
 addressed. if:
 1. the number of available languages == 1, so the dropdown box isnt
 visible
 and
 2. the user's original selected language is not available or was overriden
 (see default english vs alternative english)
 then the user has no way of selecting the default. this can be corrected
 with a db update, but perhaps a hidden form field should be created when
 the dropdown box is invisible. atleast then they'd reset to default when
 updating options.

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/529>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list