| Versionen | |
|---|---|
| drupal6 – drupal7 | get_t() |
Return the name of the localisation function. Use in code that needs to run both during installation and normal operation.
includes/
<?php
function get_t() {
static $t;
if (is_null($t)) {
$t = function_exists('install_main') ? 'st' : 't';
}
return $t;
}
?>
Kommentare
Kommentar hinzufügen