Brickrouge
  • Namespace
  • Function
  • Tree

Namespaces

  • Brickrouge
    • Renderer
    • Tests
  • ICanBoogie
  • PHP

Classes

  • A
  • Actions
  • Alert
  • AssetsCollector
  • Button
  • CSSCollector
  • Dataset
  • Date
  • DateRange
  • DateTime
  • Document
  • DropdownMenu
  • Element
  • File
  • Form
  • Group
  • Iterator
  • JSCollector
  • Pager
  • Patchable
  • Popover
  • PopoverWidget
  • Ranger
  • RecursiveIterator
  • Salutation
  • Searchbox
  • SplitButton
  • Text

Interfaces

  • Validator

Exceptions

  • EmptyElementException

Functions

  • _array_flatten_callback
  • array_flatten
  • array_insert
  • check_session
  • dump
  • escape
  • escape_all
  • format
  • format_size
  • get_accessible_file
  • get_document
  • normalize
  • register_autoloader
  • render_exception
  • retrieve_form
  • retrieve_form_errors
  • stable_sort
  • store_form
  • store_form_errors
  • t

Function t

Translates a string to the current language or to a given language.

The native string language is supposed to be english (en).

The function is patchable by overriding the Brickrouge\Patchable::$callback_translate property and is patched to use the ICanBoogie translation features if the framework is available (see Brickrouge.php).

Namespace: Brickrouge
See: ICanBoogie\I18n\Translator
Located at lib/helpers.php

Parameters summary

string $str The native string to translate.
array $args = array() An array of replacements to make after the translation. The replacement is handled by the Brickrouge\format() function.
array $options = array() An array of additional options, with the following elements: - 'default': The default string to use if the translation failed. - 'scope': The scope of the translation.

Return value summary

mixed
Brickrouge API documentation generated by ApiGen 2.7.0