( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKBase.class.php on line 114
Call Stack
#TimeMemoryFunctionLocation
10.0003413976{main}( ).../index.php:0
20.10314264616Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.457915923952Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.458115924008Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.458215924384Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.458215924384Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.458415924480Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.458815962720require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.462816254664GKTemplate->__construct( ).../component.php:31
100.469616408544GKTemplateMenu->getMenuType( ).../gk.framework.php:84
110.470216452512require_once( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKMenu.php' ).../helper.menu.php:19

( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKHandheld.php on line 76
Call Stack
#TimeMemoryFunctionLocation
10.0003413976{main}( ).../index.php:0
20.10314264616Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.457915923952Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.458115924008Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.458215924384Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.458215924384Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.458415924480Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.458815962720require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.462816254664GKTemplate->__construct( ).../component.php:31
100.471916575760GKTemplateMenu->getMenuType( ).../gk.framework.php:85
wordpress 切换语言/语言包
Logo
Print this page

wordpress 切换语言/语言包

 

切换语言/语言包

若您是初次安装 WordPress,请点击这里

下面步骤指导您将现有的英文 WordPress 站点切换为中文。

  1. 通过 FTP、SSH 等方式打开并编辑站点根目录下的 wp-config.php 文件。
  2. 查找 define('WPLANG', ''); 一行,在第二个参数处填入 zh_CN,变成 define('WPLANG', 'zh_CN'); 并保存文件。
  3. 进入站点控制板(dashboard),看到更新提示后进行升级即可。WordPress 会自动从官方网站下载中文语言包并安装。

若您当前正在使用非官方的中文语言包,请您注意:非官方语言包通常会替换 WordPress 程序本身的升级部分,使 WordPress 通过第三方服务器升级,这可能有一定风险。若您不愿使用官方版本的语言包,请务必选择您信任的语言包。至于使用何种中文支持,完全由您自主选择。WordPress 并不会禁止您使用非官方语言包。当然,我们会认真处理您的批评和建议,欢迎联系我们

如下是卸载非官方语言包、安装官方中文版本的通用步骤。请注意,如果您没有使用非官方版本的语言包,请不要进行下列操作。我们在这里假设您使用的非官方中文版本没有改动您的数据库:

  1. 备份数据库。
  2. 备份所有文件,并删除博客根目录下除 wp-config.php 之外的所有文件。请注意保留 wp-config.php
  3. 从 cn.wordpress.org 下载最新官方中文版本。解压缩并上传至站点根目录。
  4. (选做)比对 wp-config-sample.php 和留下的 wp-config.php:若 wp-config-sample.php 有新增的内容,请复制并按照说明填写;若留下的 wp-config.php 比 wp-config-sample.php 中的设置项还要多,请删除那些多余的项目。

完成这些步骤,您就在使用官方版本了。我们对您的支持表示感谢。任何意见、建议?请查看“联系”页面


( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169
Call Stack
#TimeMemoryFunctionLocation
10.0003413976{main}( ).../index.php:0
20.10314264616Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.10314264616Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.343611455744Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.344311480184Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.345011535512Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.345311562912require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.354211962544K2ControllerItem->execute( ).../k2.php:64
90.354211962544K2ControllerItem->display( ).../BaseController.php:710
100.365212613248K2ControllerItem->display( ).../item.php:78
110.365212613248K2ControllerItem->display( ).../controller.php:19
120.370412984288Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.372113004656K2ViewItem->display( ).../ViewController.php:102
140.450315940000K2ViewItem->display( ).../view.html.php:742
150.450315940000K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.453016112936include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701

( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
Call Stack
#TimeMemoryFunctionLocation
10.0003413976{main}( ).../index.php:0
20.10314264616Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.10314264616Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.343611455744Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.344311480184Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.345011535512Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.345311562912require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.354211962544K2ControllerItem->execute( ).../k2.php:64
90.354211962544K2ControllerItem->display( ).../BaseController.php:710
100.365212613248K2ControllerItem->display( ).../item.php:78
110.365212613248K2ControllerItem->display( ).../controller.php:19
120.370412984288Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.372113004656K2ViewItem->display( ).../ViewController.php:102
140.450315940000K2ViewItem->display( ).../view.html.php:742
150.450315940000K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.453016112936include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
Template Design © Joomla Templates | GavickPro. All rights reserved.