phpDocumentor

FrontendTranslations

Class FrontendTranslations

Table of Contents

$js  : Translations
$jsEngine  : Translations
$vue  : Translations
__construct()  : mixed
FrontendTranslations constructor.
addJsEngineSection()  : void
Adds the translation data of a whole section to the jsEngine translations.
addJsEngineTranslation()  : void
Adds a new translation to the jsEngine translations.
addJsSection()  : void
Adds the translation data of a whole section to the js translations.
addJsTranslation()  : void
Adds a new translation to the js translations.
addVueSection()  : void
Adds the translation data of a whole section to the vue translations.
addVueTranslation()  : void
Adds a new translation to the vue translations.
hasJsEngineTranslations()  : bool
Checks if at least one jsEngine translation is available.
hasJsTranslations()  : bool
Checks if at least one js translation is available.
hasVueTranslations()  : bool
Checks if at least one vue translation is available.
serializeJsEngineTranslations()  : string
Serializes the jsEngine translations into a json string.
serializeJsTranslations()  : string
Serializes the js translations into a json string.
serializeVueTranslations()  : string
Serializes the vue translations into a json string.

Properties

Methods

addJsEngineSection()

Adds the translation data of a whole section to the jsEngine translations.

public addJsEngineSection(string $section) : void
Parameters
$section : string
Return values
void

addJsEngineTranslation()

Adds a new translation to the jsEngine translations.

public addJsEngineTranslation(string $key, string $phraseOrSection[, string|null $section = null ]) : void
Parameters
$key : string
$phraseOrSection : string
$section : string|null = null
Return values
void

addJsSection()

Adds the translation data of a whole section to the js translations.

public addJsSection(string $section) : void
Parameters
$section : string
Return values
void

addJsTranslation()

Adds a new translation to the js translations.

public addJsTranslation(string $key, string $phraseOrSection[, string|null $section = null ]) : void
Parameters
$key : string
$phraseOrSection : string
$section : string|null = null
Return values
void

addVueSection()

Adds the translation data of a whole section to the vue translations.

public addVueSection(string $section) : void
Parameters
$section : string
Return values
void

addVueTranslation()

Adds a new translation to the vue translations.

public addVueTranslation(string $key, string $phraseOrSection[, string|null $section = null ]) : void
Parameters
$key : string
$phraseOrSection : string
$section : string|null = null
Return values
void

hasJsEngineTranslations()

Checks if at least one jsEngine translation is available.

public hasJsEngineTranslations() : bool
Return values
bool

hasJsTranslations()

Checks if at least one js translation is available.

public hasJsTranslations() : bool
Return values
bool

hasVueTranslations()

Checks if at least one vue translation is available.

public hasVueTranslations() : bool
Return values
bool

serializeJsEngineTranslations()

Serializes the jsEngine translations into a json string.

public serializeJsEngineTranslations() : string
Return values
string

serializeJsTranslations()

Serializes the js translations into a json string.

public serializeJsTranslations() : string
Return values
string

serializeVueTranslations()

Serializes the vue translations into a json string.

public serializeVueTranslations() : string
Return values
string

Search results