get_t

includes/bootstrap.inc, line 1093

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.

▾ 13 functions call get_t()

batch_process in includes/form.inc
Process the batch.
batch_set in includes/form.inc
Open a new batch.
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 and do status reporting.
menu_install in modules/menu/menu.install
Implementation of hook_install().
system_requirements in modules/system/system.install
Test and report Drupal installation requirements.
theme_form_element in includes/form.inc
Return a themed form element.
unicode_requirements in includes/unicode.inc
Return Unicode library status and errors.
_form_validate in includes/form.inc
Performs validation on form elements. First ensures required fields are completed, #maxlength is not exceeded, and selected options were in the list of options given to the user. Then calls user-defined validators.
_locale_batch_build in includes/locale.inc
Build a locale batch from an array of files.
_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

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

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.