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

WordPress Trac noreply at wordpress.org
Mon Aug 25 22:51:48 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:
-------------------------------------+------------------

Comment (by ocean90):

 Patches .12 to .14 are going back to the main issue: Allow to install
 multiple variants of the same language, for example en_US, en_GB and
 en_AU, see also #28730.

 To solve this we use `wp_dropdown_languages()` which will be populated by
 `translations_api()`. This will also fix #13069 and #19760 (probably
 wontfix).

 [attachment:15677.14.patch] includes:
 * Add optional $locale argument to `load_default_textdomain()`, used in
 `wp_switch_default_textdomain()`
 * Remove `!defined('WP_INSTALLING')` from `get_locale()`  for `get_option(
 'WPLANG' )`
 * Add `$wp_local_package` to `get_locale()`
 * Allow an empty `get_option( 'WPLANG' )` value to override WPLANG
 constant
 * Rename `wp_install_download_language_pack()` to
 `wp_download_language_pack()`
 * Rename `wp_get_available_translations_from_api()` to
 `wp_get_available_translations()`, API part extracted into
 `translations_api()`
 * Rename `wp_install_load_language()` to `wp_switch_default_textdomain()`
 * Remove `define('WPLANG', '');` from `wp-config-sample.php` and populates
 WPLANG option on upgrade. That's not directly related to this issue, but
 makes some things easier to handle. Also I think 4.0 sounds like a good
 version number to get rid of this constant.

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


More information about the wp-trac mailing list