[wp-trac] [WordPress Trac] #30972: Better support for multi-line comments in StringExtractor

WordPress Trac noreply at wordpress.org
Sat Jan 10 04:21:11 UTC 2015


#30972: Better support for multi-line comments in StringExtractor
----------------------------+-----------------------
 Reporter:  SergeyBiryukov  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  4.2
Component:  I18N            |    Version:  3.8
 Severity:  normal          |   Keywords:  has-patch
  Focuses:                  |
----------------------------+-----------------------
 Background: #30603

 [source:tags/4.1/src/wp-content/themes/twentyfourteen/functions.php#L209
 Twenty Fourteen's translator comment] is missing from GlotPress, because
 translator comments currently cannot start with an empty line, see
 [25908].

 A simple fix is just to remove the empty line.

 However, there's a minor issue in our extract script that causes an extra
 asterisk to appear in the comment text (currently displayed for Twenty
 Twelve and Twenty Thirteen, see the screenshot).

 The patch fixes both the empty line and the stray asterisk issues.

 This would also allow us to revert [30790] for Twenty Fifteen. Squeezing
 translator comments into a single line makes the file harder to read and
 should not be necessary.

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


More information about the wp-trac mailing list