How do I translate a custom module theme file?
function bonds_graph_theme($existing, $type, $theme, $path)
{
$items = array();
$items[BONDS_GRAPH_MODULE_NAME] = array(
'arguments' => array(),
'file' => 'inc/theme.inc',
'template' => 'tpl/bonds_graph',
);
return $items;
}
The theme file has a translatable string
<?php print date('Y') . ' ' . t('Issuance'); ?>
The language file zh-hans.po has the translation
#: tpl/bonds_graph.tpl.php:7
msgid "Issuance"
msgstr "发行"
The site language is set. How do I get the string translated?