LANG - Language configuration 

requireApprovedLocalizations

requireApprovedLocalizations
Type
bool
Path
$GLOBALS['TYPO3_CONF_VARS']['LANG']['requireApprovedLocalizations']
Default
true

Changed in version 14.0

This option has been moved from $GLOBALS['TYPO3_CONF_VARS']['SYS']['lang']['requireApprovedLocalizations'].

The attribute approved of the XLIFF standard is respected by TYPO3 since version 12.0 when parsing XLF files. This attribute can either have the value yes or no and indicates whether the translation is final or not.

EXT:my_extension/Resources/Private/Language/locallang.xml
<trans-unit id="label2" approved="yes">
    <source>This is label #2</source>
    <target>Ceci est le libellé no. 2</target>
</trans-unit>
Copied!

This setting can be used to control the behavior:

true
Only translations with the attribute approved set to yes will be used. Any non-approved translation (value is set to no) will be ignored. If the attribute approved is omitted, the translation is still taken into account.
false
All translations are used.

loader

loader
Type
array
Path
$GLOBALS['TYPO3_CONF_VARS']['LANG']['loader']

Changed in version 14.0

This option is a predecessor of $GLOBALS['TYPO3_CONF_VARS']['SYS']['lang']['parser'].

Configures custom translation loaders.

format

format
Type
bool
Path
$GLOBALS['TYPO3_CONF_VARS']['LANG']['format']
Default
true

Changed in version 14.0

This option has been moved from $GLOBALS['TYPO3_CONF_VARS']['SYS']['lang']['format'].

availableLocales

availableLocales
Type
array
Path
$GLOBALS['TYPO3_CONF_VARS']['LANG']['availableLocales']
Default
['default']

Changed in version 14.0

This option has been moved from $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['lang']['availableLanguages'].

resourceOverrides

resourceOverrides
Type
array
Path
$GLOBALS['TYPO3_CONF_VARS']['LANG']['resourceOverrides']
Default
[]

Changed in version 14.0

This option has been moved from $GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride'].

Allows overriding XLIFF files. This applies not only to translations but also to default language files.

See also: Custom translations

The syntax is as follows:

$GLOBALS['TYPO3_CONF_VARS']['LANG']['resourceOverrides']
    ['EXT:frontend/Resources/Private/Language/locallang_tca.xlf'][]
        = 'EXT:examples/Resources/Private/Language/custom.xlf';
// Override a German ("de") translation
$GLOBALS['TYPO3_CONF_VARS']['LANG']['resourceOverrides']['de']
    ['EXT:news/Resources/Private/Language/locallang_modadministration.xlf'][]
        = 'EXT:examples/Resources/Private/Language/Overrides/de.locallang_modadministration.xlf';
Copied!