[wp-trac] [WordPress Trac] #31319: Use first translation iso instead of by key '1'

WordPress Trac noreply at wordpress.org
Sat Feb 14 08:19:08 UTC 2015


#31319: Use first translation iso instead of by key '1'
-----------------------------------+-----------------------------
 Reporter:  barrykooij             |       Owner:  SergeyBiryukov
     Type:  defect (bug)           |      Status:  closed
 Priority:  normal                 |   Milestone:  4.2
Component:  I18N                   |     Version:  trunk
 Severity:  normal                 |  Resolution:  fixed
 Keywords:  has-patch fixed-major  |     Focuses:
-----------------------------------+-----------------------------
Changes (by dd32):

 * status:  reopened => closed
 * resolution:   => fixed
 * milestone:  4.1.1 => 4.2


Comment:

 Since it's only a PHP Notice, and doesn't block Language selection nor
 Installation, I don't think this warrants inclusion in a minor release.

 I've already bumped several other PHP Notice-only issues out.

 If it makes sense to, we could set the API to return `$language['iso'][1]
 = $language['iso'][1] ? $language['iso'][1] : $language['iso'][2]`
 instead.

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


More information about the wp-trac mailing list