Opened 3 years ago
Closed 3 years ago
#50740 closed defect (bug) (fixed)
i18n: Merge similar translation strings in privacy request statuses
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | I18N | Keywords: | has-screenshots has-patch |
Focuses: | administration | Cc: |
Description
The wp-includes/post.php
file has a create_initial_post_types()
function that registers initial post types & statuses.
When registering Privacy Statuses (Pending, Confirmed, Failed, Completed), translation string use _x()
context function.
Below we have the _wp_privacy_statuses()
function that returns privacy statuses. This function uses regular __()
function without any context.
The same 4 strings have 8 translation strings in the translate system bloating the total number of translation strings.
We can merge those translation strings by using context functions inside _wp_privacy_statuses()
.
See the screenshot from the translation system and the attached patch.
Attachments (6)
Change History (12)
Note: See
TracTickets for help on using
tickets.
New patch, generated against trunk/wordpress-develop and not the standalone installation