Language-depending blocks (if language == en or smth. like that)

Hello, everybody!

Is smth. like that possible for languages:

[{ if $oView->getClassName() == 'start' }]  :p  [{/if}]

If language = English - display :wink: , if language = Deutsch - display :o

[B]I need to make some language-depending blocks in my template.[/B]

If you use the following code it should workout:

[{assign var="ovconfig" value=$oView->getViewConfig()}]
[{if $ovconfig->getActLanguageId() == 0}]
Test
[{/if}]

The text β€œTest” would only appear for Language-Id β€œ0”. You can see the Language-Id in Admin.

[B]stefan, thank u so much![/B]
it works perfectly!

merry x-mas!