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

WordPress Trac noreply at wordpress.org
Wed Jun 15 10:34:21 UTC 2022

#53125: Logged error messages should not be translateable
 Reporter:  malthert               |       Owner:  SergeyBiryukov
     Type:  defect (bug)           |      Status:  closed
 Priority:  normal                 |   Milestone:  6.1
Component:  Database               |     Version:
 Severity:  normal                 |  Resolution:  fixed
 Keywords:  2nd-opinion has-patch  |     Focuses:
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


 In [changeset:"53505" 53505]:
 #!CommitTicketReference repository="" revision="53505"
 Database: Don't translate the "WordPress database error" message in the
 error log.

 When using multilingual websites, this string could end up with multiple
 different translations in the error log, making it less actionable.

 Unlike errors displayed to the user, a general consensus for software is
 that errors in logs should always be in English. Since MySQL errors are
 also returned in English, this brings more consistency to the logs.

 Follow-up to [6391], [8168], [19760].

 Props malthert.
 Fixes #53125.

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

More information about the wp-trac mailing list