Translator

Tool for translating strings used in Dotpay SDK. It can use different adapters of source file.

package

Default

Methods

Translate the given string replaced with.

__(string $input, array $params = array()) : string

Arguments

$input

string

String to translation

$params

array

Aray of params which should bee inserted to the result string

Response

string

Initialize the translator.

__construct(\Dotpay\Locale\Dotpay\Locale\Adapter\AbstractAdapter $adapter) 

Arguments

$adapter

\Dotpay\Locale\Dotpay\Locale\Adapter\AbstractAdapter

Adapter of source translations

Properties

Adapter of source translations

adapter : \Dotpay\Locale\Dotpay\Locale\Adapter\AbstractAdapter
var

Adapter of source translations

Type(s)

\Dotpay\Locale\Dotpay\Locale\Adapter\AbstractAdapter