Answer the question
In order to leave comments, you need to log in
Why doesn't this work in Joomla?
I want to connect different blocks to different languages
<?php
$lang = JFactory::getLanguage();
$result = $lang->getTag();
if ($result=="ru-RU") {
include("block/calc.php");
}
else {
echo 'Home: ';
}
?>
<?php
$lang = JFactory::getLanguage();
$result = $lang->getTag();
if ($result=="ru-RU") {
echo include("block/calc.php");
}
else {
echo 'Home: ';
}
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question