[wp-trac] [WordPress Trac] #26511: Introduce a locale-switching function

WordPress Trac noreply at wordpress.org
Tue Sep 6 19:32:56 UTC 2016


#26511: Introduce a locale-switching function
--------------------------------------+------------------------
 Reporter:  johnbillion               |       Owner:
     Type:  feature request           |      Status:  reviewing
 Priority:  normal                    |   Milestone:  4.7
Component:  I18N                      |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------

Comment (by swissspidy):

 Oh, and regarding

 > * `get_available_languages()` returns only core languages, something to
 keep in mind.

 One shouldn't be able to switch to a non-existent locale. Are there many
 situations where a core language isn't available but a plugin has a
 translation for it? Shouldn't happen with language packs I think.

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


More information about the wp-trac mailing list