{"issue":{"state":"open","created_at":"2011-11-28T17:17:46Z","updated_at":"2011-11-28T17:17:51Z","user":{"gravatar_id":"929fedda626b6d2219b602c210b5f82c","id":1218766,"url":"https://api.github.com/users/xchs","avatar_url":"https://secure.gravatar.com/avatar/929fedda626b6d2219b602c210b5f82c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"xchs"},"comments":4,"body":"Hallo,\n\nwollte mal das neue InsertTag \"iflng\" probieren und dabei ist mir folgendes aufgefallen:\n\nWenn ich etwa im Login-Template \"mod_login_1cl.tpl\" für die beiden Input-Felder zusätzlich ein title-Tag vorsehe und je nach ausgewählter Sprache mithilfe des iflng-InsertTags einen entsprechenden Text anzeigen möchte, dann wird das InsertTag im Template anscheinend nicht immer korrekt verarbeitet.\n\nHier der entsprechende Code des Templates:\n\n```\n<\n\n![](-- indexer::stop -->\n<div class=\"<?php echo $this->class; ?> one_column tableless login block\"<?php echo $this->cssID; ?><?php if ($this->style): ?> style=\"<?php echo $this->style; ?>\"<?php endif; ?>>\n<?php if ($this->headline): ?>\n\n<<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>\n<?php endif; ?>\n\n<form action=\"<?php echo $this->action; ?>\" method=\"post\">\n<div class=\"formbody\">\n<?php if ($this->message): ?>\n<p class=\"error\"><?php echo $this->message; ?></p>\n<?php endif; ?>\n<input type=\"hidden\" name=\"FORM_SUBMIT\" value=\"tl_login\" />\n<label for=\"username\"><?php echo $this->username; ?></label>\n<input type=\"text\" name=\"username\" id=\"username\" class=\"text\" maxlength=\"64\" value=\"<?php echo $this->value; ?>\" {{iflng::de}}title=\"Geben Sie hier Ihren Benutzernamen ein\"{{iflng}}{{iflng::it}}title=\"Inserisca qui il Suo nome utente\"{{iflng}} /><br />\n<label for=\"password\"><?php echo $this->password; ?></label>\n<input type=\"password\" name=\"password\" id=\"password\" class=\"text password\" maxlength=\"64\" value=\"\" {{iflng::de}}title=\"Geben Sie hier Ihr Passwort ein\"{{iflng}}{{iflng::it}}title=\"Inserisca qui la Sua password\"{{iflng}} /><br />\n<div class=\"submit_container\">\n<input type=\"submit\" class=\"submit\" value=\"<?php echo $this->slabel; ?>\" />\n</div>\n</div>\n</form>\n\n</div>\n<)-- indexer::continue -->\n\n```\n\nNun zum eigentlichen Problem: Auf der deutschen Seite werden mir bei beiden Input-Feldern die deutschen title-Tags angezeigt (so wie es auch sein soll). Wenn ich aber auf die italienische Version der Seite umschalte, dann wird zwar beim ersten Input-Feld \"username\" der ital. title-Tag angezeigt, das Eingabefeld \"password\" hingegen zeigt nur den deutschen title-Tag an. Vertausche ich im Input-Feld \"password\" die Position der beiden InsertTags (d.h. \"it\" vor \"de\"), werden jetzt zwar die entsprechenden beiden title-Tags in der richtigen Sprache angezeigt, das Problem tritt dann aber auf der deutschen Seite auf.\n\n\nIch hab mal daraufhin den Code so abgeändert, dass ich die entsprechenden beiden InsertTags nur einmal verwenden muss. Ergebnis: Beide title-Tags werden jetzt in beiden Sprachen korrekt angezeigt\n\n![](\n\n```\n\n<)-- indexer::stop -->\n<div class=\"<?php echo $this->class; ?> one_column tableless login block\"<?php echo $this->cssID; ?><?php if ($this->style): ?> style=\"<?php echo $this->style; ?>\"<?php endif; ?>>\n<?php if ($this->headline): ?>\n\n<<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>\n<?php endif; ?>\n\n<form action=\"<?php echo $this->action; ?>\" method=\"post\">\n<div class=\"formbody\">\n<?php if ($this->message): ?>\n<p class=\"error\"><?php echo $this->message; ?></p>\n<?php endif; ?>\n<input type=\"hidden\" name=\"FORM_SUBMIT\" value=\"tl_login\" />\n\n{{iflng::de}}\n<label for=\"username\"><?php echo $this->username; ?></label>\n<input type=\"text\" name=\"username\" id=\"username\" class=\"text\" maxlength=\"64\" value=\"<?php echo $this->value; ?>\" title=\"Geben Sie hier Ihren Benutzernamen ein\" /><br />\n<label for=\"password\"><?php echo $this->password; ?></label>\n<input type=\"password\" name=\"password\" id=\"password\" class=\"text password\" maxlength=\"64\" value=\"\" title=\"Geben Sie hier Ihr Passwort ein\" /><br />\n{{iflng}}\n\n{{iflng::it}}\n<label for=\"username\"><?php echo $this->username; ?></label>\n<input type=\"text\" name=\"username\" id=\"username\" class=\"text\" maxlength=\"64\" value=\"<?php echo $this->value; ?>\" title=\"Inserisca qui il Suo nome utente\" /><br />\n<label for=\"password\"><?php echo $this->password; ?></label>\n<input type=\"password\" name=\"password\" id=\"password\" class=\"text password\" maxlength=\"64\" value=\"\" title=\"Inserisca qui la Sua password\" /><br />\n{{iflng}}\n\n<div class=\"submit_container\">\n<input type=\"submit\" class=\"submit\" value=\"<?php echo $this->slabel; ?>\" />\n</div>\n</div>\n</form>\n\n</div>\n<!-- indexer::continue -->\n\n```\n\nGibt es ev. Probleme, wenn das iflng-InsertTag mehrfach aufgerufen wird?\n\n--- _Originally created on May 6th, 2009, at 06:20pm (ID 707)_","assignee":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"number":707,"id":2370388,"labels":[{"name":"backend","color":"e6e6e6","url":"https://api.github.com/repos/contao/test/labels/backend"},{"name":"Defect","color":"bd2c00","url":"https://api.github.com/repos/contao/test/labels/Defect"}],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"Neues InsertTag \"iflng\"","closed_at":null,"html_url":"https://github.com/contao/test/issues/707","url":"https://api.github.com/repos/contao/test/issues/707","milestone":{"state":"open","created_at":"2011-11-28T15:58:48Z","due_on":null,"closed_issues":9,"creator":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"number":11,"title":"2.7.1","description":"TYPOlight 2.7.1 (maintenance release)","url":"https://api.github.com/repos/contao/test/milestones/11","open_issues":1}},"action":"created","comment":{"created_at":"2011-11-28T17:17:50Z","updated_at":"2011-11-28T17:17:50Z","user":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"body":"Datei system/libraries/Controller.php Zeile 1255f neu:\n\n```php\n<?php\n// Conditional tags\ncase 'iflng':\n\tif (strlen($elementsr1) && $elementsr1 != $objPage->language)\n\t{\n\t\t$_rit = $_rit + 2;\n\t}\n\tunset($arrCache[$strTag]);\n\tbreak;\n?>\n```\n\nDas Inserttag darf nicht gecached werden.\n\n--- _Originally created on May 28th, 2009, at 03:45pm_","id":2902390,"url":"https://api.github.com/repos/contao/test/issues/comments/2902390"}}