- I want to display some text about the current language. For example: "Your current language is English."
- I also want to hide the choice for english in the language menu (i.e. the flag).
So I did the following.
1) I tried this:
Code: Select all
<?php echo $_SESSION['language']; ?>
2) I modified the following section of language.tpl :
Code: Select all
<?php foreach ($languages as $language) { ?>
// list language items here
<?php } ?>
Code: Select all
<?php foreach ($languages as $language) { if(strcmp($_SESSION['language'],$language['code']) != 0) ?>
// list language items here
<?php } ?>
It didn't work.
