Hello,
i'm using gettext in my web. I've done every step to do it, bur it doesn't work. No error messages, only it doesn't work.
I try with many examples (from the manual, webs...) ..for example:
<?php
putenv ("LANG=es");
bindtextdomain ("myPHPApp", "./locale");
textdomain ("myPHPApp");
print (gettext ("Welcome to My PHP Application"));
?>
I've create the directory /locale/es/LC_MESSAGES/ and there, i've create myPHPApp.po and myPHPApp.mo and there're no errors.
But when i try to see my page i see:
"Welcome to My PHP Application" instead of "my new message in Spanish".
Searching in the web, i've found people with the same proble but without solution.
Any idea?
It will drive me crazy!!!!
Thanks
Router
P.D:I cann't use alias "_" instead "gettext", it ignores it.