Xima\XmTools\Classes\Typo3\Helper\Localization

class Localization
getDictionary($additionalExtensionNames = array(), $lang = null)

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

Parameters:
  • $additionalExtensionNames (array) – Other extensions to get translations of.
  • $lang
Returns:

XimaXmToolsClassesHelperDictionary An array of translations by key in the current language.

printDictionary($additionalExtensionNames = array())

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

Parameters:
  • $additionalExtensionNames
getTranslations(XimaXmToolsClassesTypo3ModelExtension $extension, $lang)
Parameters:
  • $extension (XimaXmToolsClassesTypo3ModelExtension) –
  • $lang
getLangKey($lang)

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

Parameters:
  • $lang
Returns:

string