A
A
azaza2019-10-11 18:01:00
Joomla
azaza, 2019-10-11 18:01:00

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: ';
  }
?>

how to write correctly???

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question