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

WordPress Trac noreply at wordpress.org
Tue Nov 1 16:45:01 UTC 2016


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

Comment (by AramZS):

 I can confirm this issue.

 After some testing it is clear that some plugins are calling the
 translation functions before the user functions proposed to be added to
 the translation process in this ticket have been setup. As a result,
 anyone calling `_x` or `load_plugin_textdomain` at an earlier level than
 the intended action call of `init` (those functions may be available
 earlier than `init`, but that's what I tested with) described in the
 documentation will cause a fatal PHP error when the translation function
 attempts to call the user function before it has been set up.

 Arguably these errors would only occur if the plugin's text domain is
 setup outside of the recommended methodology, but considering those setups
 worked perfectly before this patch and then cause total site failure
 after, perhaps we want some gentler transition or depreciation process?

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


More information about the wp-trac mailing list