#6909 closed defect (bug) (fixed)
Avoid using HTML tags in translation strings (bp-blogs/bp-blogs-template.php)
Reported by: | ramiy | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 2.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | I18N | Keywords: | has-patch |
Cc: |
Description
Old string:
<a href="%1$s">%2$s</a> is your new site. <a href="%3$s">Login</a> as "%4$s" using your existing password.
New strings:
%s is your new site.
<a href="%1$s">Login</a> as "%2$s" using your existing password.
The attached patch splits the original string into two shorter and easy to translate strings.
Also, replacing <a href="%1$s">%2$s</a>
with %s
.
Attachments (1)
Change History (7)
#3
@
9 years ago
@DJPaul
This patch is splitting the original string into two strings. The first string is an informative text where you inform the user about the new site. The second string is a call-to-action to login to the site.
#4
@
8 years ago
- Milestone changed from Under Consideration to 2.6
Splitting seems acceptable in this case, though not much is gained from the split.
Note: See
TracTickets for help on using
tickets.
I don't like this patch because it splits a paragraph into multiple phrases. I expect there may be languages where people want to re-order the sentences, or continue to have just one.