![poedit tutorial wordpress poedit tutorial wordpress](https://i.pinimg.com/736x/5c/b3/df/5cb3df5e9d02785564e279bd5f20ab85.jpg)
If you encounter these problems, it is recommended to contact the author of the theme or plug-in for feedback, and hope they can improve and repair it. Sometimes, you may find that you cannot use Poedit to get the translation fields, or the obtained fields are incomplete. Not all themes and plugins are very standardized. After the translation is completed, you must go to the interface of the background plug-in to carefully check which sentences or words are not accurately translated, and make necessary corrections.
![poedit tutorial wordpress poedit tutorial wordpress](https://dab1nmslvvntp.cloudfront.net/wp-content/uploads/2011/09/gettext-01.png)
Therefore, translation is a detailed task. If the translation is not accurate, it may cause confusion to the user, and even cause the user to misuse it. The most important thing in translation is quality. pofile, click on the interface “from the code updates” to get into a new field, after translation, save it.
POEDIT TUTORIAL WORDPRESS UPDATE
If we want to update translations for new versions of themes or plugins, what should we do?Īctually very simple, just copy the language pack files before you want to plug their own language or theme directory, and then edit the. WordPress themes and plugins are constantly updated.
POEDIT TUTORIAL WORDPRESS HOW TO
If you want to know more, you can read: “Let WordPress Themes Support Language Localization” How to translate the new version Normally, the standard theme setting will be textdomainset to the name of the theme folder. Note: Strictly speaking, the above 主题名should actually be set when the theme is registered for translation textdomain. You will see zh_CN.mo and zh_CN.po, so we need to modify the name to 主题名+zh_CN(for example, the language pack name of the 2020 theme twentytwenty-zh_CN), and then add the language file Upload to the /wp-content/languages/themesdirectory Theme : The language pack saved by the theme by default does not contain the theme name.po files to the /wp-content/languages/pluginsdirectory can be In order to solve this problem, WordPress also provides a good solution. However, we usually need to update themes and plugins in the background, which will cause the language pack to be deleted every time we update. For example, on the map search-meter/languagesdirectory is the language directory Search Meter plug-ins. Generally speaking, when you save the translation file, Poedit will intelligently identify the directory, and then save the file in the specified language directory of the plug-in, so that it usually takes effect. Upload the translation to the corresponding directory