HI
Das ist ein sehr guter Tipp! Aber wäre es so nicht irgendwie besser:
PHP-Code:
// Deutsch
if($GLOBALS['TL_LANGUAGE'] == 'de')
{
$GLOBALS['TL_LANG']['tl_article']['mycustomsection'] = 'Mein Layoutbereich';
}
// Weitere Sprache
elseif($GLOBALS['TL_LANGUAGE'] == 'xy')
{
$GLOBALS['TL_LANG']['tl_article']['mycustomsection'] = 'Mein tolles Label';
}
// Englisch als Fallback
else
{
$GLOBALS['TL_LANG']['tl_article']['mycustomsection'] = 'My Custom Section';
}
Dann sind alle Eventualitäten berücksichtigt.
Sebastian
Lesezeichen