Puh, vielen Dank, vor allem auch für das Beispiel. funktioniert
Vorgehenswese am Beispiel der Sicherheitsabfrage im Formular wäre also:
Zuerst suche ich mir die Sprachdatei system/modules/core/languages/de/default.xlf
Da finde ich dann in den Zeilen 244ff
Code:
<trans-unit id="SEC.question1">
<source>Please add %d and %d.</source>
<target>Bitte addieren Sie %d und %d.</target>
</trans-unit>
<trans-unit id="SEC.question2">
<source>What is the sum of %d and %d?</source>
<target>Was ist die Summe aus %d und %d?</target>
</trans-unit>
<trans-unit id="SEC.question3">
<source>Please calculate %d plus %d.</source>
<target>Bitte rechnen Sie %d plus %d.</target>
</trans-unit>
Und daraus mache ich in der Datei system/config/langconfig.php
Code:
<?php
// Put your custom configuration here
if ($GLOBALS['TL_LANGUAGE'] == 'de')
{
$GLOBALS['TL_LANG']['SEC']['question1'] = 'Bitte addiere %d und %d.';
$GLOBALS['TL_LANG']['SEC']['question2'] = 'Was ist die Summe aus %d und %d?<';
$GLOBALS['TL_LANG']['SEC']['question3'] = 'Bitte rechne %d plus %d.';
}
?>
Vorher ging das echt schneller. Jetzt bin ich nur noch gespannt auf die Begründung, warum Leo das jetzt anders macht, weil alles was länger dauert, kostet ja Zeit und wenn es nicht, wie in diesem Fall meine eigene Seite ist, Geld.
Lesezeichen