function get_t

7.x bootstrap.inc get_t()
6.x bootstrap.inc get_t()

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

15 calls to get_t()
batch_process in drupal-6.x/includes/form.inc
Processes the batch.
batch_set in drupal-6.x/includes/form.inc
Opens a new batch.
db_check_setup in drupal-6.x/includes/database.pgsql.inc
Verify if the database is set up correctly.
db_status_report in drupal-6.x/includes/database.pgsql.inc
Report database status.
db_status_report in drupal-6.x/includes/database.mysqli.inc
Report database status.

... See full list

File

drupal-6.x/includes/bootstrap.inc, line 1228
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;
}