Get the t function to work in a custom php file I am having a custom hand coded PHP page within a Drupal module that loads in a fancybox.
I want the Drupal t() function to work in it. What should I include in the file to make it function?
Include these lines in your php file

define('DRUPAL_ROOT', getcwd());

include_once DRUPAL_ROOT . '/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);