I created a custom page, with my custom module.
Hook_Menu
$items['registered-products/%'] = array(
'title' => t('Hello World'), // TRANSLATES FINE
'page callback' => 'mymodule_product_page',
'page arguments' => array(1),
'access arguments' => array('access content'),
'file' => 'includes/mymodule.product_page.inc',
);
Template File
I created a template file (.tpl.php) for my custom page, in here I have:
<?php print t('hello world'); ?> <!-- DOES NOT TRANSLATE -->
RESULT
The t()
translates in hook_menu, but on the template file it does not.
What do I have to do so the t()
works to on template file?