0 0 votes
Article Rating

wp i18n make-pot . languages/domain.pot (这个domain很重要,不是plugin的名字)

copy my-plugin.pot to domain-zh_CN.po

msgfmt -o domain-zh_CN.mo domain-zh_CN.po

copy po和mo文件到 wp-content/languages/plugins/ 目录

change wp-config.php: define (‘WPLANG’, ‘zh_CN’);

Go to wp-admin/options-general.php or “Settings” -> “General”
Select your language in “Site Language” dropdown
Go to wp-admin/update-core.php
Click “Update translations”, when available
Core translations files are downloaded, when available

Categories: Wordpress

Chris

Chris

Just me, need more info?

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x