[wp-trac] [WordPress Trac] #38485: Some part of the UI can be in the wrong language (edge cases)

WordPress Trac noreply at wordpress.org
Fri Oct 28 15:44:05 UTC 2016


#38485: Some part of the UI can be in the wrong language (edge cases)
---------------------------------------+-------------------------
 Reporter:  afercia                    |       Owner:  swissspidy
     Type:  defect (bug)               |      Status:  assigned
 Priority:  normal                     |   Milestone:  4.7
Component:  I18N                       |     Version:  trunk
 Severity:  normal                     |  Resolution:
 Keywords:  has-screenshots has-patch  |     Focuses:
---------------------------------------+-------------------------

Comment (by davecpage):

 In testing i've noticed that plugins which use `load_plugin_textdomain`
 such as Akismet show in the site language e.g. Spanish, even though the
 user language is set to English. This appears to be because within the
 function it uses `get_locale()`
 https://core.trac.wordpress.org/browser/trunk/src/wp-
 includes/l10n.php#L796 rather than the newer `get_user_locale()`.

 However does this raise the problem of plugins which have a mix of content
 in the admin and the frontend?

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


More information about the wp-trac mailing list