[wp-trac] [WordPress Trac] #56551: Don't internationalize (translate) messages in `_doing_it_wrong()`

WordPress Trac noreply at wordpress.org
Sun Sep 11 22:36:25 UTC 2022


#56551: Don't internationalize (translate) messages in `_doing_it_wrong()`
--------------------------+-----------------------------
 Reporter:  helen         |      Owner:  (none)
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Text Changes  |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Localizing WordPress is very important and good; however, IMO it doesn't
 make sense for the error messages emitted by `_doing_it_wrong()` to be
 translated. This is because when you have a developer-facing error message
 one of the primary uses is to copy-paste it to search for what to do about
 it. Our messages are pretty human-friendly but it still seems like extra
 work for a net-negative outcome.

 If we really want them to be translated in UI, then I would suggest that
 the message show in both the localized version as well as the non-
 localized (English) one.

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


More information about the wp-trac mailing list