\

Namespaces

Anax

Functions

t()

t(string  $str, array  $args = array()) : string

i18n, internationalization, send all strings though this function to enable i18n. Inspired by Drupal“s t()-function.

Parameters

string $str

the string to check up for translation.

array $args

associative array with arguments to be replaced in the str.

  • !variable: Inserted as is. Use this for text that has already been sanitized.
  • @variable: Escaped to HTML using htmlEnt(). Use this for anything displayed on a page on the site.

Returns

string —

the translated string.