Opened 10 years ago
Closed 10 years ago
#38383 closed defect (bug) (fixed)
Twenty Seventeen: Incorrect use of `_x()` in `twentyseventeen_posted_on()`
| Reported by: | ocean90 | Owned by: | karmatosed |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.7 |
| Component: | Bundled Theme | Version: | |
| Severity: | normal | Keywords: | good-first-bug needs-testing has-patch |
| Cc: | Focuses: |
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
@
10 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
@
10 years ago
38383.4.patch builds on the work of @dineshc and @mbelchev and adds the needed translator comments.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I have attached diff file. Please check the solution for this ticket.