The API documentation for t() currently disallows all markup. Per webchick and others on IRC, t() can and should include markup when it's necessary for the context of the translation. The API should be updated to clarify this rule.

Note: This issue originated here: #291135: Incorrect use of t() in hook_help() documentation.

Comments

johnnoc’s picture

Project: Documentation » Drupal core
Version: » 6.x-dev
Component: Correction/Clarification » documentation

Moving to the correct queue and component

todd nienkerk’s picture

Status: Active » Fixed

Looks like the API was updated recently. The documentation now allows the use of markup. Marking as fixed.

Status: Fixed » Closed (fixed)

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