0

Here is my source php code:

<? $locale = "en_EN";
if (isSet($_GET["locale"])) $locale = $_GET["locale"];
putenv("LC_ALL=$locale");
setlocale(LC_ALL, $locale);
?>

<!doctype html>
<html>
<head>
<meta charset="utf-8">
</head>

<body>
<?php
echo _("Bonjour"); 
echo _("comment ça  va"); 
?>

</body>
</html>

I have created locale/en_EN folder where I have the en.mo and en.po files I have generated with POEdit.

Looks like I am missing a bridge between these mo files and my php script.

Any idea ?

yarek
  • 11,278
  • 30
  • 120
  • 219

0 Answers0