wp-chinese-switcher changed to wpchinese-switcher

This commit is contained in:
feng 2021-03-23 21:48:56 +08:00
parent 0de1c2faa9
commit cf344e53fc
3 changed files with 7 additions and 7 deletions

View file

@ -1,4 +1,4 @@
# wp-chinese-switcher # wpchinese-switcher
文派简繁切换器WP Chinese Switcher完全基于您 WordPress 网站服务器端的中文繁简转换解决方案。 文派简繁切换器WP Chinese Switcher完全基于您 WordPress 网站服务器端的中文繁简转换解决方案。
此项目分叉于原 WP Chinese Conversion 中文简繁转换器免费插件,感谢原作者 Ono Oogami 提供了此工具。由于原插件已经多年无更新,无维护及无支持回复,旧版本插件在新的 PHP 版本中也有多处错误函数警告。在简单修复了几个 bug 后越发认识到,这对于中文用户网站来说确实是非常好且实用的简繁双语解决方案,现借由文派开源重启项目,以便为 WordPress 中文用户提供长期更新和支持。 此项目分叉于原 WP Chinese Conversion 中文简繁转换器免费插件,感谢原作者 Ono Oogami 提供了此工具。由于原插件已经多年无更新,无维护及无支持回复,旧版本插件在新的 PHP 版本中也有多处错误函数警告。在简单修复了几个 bug 后越发认识到,这对于中文用户网站来说确实是非常好且实用的简繁双语解决方案,现借由文派开源重启项目,以便为 WordPress 中文用户提供长期更新和支持。

View file

@ -30,10 +30,10 @@ class wpcs_Admin {
$this->admin_lang = $locale; $this->admin_lang = $locale;
} }
$this->base = str_replace(basename(__FILE__), "", plugin_basename(__FILE__)); $this->base = str_replace(basename(__FILE__), "", plugin_basename(__FILE__));
$this->url = admin_url('options-general.php?page=' . $this->base . 'wp-chinese-switcher.php'); $this->url = admin_url('options-general.php?page=' . $this->base . 'wpchinese-switcher.php');
add_filter('plugin_action_links', array(&$this, 'action_links'), 10, 2); add_filter('plugin_action_links', array(&$this, 'action_links'), 10, 2);
if (function_exists('add_options_page')) { if (function_exists('add_options_page')) {
add_options_page('WP Chinese Switcher', 'Chinese Switcher', 'manage_options', $this->base . 'wp-chinese-switcher.php', array( add_options_page('WP Chinese Switcher', 'Chinese Switcher', 'manage_options', $this->base . 'wpchinese-switcher.php', array(
&$this, &$this,
'display_options' 'display_options'
)); ));
@ -43,7 +43,7 @@ class wpcs_Admin {
} }
function action_links($links, $file) { function action_links($links, $file) {
if ($file == $this->base . 'wp-chinese-switcher.php') { if ($file == $this->base . 'wpchinese-switcher.php') {
$links[] = '<a href="options-general.php?page=' . $file . '" title="Change Settings">Settings</a>'; $links[] = '<a href="options-general.php?page=' . $file . '" title="Change Settings">Settings</a>';
} }

View file

@ -4,7 +4,7 @@
* Description: Adds the language conversion function between Chinese Simplified and Chinese Traditional to your WP Website. * Description: Adds the language conversion function between Chinese Simplified and Chinese Traditional to your WP Website.
* Author: WenPai.org * Author: WenPai.org
* Author URI: https://wenpai.org * Author URI: https://wenpai.org
* Text Domain: wp-chinese-switcher * Text Domain: wpchinese-switcher
* Domain Path: /languages * Domain Path: /languages
* Version: 1.0.0 * Version: 1.0.0
* License: GPLv3 or later * License: GPLv3 or later
@ -37,7 +37,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
* @package WPCS * @package WPCS
* @version see wpcs_VERSION constant below * @version see wpcs_VERSION constant below
* @TODO 用OO方式重寫全部代碼, 計劃1.2版本實現. * @TODO 用OO方式重寫全部代碼, 計劃1.2版本實現.
* @link http://wordpress.org/plugins/wp-chinese-switcher Plugin Page on wordpress.org, including guides and docs. * @link http://wordpress.org/plugins/wpchinese-switcher Plugin Page on wordpress.org, including guides and docs.
* @link https://oogami.name/project/wpcs/ Plugin Homepage * @link https://oogami.name/project/wpcs/ Plugin Homepage
* *
*/ */
@ -1277,7 +1277,7 @@ function wpcs_debug() {
*/ */
function wpcs_admin_init() { function wpcs_admin_init() {
global $wpcs_admin; global $wpcs_admin;
require_once(dirname(__FILE__) . '/wp-chinese-switcher-admin.php'); require_once(dirname(__FILE__) . '/wpchinese-switcher-admin.php');
$wpcs_admin = new wpcs_Admin(); $wpcs_admin = new wpcs_Admin();
} }