[wp-trac] [WordPress Trac] #29892: get_available_languages() can alternately too and not enough permissive

WordPress Trac noreply at wordpress.org
Fri Nov 14 13:17:03 UTC 2014


#29892: get_available_languages() can alternately too and not enough permissive
--------------------------+-----------------------------
 Reporter:  imath         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.1
Component:  I18N          |     Version:  4.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  administration
--------------------------+-----------------------------
Changes (by ocean90):

 * keywords:  needs-patch => has-patch
 * type:  enhancement => defect (bug)
 * milestone:  Awaiting Review => 4.1


Comment:

 [attachment:29892.2.patch] makes `get_available_languages( $dir )` a
 wrapper for `wp_get_installed_translations( 'core', $lang_dir )` which
 only returns the locales for the default textdomain.

 [attachment:29892.3.patch] checks also if the admin textdomain exists.

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


More information about the wp-trac mailing list