#39660 closed enhancement (fixed)
Missing singular placeholder, needed for some languages on comments.php
Reported by: | bplv | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | 4.7.1 |
Component: | Bundled Theme | Keywords: | has-patch |
Focuses: | Cc: |
Description
On comments.php of most of the bundled themes the singular form of the string is not available.
Attachments (2)
Change History (27)
#1
in reply to:
↑ description
@
8 years ago
#2
follow-up:
↓ 15
@
8 years ago
- Keywords needs-patch added
- Milestone changed from Awaiting Review to Future Release
Hi @bplv, welcome to Trac! Thanks for the ticket.
This is fixed in Twenty Sixteen and Twenty Seventeen, I guess we could update older themes to use proper plural forms here as well.
#3
@
8 years ago
- Keywords has-patch added; needs-patch removed
Hello, @SergeyBiryukov
I have added the patch.
Thank you.
This ticket was mentioned in Slack in #core by dshanske. View the logs.
8 years ago
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
8 years ago
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
8 years ago
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
7 years ago
#13
@
7 years ago
- Keywords has-unit-tests added; needs-testing removed
Hello @SergeyBiryukov,
I have merge 39660.diff to this version and it's working fine in my local environment.
#15
in reply to:
↑ 2
;
follow-up:
↓ 16
@
7 years ago
Replying to SergeyBiryukov:
This is fixed in Twenty Sixteen and Twenty Seventeen
Just noticed get_comments_number()
returns a string, and Twenty Sixteen compares it to an integer, which doesn't work as expected. Twenty Seventeen does it correctly.
#16
in reply to:
↑ 15
@
7 years ago
Updated the patch to .2 to address this as well. Tested also all the themes again and it seems fine here.
Replying to SergeyBiryukov:
Just noticed
get_comments_number()
returns a string, and Twenty Sixteen compares it to an integer, which doesn't work as expected. Twenty Seventeen does it correctly.
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
7 years ago
This ticket was mentioned in Slack in #meta-wordcamp by sergey. View the logs.
7 years ago
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
7 years ago
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
7 years ago
#24
@
7 years ago
- Resolution set to fixed
- Status changed from reviewing to closed
Twenty Fourteen, Fifteen, Sixteen, and Seventeen use the recommended pattern now.
I guess Twenty Thirteen and older themes should be left as is, as they are used with WP versions that don't support language packs, so updating translations is not a trivial task there.
I have found this via code sniffer which shows this report
Line: 31 ERROR Missing singular placeholder, needed for some languages.
According to codex this is the proper placeholder,
Which is not the case in most of the bundled themes.