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

WordPress Trac noreply at wordpress.org
Sat Feb 14 08:30:23 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:

Comment (by SergeyBiryukov):

 Replying to [comment:9 dd32]:
 > Since it's only a PHP Notice, and doesn't block Language selection nor

 It does for Hazaragi, so would be nice to fix this either way.

 Fixing the API to always return a non-empty ISO 639-1 code sounds like an
 option, but I'm not sure about repercussions for other languages.

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

More information about the wp-trac mailing list