#38822 closed defect (bug) (fixed)
REST API: Clarify parameters when used in error strings
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.7 | Priority: | normal |
Severity: | normal | Version: | 4.7 |
Component: | I18N | Keywords: | has-patch 2nd-opinion |
Focuses: | rest-api | Cc: |
Description
Example: In WP_REST_Comments_Controller::create_item_permissions_check()
we have 'Sorry, you are not allowed to set karma for comments.' and 'Sorry, you are not allowed to set status for comments.'. karma
and status
are parameters which shouldn't be translated to something else.
Attachments (3)
Change History (16)
#2
@
8 years ago
It's a good change, it also merges the three translation strings into one string.
Related ticket #38808
This ticket was mentioned in Slack in #core by helen. View the logs.
8 years ago
#6
@
8 years ago
@ocean90 I've reviewed the current messages. We don't use "set" in non of the other messages. We do use "edit" or "update".
Two alternatives for your patch:
- Sorry, you are not allowed to edit comment %s.
- Sorry, you are not allowed to update comment %s.
#7
@
8 years ago
- Owner set to joehoyle
- Status changed from new to assigned
38822.2.diff updates the patch to remove karma
, and use 'edit' instead of 'set'
This ticket was mentioned in Slack in #core-restapi by danielbachhuber. View the logs.
8 years ago
#10
@
8 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Changeset [39302] added the "Sorry, you are not allowed to set author_ip for comments." error message. It needs to be updated too.
Related: #38803