Message

Extends \LocalizationAppModel

Localization Message Model

package

Localization

subpackage

Model

Methods

Build message string for po file

_buildMsgstr(string $message, integer $limit = 500) : string

Arguments

$message

string

$limit

integer

Response

string

Save js localization into file

_exportJsLocale(string $code, array $data) : boolean

Arguments

$code

string

Language code

$data

array

Response

boolean

True on succes

Save php localization into file

_exportLocale(string $code, array $data) : boolean

Arguments

$code

string

Language code

$data

array

Response

boolean

True on succes

Export all messages to files

export() : boolean

Response

boolean

True on success

Return message with translations linked by language ids

getById(integer $id) : array

Arguments

$id

integer

Response

array

Save associated (only changed/new associated records)

saveAssociatedChanged(array $data, array $options = array()) : mixed

Arguments

$data

array

$options

array

Response

mixed

If atomic: True on success, or false on failure. Otherwise: array similar to the $data array passed, but values are set to true/false depending on whether each record saved successfully.

Properties

{@inheritdoc}

validate : array
var

Type(s)

array

{@inheritdoc}

hasMany : array
var

Type(s)

array

{@inheritdoc}

useDbConfig : string
inherited
var

Type(s)

string

{@inheritdoc}

actsAs : array
inherited
var

Type(s)

array

{@inheritdoc}

recursive : integer
inherited
var

Type(s)

integer

Translations

Translations : \Translation

Translation model

Type(s)

\Translation

References

References : \MessageReference

Message Reference model

Type(s)

\MessageReference