文派备案号管理(WPICP License),中国 WordPress 站点必备插件,在前台显示 ICP 备案许可证。 https://wpicp.com/
Find a file
Alex Lion 820941128e
Even if GlotPress generated language pack and push to the sites, this plugin cannot read them
`$current_locale = get_locale();
if (!empty($current_locale)) {
    $mo_file = dirname(__FILE__) . '/languages/wpicp-license-' . $current_locale . ".mo";
    if (@file_exists($mo_file) && is_readable($mo_file)) {
        load_textdomain('wpicp-license', $mo_file);
    }
}`

The above code made this plugin cannot read the language pack file generated from GlotPress system, please check them.

After I commented on the above code, this plugin can read the MO file generated from GlotPress. The MO file generated from GlotPress always stores the default system path `/wp-content/languages/plugins`.

Don't only make your plugin read the MO file under `languages` folder on the plugin installation path.
2023-03-04 18:18:08 -08:00
languages 初版发布 2023-02-25 10:04:54 +08:00
license.txt 初版发布 2023-02-25 10:04:54 +08:00
README.md Update README.md 2023-02-25 10:06:25 +08:00
readme.txt 初版发布 2023-02-25 10:04:54 +08:00
wpicp-license.php Even if GlotPress generated language pack and push to the sites, this plugin cannot read them 2023-03-04 18:18:08 -08:00

wpicp-license

文派备案号管理WPICP License此插件永久免费创建的目的皆在解决中国具有的特色问题以及补充 WordPress 中文版本所缺少的功能。