Opened 9 years ago
Closed 9 years ago
#41668 closed defect (bug) (fixed)
i18n: Use %s placeholders in wp-admin/includes/template.php
| Reported by: | ramiy | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.9 |
| Component: | I18N | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | template |
Description
This patch replaces the path, the functions and the actions with %s placeholder. This way translators can't mistakenly changes to wrong function names.
Old translation string:
Likely direct inclusion of wp-admin/includes/template.php in order to use add_meta_box(). This is very wrong. Hook the add_meta_box() call into the add_meta_boxes action instead.
New translation string:
Likely direct inclusion of %1$s in order to use %2$s. This is very wrong. Hook the %2$s call into the %3$s action instead.
The patch also adds translators comments and <code> tags around the function/action names.
Attachments (2)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 41906: