php-gettext isn't working
问题 I'm trying to setup localization using php-gettext, but it doesn't seem to work no matter what. I have an index.php: <?php require_once "localization.php";?> <a href="?locale=en_US">English</a> | <a href="?locale=de_DE">German</a> <br> <?php echo _("Hello World!"); ?><br> <?php echo _("My name is"); ?> Bob. and the localization.php <?php $locale = false; if (isset($_GET["locale"])) { $locale = $_GET["locale"];} putenv("LC_ALL=$locale"); setlocale(LC_ALL, $locale); bindtextdomain("messages", "