get_t

Definition

get_t()
includes/bootstrap.inc, line 1071

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;
}
?>
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.