[wp-trac] [WordPress Trac] #56234: error logged messages should not be translateable

WordPress Trac noreply at wordpress.org
Sat Jul 16 08:19:59 UTC 2022

#56234: error logged messages should not be translateable
 Reporter:  malthert      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
 e.g. _doing_it_wrong,...

 - general consensus for software is that errors in logs should always be
 in English

 - these errors will only show with WP_DEBUG enabled, therefore a
 development errors and developers who work with WP have to speak English,
 otherwise wouldn't be able to understand the code in the first place

 - even if you are not a developer but use WP_DEBUG, these are not issues
 you can fix yourself. You need to get in touch with your hoster, your
 developer, the plugin developer from where this error is from or even WP
 core. This is much easier if the error is in English and you can google it
 easily. Furthermore it's much easier to only receive these errors in
 English for the support who you contact - rather than in the 50 different
 supported languages by WP.

 - many (most?) plugins do not pass a translatable strings to these, which
 means you end up with a language mix-mash

 - when using a multi-lingual site, we (= the admin) get the error in all
 kinds of languages, we do not even speak (since the translations were
 created by contracted agencies). Making it unnecessarily hard to track
 down the exact English text, so we can check it in code.

 In some instances where these may be used translation may not be loaded
 yet (which is why we have a function exists "__" check), which means that
 in some cases you end up with english errors anyway.

 The sensible thing to do is, to remove translations from error logged
 things all together.
 I'm happy to provide a PR.

 Related https://core.trac.wordpress.org/ticket/53125 (and
 https://core.trac.wordpress.org/ticket/56198#comment:6 which made me open
 this ticket finally)

Ticket URL: <https://core.trac.wordpress.org/ticket/56234>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list