get_t

Definition

get_t()
drupal/includes/bootstrap.inc, line 2038

Description

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

Code

function get_t() {
  static $t;
  // This is not converted to drupal_static because there is no point in
  // resetting this as it can not change in the course of a request.
  if (!isset($t)) {
    $t = drupal_installation_attempted() ? 'st' : 't';
  }
  return $t;
}