I'm working in two languages website. Howeaver since i use very simple content i won't install i8n (that breaks some other modules, as a side effect...). It would be enough if i could use the $language variable (correctly defined on page.tpl.php) in my content

something like


<?php
if($language == "it") print "italian content"; else print "english content";

but $language var seems not defined...which function i can call define that var?

Comments

mooffie’s picture

I think it should be:

global $locale;
if ($locale == "it") print "italian content"; else print "english content";