Static block in multiple languages
Hello guys
how would I implement a static block which contains different text based on the language?
I imagine the solution is pretty obvious but I don't get it
basically I need to display a sentence translated in the language that the visitor is using
A conditional custom HTML module would be fine but I bet there's a smarter solution . This is not in the main content, you can assume it's "part of the layout"
( at the moment the site is only in english but it'll be translated as soon as completed )
?? thank you :)
Re: Static block in multiple languages
Hi JTO,
what abot using the inserttag {{iflng::LN}}
This insert tag will be removed if the page language does not match the tag language LN (replace LN with the ISO language code). Use it to insert language specific content into a module or form.
Greets
Stefan
Re: Static block in multiple languages
perfect
I didn't notice insert tags at the bottom of the documentation ( the wiki is not so intuitive in my opinion...I found the inserttags googling for "typolight inserttag" :D)
despite I have only english content I tried your solution and it's perfect for what I need, thank you!