
Originally Posted by
venablc
In the new pages I am creating what is the proper way and place to reference the appropriate language file?
At the moment I have
PHP Code:
include(DIR_WS_LANGUAGES . '/english/products_all.php');
in the template file (/includes/templates/template_default/templates/tpl_product_credential_default.php)
I'm sure this isn't correct as "english" shouldn't be hardcoded in like this.
Regards,
Chris V
Try this: (untested)
PHP Code:
$template = $GLOBALS['template_dir'];
include(DIR_WS_LANGUAGES . $template.'/products_all.php');
Cheers
Rod