2013-07-05, 17:16:19
Hi guys,
I need help with i18n and components. I want to change some text directly in the components with conditions. I searched the official manual and found the following:
<?php if ($language == 'en') { ?>English text<?php } ?>
<?php if ($language == 'de') { ?>Deutscher Text<?php } ?>
<?php if ($language == 'es') { ?>...<?php } ?>
But it only works directly in the template. Doesn`t work in components. How do I need to change it?
thanx
I need help with i18n and components. I want to change some text directly in the components with conditions. I searched the official manual and found the following:
<?php if ($language == 'en') { ?>English text<?php } ?>
<?php if ($language == 'de') { ?>Deutscher Text<?php } ?>
<?php if ($language == 'es') { ?>...<?php } ?>
But it only works directly in the template. Doesn`t work in components. How do I need to change it?
thanx