Commit graph

11 commits

Author SHA1 Message Date
文派备案
bea001ee09
Update README.md 2023-03-06 12:39:46 +08:00
文派备案
6cde715349
Update README.md 2023-03-06 12:39:11 +08:00
文派备案
b485a6ca7e
Update README.md 2023-03-06 12:38:52 +08:00
文派备案
ffd7629ff4 Update to v1.0.1 2023-03-06 12:34:03 +08:00
文派备案
7bfa9599e6
Merge pull request #2 from alexclassroom/main
Even if GlotPress generated language pack and push to the sites, this…
2023-03-05 21:43:01 +08:00
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
feng
b9589bf810
Update README.md
更新简介
2023-02-25 10:06:25 +08:00
feng
0670e289f8 初版发布
版本 v1.0
2023-02-25 10:04:54 +08:00
feng
b0f359167f
Update README.md 2021-02-26 00:34:45 +08:00
feng
e15e88f83b
Update README.md 2021-02-25 23:18:35 +08:00
feng
71d49bc00a
Initial commit 2021-02-25 23:15:51 +08:00