get_t

Definition

get_t()
includes/bootstrap.inc, line 1052

Description

Return the name of the localisation function. Use in code that needs to run both during installation and normal operation.

Code

<?php
function get_t() {
  static $t;
  if (is_null($t)) {
    $t = function_exists('install_main') ? 'st' : 't';
  }
  return $t;
}
?>
 
 

Drupal is a registered trademark of Dries Buytaert.