You are here

function get_t in Drupal 5

Same name and namespace in other branches
  1. 6 includes/bootstrap.inc \get_t()
  2. 7 includes/bootstrap.inc \get_t()

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

8 calls to get_t()
db_check_setup in includes/database.pgsql.inc
Verify if the database is set up correctly.
db_status_report in includes/database.mysqli.inc
Report database status.
db_status_report in includes/database.mysql.inc
Report database status.
db_status_report in includes/database.pgsql.inc
Report database status.
system_requirements in modules/system/system.install
Test and report Drupal installation requirements.

... See full list

File

includes/bootstrap.inc, line 1020
Functions that need to be loaded on every Drupal request.

Code

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