As mentioned in the paragraph "example of incorrect usage of t():" of the t() API documentation, there shouldn't be any HTML code in language dependent strings. The translation importer of Drupal argues about
, but not about
which does not mean, that this would be better.
is a lot more worse as it makes your Drupal site not anymore validating as XHTML.

I added a patch which splits up the translated string into two parts and concats them with the
-Tag in-between.

CommentFileSizeAuthor
yui-1.1rc2-incorrect-t.patch658 bytesxhochy

Comments

bakyildiz’s picture

Assigned: Unassigned » bakyildiz
Status: Needs review » Patch (to be ported)

patch applied. Thank you.

bakyildiz’s picture

Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.