[wp-trac] [WordPress Trac] #15677: It is not possible to install multiple variants of the same language

WordPress Trac noreply at wordpress.org
Thu Dec 5 20:51:26 UTC 2013


#15677: It is not possible to install multiple variants of the same language
--------------------------+-----------------------------
 Reporter:  caesarsgrunt  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  I18N          |     Version:  3.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------------
Changes (by iandunn):

 * keywords:  needs-patch => has-patch


Comment:

 `15677-lang-codes.2.diff` compares the `$lang_codes` array before and
 after the patch, to help assess the backcompat impact. A lot of the
 differences are just in ordering, but there's still a significant amount
 of changes from codes like `pt` to `pt_BR` and `pt_PT`.

 The idea I had earlier about manually adding the codes that are missing
 (or changed) in GlotPress won't work, because then that language would
 show up in the dropdown multiple times.

 Any ideas? Maybe we need to approach this from a different angle?

 Or maybe there just isn't a good way to do this while maintaining
 backcompat? If that's the case, then maybe the best thing to do would be
 to just take this code and make it into a plugin that replaces the
 dropdown with a new one via the `mu_dropdown_languages` filter?

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


More information about the wp-trac mailing list