[wp-trac] [WordPress Trac] #28831: installation interface language doesn't include Simplified Chinese
WordPress Trac
noreply at wordpress.org
Thu Aug 21 00:42:51 UTC 2014
#28831: installation interface language doesn't include Simplified Chinese
--------------------------+------------------------
Reporter: wpchina.org | Owner: nacin
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 4.0
Component: I18N | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses: ui
--------------------------+------------------------
Comment (by SergeyBiryukov):
Same problem with "English (Australia)", "English (Canada)", and "English
(UK)": only the latter makes it to the list.
Looks like we can't use ISO codes as array keys without inadvertently
skipping some languages, and should probably use locale slugs instead (or
in addition), which are unique.
[source:trunk/src/wp-admin/includes/upgrade.php?rev=29372#L2232
wp_get_available_translations_from_api()] uses `language` field as a key,
which appears to be `wp_locale`.
[attachment:28831.patch] is a patch for the API. No core changes are
needed (I think).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28831#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list