How to Localize Wordpress Blog? 怎么样对你的Wordpress博客进行汉化?

in utopian-io •  7 years ago  (edited)

Localizing your Wordpress Blog can be quite important if you are building a e-commerce site and your customers are mainly from e.g. China, then you need to make sure all the texts are translated properly.

So the correct way of doing this is:

Install My WP Translate plugin

Navigate to Plugins, and install the official My WP Translate plugin

image.png

Add Themes or Plugins to Translate

Next thing is to click on the admin menu (left hand) and add themes or plugins to translate.
image.png

image.png

Enabling translation panel

Then tick the enable translation panel reveals the texts to translate:
image.png

Translate them

Now you can either translate the shown texts one by one or search particular texts to translate:
image.png
The translated-texts are saved automatically.

Create and Download .po file

Once you finish the translation, you can navigate down the page, and you will find a button to download the .po file.
image.png

You then need to upload the .po file to the wordpress folder themes or plugins sub-folder languages. The last thing is to clear any cache to make your translation effective immediately.

Repost to blog: https://helloacm.com/how-to-localize-wordpress-blog/


我有一两个中文博客(包括了一个代购网站用了英文的主题,界面是英文,很是别扭。之前我尝试着各种不同的方法来汉化,但效果都不理想,直到了我用上了 My WP Translate 这个官方的翻译插件……

最开始,我是直接在主题文件里改文字,后来是创建了子主题,但是这两种方法都有问题。直接改主题在主题升级之后所有的改动都会丢失。而如果是子主题的话,更改的那些模板文件在更新主题后是不会被更新的,所以很有可能造成版本不兼容的问题。

最重要的是,这么直接改代码并不是很友好。其实这完全可以用 My WP Translate 来解决。

最后面需要清空缓存,这样翻译就大功告成了!

The Full Chinese Translation is at: 怎么样对你的WordPress博客进行汉化?



Posted on Utopian.io - Rewarding Open Source Contributors

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

谢谢大哥,科普知识

cool. something else to learn..

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Hey @justyy I am @utopian-io. I have just upvoted you!

Achievements

  • Seems like you contribute quite often. AMAZING!

Suggestions

  • Contribute more often to get higher and higher rewards. I wish to see you often!
  • Work on your followers to increase the votes/rewards. I follow what humans do and my vote is mainly based on that. Good luck!

Get Noticed!

  • Did you know project owners can manually vote with their own voting power or by voting power delegated to their projects? Ask the project owner to review your contributions!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x