get_t
- Versions
- 5 – 7
get_t()
Return the name of the localization function. Use in code that needs to run both during installation and normal operation.
Code
includes/bootstrap.inc, line 1688
<?php
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;
}
?>Login or register to post comments 