qtranslate插件和Ajax请求插件、qtranslate、Ajax

2023-09-10 14:26:48 作者:不念旧人

我想获得每一种语言正确的内容(我使用qtranslate插件在Word preSS环境)阿贾克斯装电话。

I'm trying to obtain the correct content for each language (I'm using qtranslate plugin in Wordpress environment) loaded by Ajax calls.

每次,内容仅在缺省语言所示向上

Every time, contents are shown up only in the default language.

我想为默认语言,qtranslate变量传递到Ajax调用,但我不知道怎么办。

I'm thinking about to pass the default-language-qtranslate variable into the ajax calls but I don't know how.

也许有人在这里已经解决了这个问题..?

Maybe someone out here has already solved this issue..?

谢谢你们

推荐答案

这将帮助您解决在邮件preSS默认的语言要求,或任何其他插件。

This will help you to fix the default language request in Mailpress, or any other plugin.

在code的链接请求ajax.php搜索。替换ajax.php与 ajax.php /?LANG ='。qtrans_getLanguage()

Search in code for link request "ajax.php". Replace "ajax.php" with ajax.php/?lang='.qtrans_getLanguage()