\Cake\ChronosTranslator

Basic english only 'translator' for diffForHumans()

Summary

Methods
Properties
Constants
exists()
plural()
singular()
$strings
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$strings

$strings : array

Translation strings.

Type

array

Methods

exists()

exists(string  $key) : boolean

Check if a translation key exists.

Parameters

string $key

The key to check.

Returns

boolean —

Whether or not the key exists.

plural()

plural(string  $key, integer  $count, array  $vars = array()) : string

Get a plural message.

Parameters

string $key

The key to use.

integer $count

The number of items in the translation.

array $vars

Additional context variables.

Returns

string —

The translated message or ''.

singular()

singular(string  $key, array  $vars = array()) : string

Get a singular message.

Parameters

string $key

The key to use.

array $vars

Additional context variables.

Returns

string —

The translated message or ''.