[wp-trac] [WordPress Trac] #53125: Error messages should not be translateable

WordPress Trac noreply at wordpress.org
Sat May 1 14:10:50 UTC 2021


#53125: Error messages should not be translateable
--------------------------+------------------------------
 Reporter:  malthert      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Database      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  2nd-opinion   |     Focuses:
--------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:   => 2nd-opinion
 * component:  General => Database


Comment:

 Thanks for the ticket!

 > General consensus for software is that errors in logs should always be
 in English. (unlike errors displayed to the user).

 Just noting that this message [source:tags/5.7.1/src/wp-includes/wp-
 db.php?marks=1491-1521#L1488 can also be displayed to the user], depending
 on the `$show_errors` property value, e.g. when `WP_DEBUG` and
 `WP_DEBUG_DISPLAY` are both true. That said, this does appear to be the
 only translatable message in core that is logged regardless of the
 `WP_DEBUG_LOG` value.

 I can see the point of having the message be consistently logged in
 English, but that would be inconsistent with pretty much any other error
 message in WordPress, they are generally all translated for better user
 experience.

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


More information about the wp-trac mailing list