Formagic translator interface

package Formagic\Translator
author Florian Sonnenburg
since 1.0.0 First time introduced

 Methods

Alias for {@see translate()}

_(string $string, array $arguments = array()) : string

Parameters

$string

string

The string to be translated

$arguments

array

Array of arguments to be inserted into the string

Returns

stringThe translated string

Translates a string or returns it if no translator is set.

translate(string $string, array $arguments = array()) : string

Parameters

$string

string

The string to be translated

$arguments

array

Array of arguments to be inserted into the string

Returns

stringThe translated string