Used by Chinese WordPress - General Chinese Method for General Text System

zhaozj2021-02-16  83

Two days, personal thinking, using PoEdit to make Hanhua always have a lot of defects, mainly reflecting a PO file in each upgrade version (at least need to correct); and all source code is still in English of.

All the way to find other Chinese will, the effect should be good, all the source code after Chinese is all Chinese. The specific method is as follows:

1. Find a batch replacement software, replace the words, statements to be translated (of course, the translation process is still for people), here is a bit similar to the PoEdit function, but less, it is not necessary to make other What documents are concentrated in translation. Of course, the first time you need to extract the contents of translation. When upgrading to the next version, the work will be rare, and even don't need to do it, and replace it directly.

Recommended Software: Advanced Find and Replace and XChange, all have characteristics; of course, it is completely satisfied with the replacement software we require, so it is intended to be a self-made, using C and WXWidgets.

2, after replacing, don't happy, when you upload it into the server, when you browse, you see is basically a string of garbled. The reason is on the code. When you replace, all Chinese characters should be GB2312, and when browsing the page of WordPress, the default is UTF-8. So the conversion of coding (of course, the UTF-8 can also be replaced with GB2312, so the problem is that it is difficult to take advantage of your web page). Conversion software is recommended to use Convertz latest version 721, very good, and free, you can complete batch international coding conversion.

This Chinese method is primarily suitable for Chinese working in text type systems such as PHP, ASP, JSP.

转载请注明原文地址:https://www.9cbs.com/read-13816.html

New Post(0)