Skip to content
代码片段 群组 项目

Even if GlotPress generated language pack and push to the sites, this…

已合并 已导入 Administrator requested to merge github/fork/alexclassroom/main into main

Created by: alexclassroom

$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.

合并请求报告

Loading
Loading

动态

过滤活动
  • 批准
  • 指派人和审核者
  • 评论(来自机器人)
  • 评论(来自用户)
  • 提交和分支
  • 编辑
  • 标记
  • 锁定状态
  • 提及
  • 合并请求状态
  • 跟踪
  • Loading
  • Loading
  • Loading
注册登录再回复
加载中