#6909 closed defect (bug) (fixed)
Avoid using HTML tags in translation strings (bp-blogs/bp-blogs-template.php)
| Reported by: | ramiy | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.6 |
| Component: | I18N | Version: | |
| Severity: | normal | 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
@
10 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.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.