Translate\Adapter\NativeArray::exists

public exists (mixed $index) Check whether is defined a translation key in the internal array

Translate\Adapter\NativeArray::query

public query (mixed $index, [mixed $placeholders]) Returns the translation related to the given key

Translate\Adapter\NativeArray

extends abstract class Phalcon\Translate\Adapter implements Phalcon\Translate\AdapterInterface, ArrayAccess Source on GitHub Allows to define translation lists using PHP arrays Methods public __construct (array $options) Phalcon\Translate\Adapter\NativeArray constructor public query (mixed $index, [mixed $placeholders]) Returns the translation related to the given key public exists (mixed $index) Check whether is defined a translation key in the internal array public setInterpolator (Phalcon\Tr

Translate\Exception

extends class Phalcon\Exception implements Throwable Source on GitHub Methods final private Exception __clone () inherited from Exception Clone the exception public __construct ([string $message], [int $code], [Exception $previous]) inherited from Exception Exception constructor public __wakeup () inherited from Exception ... final public string getMessage () inherited from Exception Gets the Exception message final public int getCode () inherited from Exception Gets the Exception code fin

Translate\InterpolatorInterface::replacePlaceholders

abstract public replacePlaceholders (mixed $translation, [mixed $placeholders]) ...

Translate\InterpolatorInterface

Source on GitHub Methods abstract public replacePlaceholders (mixed $translation, [mixed $placeholders]) ...

Translate\Adapter\Gettext::query

public string query (string $index, [array $placeholders]) Returns the translation related to the given key

Translate\Adapter\Gettext::setLocale

public setLocale (mixed $category, mixed $locale) Sets locale information // Set locale to Dutch $gettext->setLocale(LC_ALL, 'nl_NL'); // Try different possible locale names for german $gettext->setLocale(LC_ALL, '[email protected]', 'de_DE', 'de', 'ge');

Translate\Adapter\Gettext::setDirectory

public setDirectory (mixed $directory) Sets the path for a domain // Set the directory path $gettext->setDirectory('/path/to/the/messages'); // Set the domains and directories path $gettext->setDirectory([ 'messages' => '/path/to/the/messages', 'another' => '/path/to/the/another' ]);

Translate\Adapter\Gettext::resetDomain

public resetDomain () Sets the default domain