I have to work on a website made by someone else and I have to translate it to english (the website is in french). I tried to do it using gettext and PoEdit but I have some trouble with variables lately... This website is using an array to get the error messages for a formular and I tried to do this :
$tabError['titre'] = _("<p>Veuillez entrer un titre.</p>");
and I also tried to do this.
$error_trans = _("<p>Veuillez entrer un titre.</p>");
$tabError['titre'] = $error_trans;
The error returned by php to me is :
Fatal error: Call to undefined function _() in C:\wamp\www\Dropbox \Dropbox\www\Alter\addAnnonce.php on line 62
The code of the website is not very clean and it is a pain to edit ... Is there any way to translate the String that contains my variable ?