You are here

function t_safe in Devel 6

Same name and namespace in other branches
  1. 5 devel.module \t_safe()
  2. 7 devel.module \t_safe()
4 calls to t_safe()
devel_exit in ./devel.module
devel_query_summary in ./devel.module
devel_shutdown_real in ./devel.module
See devel_shutdown() which registers this function as a shutdown function. Displays developer information in the footer.
devel_timer in ./devel.module
Displays page execution time at the bottom of the page.

File

./devel.module, line 981

Code

function t_safe($string, $args) {

  // get_t caused problems here with theme registry after changing on admin/build/modules. the theme_get_registry call is needed.
  if (function_exists('t') && function_exists('theme_get_registry')) {
    theme_get_registry();
    return t($string, $args);
  }
  else {
    strtr($string, $args);
  }
}