PHP Class Airship\Engine\Translation

Registry Singleton for keeping track of application state
Afficher le fichier Open project: paragonie/airship

Méthodes publiques

Méthode Description
format ( string $text, $params ) : string Translate a string with gettext(), then format the output
literal ( string $message, string $domain = 'default' ) : string Literal translation (provided by gettext())
lookup ( string $key, string $lang = 'en-us', $params ) : string Lookup a string from a language file

Method Details

format() public méthode

Translate a string with gettext(), then format the output
public format ( string $text, $params ) : string
$text string
$params
Résultat string

literal() public méthode

Literal translation (provided by gettext())
public literal ( string $message, string $domain = 'default' ) : string
$message string
$domain string
Résultat string

lookup() public méthode

Lookup a string from a language file
public lookup ( string $key, string $lang = 'en-us', $params ) : string
$key string
$lang string
$params
Résultat string