PHP Class Prado\I18N\Translation

Provides translation using a static MessageFormatter.
Inheritance: extends Prado\TComponent
Datei anzeigen Open project: pradosoft/prado Class Usage Examples

Protected Properties

Property Type Description
$formatters array The array of formatters. We define 1 formatter per translation catalog This is a class static variable.

Public Methods

Method Description
formatter ( $catalogue = 'messages' ) : MessageFormat Get the static formatter from this component.
init ( $catalogue = 'messages' ) Initialize the TTranslate translation components
saveMessages ( ) Save untranslated messages to the catalogue.

Method Details

formatter() public static method

Get the static formatter from this component.
See also: localize()
public static formatter ( $catalogue = 'messages' ) : MessageFormat
return Prado\I18N\core\MessageFormat formattter.

init() public static method

Initialize the TTranslate translation components
public static init ( $catalogue = 'messages' )

saveMessages() public static method

Save untranslated messages to the catalogue.
public static saveMessages ( )

Property Details

$formatters protected_oe static_oe property

The array of formatters. We define 1 formatter per translation catalog This is a class static variable.
protected static array $formatters
return array