#41645 closed defect (bug) (fixed)
i18n: Avoid using HTML tags in translation strings (wp-activate.php)
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | I18N | Keywords: | has-patch |
Focuses: | multisite | Cc: |
Description
The old translation string:
Your site at <a href="%1$s">%2$s</a> is active. You may now log in to your site using your chosen username of “%3$s”. Please check your email inbox at %4$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%5$s">reset your password</a>.
Is using <a href="%1$s">%2$s</a>
. This can be replaced with a simple %1$s
moving the HTML tags out of the string. Making is much easier for translation, Especially in RTL languages like Hebrew where bi-directional languages are difficult to handle.
Attachments (2)
Change History (11)
#2
@
8 years ago
- Component changed from Text Changes to I18N
- Focuses multisite added
- Milestone changed from Awaiting Review to 4.9
- Owner set to SergeyBiryukov
- Status changed from new to reviewing
#3
@
7 years ago
- Summary changed from Simplify translation string (in wp-activate.php file) to i18n: Avoid using HTML tags in translation strings (wp-activate.php)
This ticket was mentioned in Slack in #core-multisite by jeremyfelt. View the logs.
7 years ago
Note: See
TracTickets for help on using
tickets.
Old string:
Your site at <a href="%1$s">%2$s</a> is active. You may now log in to your site using your chosen username of “%3$s”. Please check your email inbox at %4$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%5$s">reset your password</a>.
New string:
'Your site at %1$s is active. You may now log in to your site using your chosen username of “%2$s”. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%4$s">reset your password</a>.