LANG - Language configuration
-
require
Approved , Type: boolLocalizations -
loader , Type: array
-
format , Type: bool
-
available
Locales , Type: array -
resource
Overrides , Type: array
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'] ['require Approved Localizations'] 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 valueyes
orno
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 toyes
will be used. Any non-approved translation (value is set tono
) will be ignored. If the attributeapproved
is omitted, the translation is still taken into account. false
- All translations are used.
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
-
- 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
-
- 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'] ['available Languages']
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'] ['locallang XMLOverride'] 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!