如何实现WordPress前台英文后台中文
展开全部 首先,下载WordPress英文版程序,地址为http://wordpress.org/,这里有很多人使用的方法是下载个中文版WordPress,然后安装个英文版的主题而达到前台英文后台中文的目的。
这是可以的,但是因为毕竟很多插件都是英文的,还有很多主题对中文不兼容,所以建议还是下载WordPress英文版。
然后下载中文语言包,地址为http://code.google.com/p/wpcn/downloads/list,下载后解压找到zh_CN.mo,把zh_CN.mo文件放到安装了WordPress的网站中wp-content\languages (没有的话自己新建这个文件夹)里。
利用插件实现任意切换的效果。
首先下载admin in english博客插件,下载地址为http://wordpress.org/extend/plugins/admin-in-english/ ,下载后,解压,修改里面的admin-in-english.php文件代码,源代码如下/*Plugin Name: Admin in EnglishPlugin URI: http://wordpress.org/extend/plugins/admin-in-english/Description: Lets you have your backend administration panel in English, even if the rest of your blog is translated into another language.Version: 1.2.1Author: Nikolay BachiyskiAuthor URI: http://nikolay.bg/Tags: translation, translations, i18n, admin, english, localization, backend*/function admin_in_english_add_hooks() {add_filter( 'locale', 'admin_in_english_locale' );}add_action( 'plugins_loaded', 'admin_in_english_add_hooks' );function admin_in_english_locale( $locale ) {if ( admin_in_english_should_use_english() ) {return 'en_US';//把en_US改为zh_CN}return $locale;}function admin_in_english_should_use_english() {// frontend AJAX calls are mistakend for admin calls, because the endpoint is wp-admin/admin-ajax.phpreturn admin_in_english_is_admin() && !admin_in_english_is_frontend_ajax();}function admin_in_english_is_admin() {returnis_admin() || admin_in_english_is_tiny_mce() || admin_in_english_is_login_page();}function admin_in_english_is_frontend_ajax() {return defined( 'DOING_AJAX' ) && DOING_AJAX && false === strpos( wp_get_referer(), '/wp-admin/' );}function admin_in_english_is_tiny_mce() {return false !== strpos( $_SERVER['REQUEST_URI'], '/wp-includes/js/tinymce/');}function admin_in_english_is_login_page() {return false !== strpos( $_SERVER['REQUEST_URI'], '/wp-login.php' );}保存好,压缩成zip文件,在WordPress里上传添加这个插件,如下启用admin in english插件,后台即可变成中文,前台还是照样不变,登录等字样也是英文,想后台还原为英文的话,只要禁用admin in english插件就行了,这样就大大方便了各位做英文站的童鞋了。
WordPress网站前台老是提示网页为英文 需要翻译
意思是你在运行wordpress,你不希望你的用户有翻译提示?那你没法直接替用户考虑的,因为浏览器不是你们网站家的。
那浏览器的功能只能浏览器公司处理,或者用户自己设置。
以chrome为例,用户替自己考虑,在右上角选项里,有高级设置,把“询问是否翻译非你所用语言的网站”的选项勾去掉就行了。
像360极速等等也是差不多一样的位置。
而从浏览器公司的角度来说,要么你们去跟比如360公司谈,把翻译提示功能默认关闭。
免去用户自己的操作。
但实际上不可行的,那么多家浏览器供应商,,谁为你们一家改动这么点东西呢。
而且你也不知道你的用户一定是用哪款浏览器的。
好比你家的货在多个商场出售,但商场工作人员如何询问客户,你们卖家是没法干涉的,有的商场愿意问,有的商场不问,那都是商场和客户的选择。
除非。
。
。
。
你们愿意花钱开发一个使用语言侦测功能,并随用户注册的语言转换WordPress的语言版本,这样不论哪国用户看到的网站语言都是他自己公布的语言,自然就不存在翻译的需要,这样浏览器也就不会因为语言不符进行提示了。
。
只是我个人觉得如果你运营网站花这钱。
。
真的不值。
。
wordpress中文版的时间显示月份为中文 有没有什么办法让月份显示英...
展开全部 wordpress搬家后不论打开前台还是后台都是空白,前提,数据库连接正确,并没有提示数据库连接错误。
经过大量的分析之后,我擦,终于找到原因了,找的我好辛苦!分享一下解决办法:原来是搬家后某个插件失效的原因,解决办法:用FTP将wp-content下的plugins目录改为11(可以任何一个名字)然后打开后台页面。
哇塞,正常了,后路后台打开插件管理,全部为禁用状态,这时,再将plugins名字更改回来。
ok,大功告成。
...
wordpress 模板和wordpress主题有什么不同
wordpress不同页面显示不同文章的方法:1. 在模板头部要加上下面的说明,不然后台选择模板找不到它:/*Template Name: 模板名字*/?>2. 直接在下面加入query_post函数,直接指定文章数和分类,其他的就不需要了。
3. 如果有多个页面模板,依此类推了。
自定义模板在wordpress后台页面编辑区的右边“属性”——“模板”,就可以看到自定义page模板了。
新增一个登录/注销链接到的导航菜单的方法:输入:add_filter('wp_nav_menu_items', 'add_login_logout_link', 10, 2);function add_login_logout_link($items, $args) {ob_start();wp_loginout('index.php');$loginoutlink = ob_get_contents();ob_end_clean();$items .= '4. '. $loginoutlink .'';return $items;}
英文翻译,不要机翻
展开全部 随着互联网的普及,游戏已经与我们生活密不可分,于是我们需要建立一个关于游戏宣传的网站,让人们对游戏改变观念,不再是电子海洛因。
而是人与人之间的智力对抗运动。
通过游戏,可以锻炼和提高参与者的思维能力、反应能力、心眼四肢协调能力和意志力,培养团队精神。
网站有回合制、RPG、动作类、射击类等多种类型游戏的介绍。
以及新型游戏的宣传视频,人气游戏的攻略文章,便于交流的网站论坛,快捷的浏览方式满足各种游戏玩家的需求。
宣传游戏的有益之处,让用户改变对游戏的误解。
让社会对游戏产业更加重视,本文将讲制做游戏宣传网站的具体过程。
网站基于wordpress制作,wordpress是一个注重美学,易用性和网络标准的个人信息发布网站,由php语音和MySQL数据库开发的来源免费的建站程序。
Wordpress只需要一个支持php语言的主机空间和一个MySQL即可实现网站的前台和后台管理功能。
With the popularity of the Internet, online games are already closely connected with our lives. Therefore, we need to establish a website on game propaganda, so that people can change their minds about the game. Get people to know that it is no longer a electronic heroin, it is a mental confrontation between people. Through the online games, you can exercise and improve the participants' thinking ability, reaction ability, ability of mind and limb coordination and willpower, and cultivate their team spirit.The website has the introduction for a variety of games including turn-based, RPG, action, and shooting, as well as some new game promotion videos, tips for popular games, BBS website for communicating, and quick browsing methods to meet the needs of various gamers.The promotional of the benefits of games makes users to change the misunderstanding of the game. Let the society pay more attention to the game industry. This article will describe the specific process of making a game publicity website.The website is based on wordpress. WordPress is a personal information publishing website that focuses on aesthetics, ease of use and network standards. It is a free website creation program developed by php voice and MySQL database. Wordpress only requires a hosting space that supports php language and a MySQL to implement the front and back office management functions of the site.
如何修改wordpress后台登陆时自动跳转的地址?
1. 用phpmyadmin登陆到MySQL数据库当中,修改wp_options表内siteurl的值,将其改为正确的域名2. 有两种解决方案,如果主机支持子目录,可以绑定一个没有www的到一个新目录下,新建一个可执行的301重定向程序(可利用搜索引擎查找相关代码);如果不支持,一般的DNS服务提供商有URL转发服务,可以利用这个服务实现跳转
为什么选择joomla
1:Joomla的稳定性。
它是综合评分最高的开源cms,在多个权威英文开源网站和论坛都排名第一 更是在权威开源cms评测网站opensourcecms中Joomla长期稳居第一的位置,Joomla后面依次是CMS Made Simple、Modxcms、Typolight、Typo3、Xoops以及Drupal。
2:Joomla有强大的稳定的技术开发团队保证Joomla的不断升级和提高Joomla聚集了非常强大的开发团队,能保证Joomla不断更新,从而使得Joomla核心代码保持高质量的更新和开发,让Joomla用户放心使用。
3:真正的开源cms,扩展性非常强 相对于国内的半开源,假开源cms,Joomla是真正开源的cms,可以用于商业网站而不必付出额外的许可证成本,Joomla良好的扩展性可以方便的设计出自己想要的功能,而相比较而言国内的cms在扩展性要差很多。
4:数量庞大,种类齐全的扩展插件 Joomla的扩展插件是开源CMS当中最多最齐全的,几乎能想象得到的插件都可以在Joomla的扩展网站找到,方便的实现很多企业网站需要的功能。
5:大量精美漂亮的模板有着大量的专业模板设计公司比如youjoomla、joomlart、rockethemes、Gavick等优秀模板设计公司,模板的美工和质量都远胜于其他cms系统,并且有更多的模板供您选择。
6:Joomla良好的SEO Jomla网站非常SEO友好,长期效果比Wordpress还好,我做过的几个Joomla网站,文章都很快被google收录,短短几个月几个主要关键词都做到了谷歌第一页,各种SEO关键数据表现都很好。
7:Joomla完美的支持多语言网站Joomla的前后台完美的支持各种语言,可以实现后台中文,前台任意多种语言,Joomla的Joomfish组件让实现多语言变得简单容易完美。
所以非常适合用来建企业外贸网站。
转载请注明出处51数据库 » wordpress前台英文