[wp-trac] [WordPress Trac] #34249: Some issues with _doing_it_wrong()

WordPress Trac noreply at wordpress.org
Sat Oct 10 18:42:45 UTC 2015


#34249: Some issues with _doing_it_wrong()
--------------------------+-----------------------------
 Reporter:  pavelevap     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  I18N          |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 `$message` in `_doing_it_wrong()` function calls should always end with
 point, because it is part of the whole paragraph, see attached screenshot.

 `$version` in `_doing_it_wrong()` function calls should always be only
 WordPress version, because it is part of other sentence `This message was
 added in version %s`.

 For missing callable function it would be helpfull refering to
 `add_shortcode()` instead of `do_shortcode_tag()`, I guess.

 We are also missing some translators comments (not part of current patch).
 For example `%s must set a database connection for use with escaping.` is
 hard for translators when they do not know what is `%s`.

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


More information about the wp-trac mailing list