Typos in Manual (on Inserttag page)
Closed this issue · 3 comments
I am not sure -- maybe I haven't understood it correctly, but it seems to me that there are some mistakes on the page regarding Inserttags as pointed out in the following screenshot.
- I assume that the first ifnlng-Tag (Your name) is supposed to contain the language ISO code for "en" and not "de", right?
- In the second example for ifnlng -- shouldn't it be "ifnlng" instead of "iflng" (missing "n")?
See:
https://github.com/contao/docs/edit/main/docs/manual/article-management/insert-tags.de.md
https://docs.contao.org/manual/de/artikelverwaltung/insert-tags/
No, that's deliberate. It's akin to:
if ('de' !== $language) {
echo 'Your Name';
} else {
echo 'Ihr Name';
}
Personally I would write it the other way around, but it does not matter.
Oh, ok, thank you.
- So in plain English "iflng::de" means: If page language is German, then display the following text.
- And "ifnlng::de" means: If page language is not German, then display the following text -- right?
Maybe it's just me, but in this case I don't find the description in the manual very easy to understand. I had to read it multiple times until I actually realised the difference in the two explanations (that in the first one/iflng it says "nicht").
Could one maybe highlight the "nicht" in the first explanation and, for the sake of readability, in the second explanation move the text in the brackets to the end of the sentence? -->
"Dieses Tag wird komplett entfernt, wenn die Sprache der Seite mit der Tag-Sprache übereinstimmt (siehe auch Tipp bei {{iflng}} für weitere Optionen)."
And "ifnlng::de" means: If page language is not German, then display the following text -- right?
Yes, the first n
in ifnlng
stands for not i.e. if not language.