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

WordPress Trac noreply at wordpress.org
Sat Jul 16 18:18:06 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:  I18N          |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  2nd-opinion   |     Focuses:
--------------------------+------------------------------

Comment (by audrasjb):

 I'd kindly disagree :)

 Let's take `register_nav_menus()`, for example.
 It throws the following `_doing_it_wrong` message:
 {{{
 _doing_it_wrong( __FUNCTION__, __( 'Nav menu locations must be strings.'
 ), '5.3.0' );
 }}}

 I don't see any point in not translating this message. It is a simple,
 clear, message and it makes sense when it's translated. Why shouldn't we
 translate this? It doesn’t contain any code at all.

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


More information about the wp-trac mailing list