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

WordPress Trac noreply at wordpress.org
Sat Aug 23 17:58:08 UTC 2014


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

 * keywords:  has-patch => has-patch needs-testing


Comment:

 [attachment:15677.5.patch]:

 * Fixes bugs mentioned by jesin
 * `translations_api()`:
   * $type = core: Pass WP version as `$args['version']` to get core
 translations
   * $type = themes|plugins: Pass version as `$args['version']` and
 theme/plugin slug as `$args['slug']` to get theme/plugin translations
 * Only allow super admins to install languages when is_multisite()


 **ToDo:**
 * Better handling of the default selected language. How should WPLANG
 constant and get_site_option('WPLANG') be handled, can we use get_locale()
 instead?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/15677#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list