Opened 6 years ago
Closed 6 years ago
#50740 closed defect (bug) (fixed)
i18n: Merge similar translation strings in privacy request statuses
| Reported by: | ramiy | Owned by: | whyisjake |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.5 |
| Component: | I18N | Version: | |
| Severity: | normal | Keywords: | has-screenshots has-patch |
| Cc: | Focuses: | administration |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
New patch, generated against trunk/wordpress-develop and not the standalone installation