早教吧作业答案频道 -->英语-->
关于Wordpress主题汉化的问题.我有一个国外的主题,用poedit进行汉化后,把生成的mo文件改成zhCN.mo放进主题的languages文件夹下面,但是主题还是英文的,并没有变成中文,请有相关经验的朋友帮忙解
题目详情
关于Wordpress主题汉化的问题.
我有一个国外的主题,用poedit进行汉化后,把生成的mo文件改成zh_CN.mo放进主题的languages文件夹下面,但是主题还是英文的,并没有变成中文,请有相关经验的朋友帮忙解答一下是哪里出问题了.Wordpress也是中文版的.并且主题下面作者的说明如下:(从这个说明足以证明主题是可以用poedit翻译的.)
Firstly you'll need a tool allowing you to translate .po file into your language.
You can use Poedit app,or CodeStyling WordPress Plugin.
Open .po file from /languages/ folder of the theme,and start translating each word to your language.
After you finished,click button "Save Catalog",and it will create a new .mo file in the same folder.
Then you'll need to open wp-config.php file from the root folder of your WordPress install,and replace this line:
define ('WPLANG','');
with something like:
define ('WPLANG','fr_FR');
Then make sure that .mo file from /languages/ folder of our theme has the same name as your language code:"fr_FR.mo"
我有一个国外的主题,用poedit进行汉化后,把生成的mo文件改成zh_CN.mo放进主题的languages文件夹下面,但是主题还是英文的,并没有变成中文,请有相关经验的朋友帮忙解答一下是哪里出问题了.Wordpress也是中文版的.并且主题下面作者的说明如下:(从这个说明足以证明主题是可以用poedit翻译的.)
Firstly you'll need a tool allowing you to translate .po file into your language.
You can use Poedit app,or CodeStyling WordPress Plugin.
Open .po file from /languages/ folder of the theme,and start translating each word to your language.
After you finished,click button "Save Catalog",and it will create a new .mo file in the same folder.
Then you'll need to open wp-config.php file from the root folder of your WordPress install,and replace this line:
define ('WPLANG','');
with something like:
define ('WPLANG','fr_FR');
Then make sure that .mo file from /languages/ folder of our theme has the same name as your language code:"fr_FR.mo"
▼优质解答
答案和解析
PO文件,你可以在中文版的WP里面看到,它是汉化WP文件的.
主题的汉 化不需要使用语言包.
你不了解主题的格式,汉化其实就是汉化几个单词,你在主题文件里面找到它,转成中文,就算是汉化完成了.
主题的汉 化不需要使用语言包.
你不了解主题的格式,汉化其实就是汉化几个单词,你在主题文件里面找到它,转成中文,就算是汉化完成了.
看了关于Wordpress主题汉化...的网友还看了以下:
如题L(i+1)=numel(l(l==i)是啥意思呢?hist函数将图像进行重叠方式分块,提取图 2020-06-12 …
下列加点的字,注音全部正确的一组是()。A.寒濑(lài)苔藓(tāi)万籁(lài)皑皑白雪(á 2020-06-28 …
3556356356+6666+9+355353+jk[u'oli[li;li;l[;/k[;/[ 2020-07-24 …
下列词语中的字读音全都正确的一组是:A.蹩(piē)进城垣(yuán)贪窭(lǒu)渐(jiān)染 2020-11-10 …
设数组A[0..8,1..10],数组中任一元素A[i,j]均占内存48个二进制位,从首地址2000 2020-11-24 …
matlab中的fmincon函数请帮忙看下这段程序哪里出错了运行不出来functionf=myfu 2020-12-08 …
英语向高人求教!写几句话.每句开头的第一个字母分别是“L,i,U,F,E,i,F,E,i,w,o,a 2020-12-15 …
下列各项中注音有误的一项是()A.léi身体羸弱秦王嬴政yíng输赢yíngB.lài万籁俱寂石濑l 2020-12-24 …
下列词语中加粗字的注音,完全正确的一组是[]A.恪守(gè)市侩(kuài)招徕(lái)青睐(là 2020-12-29 …
A.恪守(gè)市侩(kuài)招徕(lái)青睐(lài)B.醴酒(lǐ)囹圄(líng)靓女(j 2020-12-29 …