load_plugin_textdomain不起作用 [英] load_plugin_textdomain not working

查看:59
本文介绍了load_plugin_textdomain不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,我正在尝试将一个名为Donate Plus的插件本地化(在技术上已本地化).

Hey i'm trying to localize a plugin called Donate Plus ( which locallized technicly).

该插件随附en_CA和de_DE文件,我尝试创建he_IL文件没有成功.因此,我尝试使用该插件随附的de文件,但无法正常工作.

the plugin came with en_CA and de_DE files, i've tried creating a he_IL file without success. So i've tried with the de files came with the plugin but didn't work.

我已经将wp-config.php中的WPLANG设置为de_DE,但这并没有改变代码.

I've set the WPLANG in wp-config.php to de_DE yet that dosen't change the code.

这是设置代码:

load_plugin_textdomain( 'dplus', '/wp-content/plugins/donate-plus' );

我确实检查了所有字符串是否都设置为本地化.

And i did check that all the string are set to be localized.

有人知道吗?

推荐答案

我只是遇到了类似的问题,您是否尝试将文件从de_DE.po和de_DE.mo重命名为插件名称de_DE.mo和name-of-plugin-de_DE.po(当然,要用您的名字来更改插件的名称)?

I just was with a similar isue, did you try to rename your files from de_DE.po and de_DE.mo to name-of-plugin-de_DE.mo and name-of-plugin-de_DE.po (changing name-of-plugin with yours, of course)?

dplus-de_DE.mo和dplus-de_DE.po它必须起作用;)

dplus-de_DE.mo and dplus-de_DE.po It must work ;)

这篇关于load_plugin_textdomain不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆