\Xima\XmTools\Classes\Typo3\HelperLocalization

Summary

Methods
Properties
Constants
getDictionary()
printDictionary()
getTranslations()
getLangKey()
No public properties found
XLIFF_DEFAULT_LANG
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

XLIFF_DEFAULT_LANG

XLIFF_DEFAULT_LANG

Methods

getDictionary()

getDictionary(array  $additionalExtensionNames = array(),   $lang = null) : \Xima\XmTools\Classes\Helper\Dictionary

Get translations of current extension, xm_tools and optional any more extensions. Supports conversion to js file and loading it as well.

Parameters

array $additionalExtensionNames

Other extensions to get translations of.

$lang

Returns

\Xima\XmTools\Classes\Helper\Dictionary

An array of translations by key in the current language.

printDictionary()

printDictionary(  $additionalExtensionNames = array()) 

Helper method for development: list all available translations of the selected extensions, ordered alphabetically.

Parameters

$additionalExtensionNames

getLangKey()

getLangKey(  $lang) : string

Returns the current lang key, 'default' if 'en' Specific return value for the XliffParser.

Parameters

$lang

Returns

string