我在 poedit 中创建了一个语言文件以使用 PHP gettext 函数,现在在我尝试对其进行测试的页面上,我无法找到/加载我创建的 .po 或 .mo 文件,有人看到吗我做错了什么?
$locale = "en_US";
putenv("LC_ALL=$locale");
setlocale(LC_ALL, $locale);
bindtextdomain("default", "/includes/locale");
textdomain("default");
//my .po ad .mo file is located here /includes/locale/en/default.mo
即使我正在尝试加载默认的英语语言文件,我已经更改了文件中的一些文本以确保它正在从语言文件中读取,并且目前它只显示默认文本而不进行翻译,我想我有错误的路径可能