[wp-trac] [WordPress Trac] #28197: Fallback Languages
WordPress Trac
noreply at wordpress.org
Fri May 9 23:41:38 UTC 2014
#28197: Fallback Languages
---------------------------+------------------------------
Reporter: downstairsdev | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
---------------------------+------------------------------
Comment (by toscho):
I like the idea. I do the same in Multilingual Press for language
negotiation.
`substr( get_locale(), 0, 2)` will fail. For many languages the code has
three letters, because it is taken from ISO 639-2. Just use `strtok(
get_locale(), '_' )`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28197#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list