Hello, Im trying to use gettext for php to make a multilingual website. Right now its hosted at:
If you try to switch languages, it doesnt work. However, it works perfectly on my local webserver. I was wondering if anyone has any experience using gettext here. Here is the a snippet of the code im using:
if (isSet($_GET["lang"])) $lang = $_GET["lang"];
// Set the text domain as 'messages'
$domain = 'messages';
<?php echo gettext("hello world!!"); ?>
If anyone could offer any insight I’d greatly appreciate it. Thank you!