Opened 8 years ago
Closed 8 years ago
#38383 closed defect (bug) (fixed)
Twenty Seventeen: Incorrect use of `_x()` in `twentyseventeen_posted_on()`
Reported by: | ocean90 | Owned by: | karmatosed |
---|---|---|---|
Milestone: | 4.7 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Bundled Theme | Keywords: | good-first-bug needs-testing has-patch |
Focuses: | Cc: |
Description
_x() is used to differ two similar strings with different meanings. Translators comments are used to describe placeholders.
Same for twentyseventeen_time_link(), see https://github.com/WordPress/twentyseventeen/blob/a15f8d1ed4003007b8e25330dc787cda7b7a32f7/inc/template-tags.php#L48.
Attachments (4)
Change History (13)
#4
@
8 years ago
- Keywords needs-patch added; has-patch needs-testing removed
Thanks for your patch, @dineshc.
The "by %s" string needs a translators comment which explains the placeholder.
The other string should be improved so that the span tag is available for translators: __( '<span class="screen-reader-text">Posted on </span>%s', 'twentyseventeen' )
#8
@
8 years ago
38383.4.patch builds on the work of @dineshc and @mbelchev and adds the needed translator comments.
Note: See
TracTickets for help on using
tickets.
I have attached diff file. Please check the solution for this ticket.