Php windows 64位上带有阿拉伯语的WAMP服务器2.2+gettext不工作
我正在开发机器localhost上使用WAMP服务器2.2 php版本5.53.13 mysql版本5.5.24 我正在使用gettext。。poeditor.com生成的我的po&mo文件 我必须支持两种语言阿拉伯语+英语 php代码:Php windows 64位上带有阿拉伯语的WAMP服务器2.2+gettext不工作,php,windows,wamp,gettext,arabic,Php,Windows,Wamp,Gettext,Arabic,我正在开发机器localhost上使用WAMP服务器2.2 php版本5.53.13 mysql版本5.5.24 我正在使用gettext。。poeditor.com生成的我的po&mo文件 我必须支持两种语言阿拉伯语+英语 php代码: $locale = "ar_QA"; if (isset($_GET["locale"])) $locale = $_GET["locale"]; putenv("LC_ALL=$locale"); putenv('LANG='.$locale); setlo
$locale = "ar_QA";
if (isset($_GET["locale"])) $locale = $_GET["locale"];
putenv("LC_ALL=$locale");
putenv('LANG='.$locale);
setlocale(LC_ALL, $locale);
bindtextdomain("messages", "./locale");
bind_textdomain_codeset("messages", "UTF-8");
textdomain("messages");
文件夹结构如下所示:
LC_MESSAGES文件夹包含MESSAGES.po+MESSAGES.mo文件
在我的在线托管服务器linux操作系统上,阿拉伯语+英语都可以正常工作,但在我的开发机器windows server 2008上,64位英语可以正常工作,但阿拉伯语不能正常工作可能太晚了,但我遇到了类似的问题,直到我在我的WAMP php设置中启用了short open tag