get_t

Versions
5 – 7
get_t()

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

▾ 7 functions call get_t()

db_check_setup in includes/database.pgsql.inc
Verify if the database is set up correctly.
db_status_report in includes/database.pgsql.inc
Report database status.
hook_requirements in developer/hooks/install.php
Check installation requirements that need to be satisfied.
system_requirements in modules/system/system.install
Test and report Drupal installation requirements.
unicode_requirements in includes/unicode.inc
Return Unicode library status and errors.
_locale_import_message in includes/locale.inc
Sets an error message occurred during locale file parsing.
_unicode_check in includes/unicode.inc
Perform checks about Unicode support in PHP, and set the right settings if needed.

Code

includes/bootstrap.inc, line 1020

<?php
function get_t() {
  static $t;
  if (is_null($t)) {
    $t = function_exists('install_main') ? 'st' : 't';
  }
  return $t;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.