[wp-trac] [WordPress Trac] #31319: Use first translation iso instead of by key '1'
WordPress Trac
noreply at wordpress.org
Sat Feb 14 13:17:52 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 ocean90):
Replying to [comment:10 SergeyBiryukov]:
> It does for Hazaragi, so would be nice to fix this either way.
Why? The ISO code is only used for the lang attribute. I could install
Hazaragi without problems.
We could change the API to return empty values of languages which don't
have an ISO 639-1or ISO 639-2 code, but I don't want to print empty values
for the lang attribute, so [31447] is the right fix here.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31319#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list