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
Add Themes or Plugins to Translate
Next thing is to click on the admin menu (left hand) and add themes or plugins to translate.
Enabling translation panel
Then tick the enable translation panel
reveals the texts to translate:
Translate them
Now you can either translate the shown texts one by one or search particular texts to translate:
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.
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
谢谢大哥,科普知识
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
cool. something else to learn..
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hey @justyy I am @utopian-io. I have just upvoted you!
Achievements
Suggestions
Get Noticed!
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
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
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit