diff --git a/includes/common.inc b/includes/common.inc index cd694fd2ae15a6b50068e2bd85f78ae3a589d5b9..ea353d192550d602f1e9bf4e40ed79fa557ba28f 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -1596,6 +1596,14 @@ function drupal_attributes($attributes = array()) { * internal links output by modules should be generated by this function if * possible. * + * However, for links enclosed in translatable text you should use t() and + * embed the HTML anchor tag directly in the translated string. For example: + * @code + * t('Visit the settings page', array('@url' => url('admin'))); + * @endcode + * This keeps the context of the link title ('settings' in the example) for + * translators. + * * @param $text * The link text for the anchor tag. * @param $path