jdeinyqthn
New Member
I want to wrap a word in \[code\]<strong>\[/code\] tags. Is it correct to do that right in the \[code\]t()\[/code\] call, or am I supposed to do it some other way?\[code\]$help = '<p>' . t("Does this sample data look right for node type %node_type? If not, use your browser's <strong>back</strong> button to fix it on the previous page.", array('%node_type' => $_SESSION[NODE_TYPE_KEY])) . '</p>';\[/code\]Also, what about just dropped variables directly into \[code\]t()\[/code\], like this?\[code\] foreach ($term_info['term_fields'] as $vocab) { $options[$vocab] = t($vocab); // TODO: incorrect use of t()? }\[/code\]