标签归档:wordpress

Woocommerce汉化文件细节修改 woocommerce汉化版下载

1、用Editplus或记事本打开 po文件编辑,可以增加一个翻译条目,比如:

msgid “Showing all %d results”
msgstr “显示所有 %d 件商品”

2、用poedit打开po文件,可以看到文件最下面已经增加了 Showing all %d results 这个翻译条目,其中 %d 是一个变量,具体要怎样用,可以找回它在源文件中的位置,位于:

templates\loop\result-count.php

源文件是这么写的:

printf( __( ‘Showing all %d results‘, ‘woocommerce‘ ), $total );

这句代码的意思是,显示 Showing all %d results 怎么显示?到 woocommerce-zh_CN.po 文件里去找对应的翻译。

所以我们按照第一步,插入这个 Showing all %d results 到po文件末尾,用poedit生成新的 po文件和 mo文件,传到服务器上就可以完成啦。

WordPress Gravity Forms 1.6.4.2.1 简单汉化版下载

WordPress Gravity Forms 1.6.4.2.1 简单汉化版

我仅做了简单的汉化,如果还要进一步汉化,请下载poEdit软件,按照这个教程链接:

进行编辑汉化。

第二步,到wordpress 配置文件 wp-config.php 里找到:

define('WPLANG', 'zh_CN');

确认这里是 zh_CN

第三步,找到Gravity Forms的源语言文件包在这里:wp-content\plugins\gravityforms\languages\gravityforms.pot

第四步,用poEdit打开gravityforms.pot文件进行汉化,完成后,另存为 gravityforms-zh_CN.pot 文件(注意这个文件名加了 -zh_CN),会自动生成一个扩展名为 .mo 的可以被wordpress识别的文件,将这个 gravityforms-zh_CN.mo 文件上传到 wp-content\plugins\gravityforms\languages 目录下即可。

完成!

Windows Live Writer WordPress 500 Internal Server Error

windows live writer不明不白的突然遇到这个问题:

image

搜索了一下,有很多解决方案,但是没想到用最简单的:

把所有插件暂停,然后再用writer发布,再把所有插件启动。ok了!

原文:

I absolutely LOVE Windows Live Writer. If you post often to sites or blogs this is probably the best tool I’ve found for easy posting, short of a full fledged website/content management application or system [Dreamweaver, SharePoint or the like]. I will post much more in the future on all you can do with this application or you can just ‘Google’ your time away and look for tips.

But.
Basically what happed when I used Windows Live Writer to upload my blog post to one of my websites that has a WordPress installation I then got the error message with the xmlrpc.php:

image

So I set out to find the solution with the best support tool around – Google

I tried this:
http://affiliate-minder.com/wordpresstutorials/livewriter-500-server-error-xmlrpc/
and this:
http://www.codedifferent.com/2009/01/12/solution-for-500-internal-server-error-after-upgrading-to-wordpress-27-at-1and1-server/
and this:
http://www.mindtweaks.com/wordpress/?p=233
and this:
http://ardentdev.com/fix-for-wordpress-xmlrpc-500-internal-server-error/
and this:
http://wordpress.org/tags/500-internal-server-error/page/2
and this:
http://www.43things.com/things/view/425695/find-out-why-xmlrpcphp-isnt-working-on-my-wordpress-blog
and a whole bunch of others.

I messed with php files, ini’s, mysql tables, and on and on.

NONE WORKED!

Then I found a site that suggested something silly:

“disable/deactivate all your plug-ins, try uploading and see what happens.”

Well dang if that didn’t work!!

I then just re-activated my plug-ins and all was good.

Maybe some of you might use this info one day.

WordPress 添加banner flash插件的教程

  1. 先介绍一下banner flash的效果,例如如下截图,在head和文章模块之间,有一块flash显示图片的区域,可用于推荐和显示博主的精华文章。

  • 首先,我选择的是一个名叫Banner Rotator FX的插件,选择的版本是0.2.12 版本 | 作者为 FlashXML.net | 访问插件主页,插件配置截图如下:插件支持格式:JPEG, BMP, GIF, PNG, SWF

banner-rotator-fx screenshot 1 继续阅读WordPress 添加banner flash插件的教程