In this step, you should start translating the POT (Portable Object Template) file of the Phlox. Step 3 - Translate POT file into the Target Language It is an easy to use program and you can download and install to start translation. One of the best ways to translate a theme, is using Poedit program. Step 2 - Download and Install Poedit Program If it was, you can skip next steps and just download the translation file and copy them to /wp-content/themes/phlox/languages. Looking for the translated files of Phlox here in this webpage and see whether your language translation file is already available. Step 1 - Search Through Phlox Translation Files So it’s best to always save translation files to wp-content/languages/themes/.We recommend that you read the Overview over Localization, before start reading this page. po/.mo files again in the same folder after the update. If you placed the translation files directly in the folder /languages/, they will be lost if you update the theme later on and you will have to put the. Here is another great tutorial from WPZOOM. If you find this method to complex, you can translate your theme with Loco translate plugin, but you will not be able to translate our widgets on newer themes. po file, we will include it in the next theme update. When you translate the theme to any new language, you can share the po/mo files with the rest of the community. ![]() So for example, German translation files would be named: proteuswidgets-de_DE.po and proteuswidgets-de_DE.mo. mo files in the following format: proteuswidgets-.po. So you have to translate the file wp-content/plugins/proteuswidgets/languages/proteuswidgets.pot. In our MentalPress theme, widgets are included as a separate plugin. How to translate the widgets in our MentalPress theme? mo files in the folder wp-content/languages/themes/ with filenames like proteuswidgets-de_DE.mo. Stick to the same instructions as above, but use this pot file instead and place the generated. So all you have to do is translate the proteuswidgets.pot file, that can be found in wp-content/themes//languages/proteuswidgets/. In our newer themes (WoonderShop, CargoPress, LegalPress, RepairPress, StructurePress …) widgets are separated from the theme so you have to translate them separately. How to translate widgets in our newer themes? This way translations are kept when you update the theme.Īnd that’s it, your translations should work now. Note that it is not recommended anymore saving translation files in the theme directory (where you found the theme-slug.pot file), but in the wp-content/languages/themes instead. ![]() mo file will be automatically created next to the. po file in the folder wp-content/languages/themes/ and name this file regarding your locale (you can find your locale on this page – see how you find it). For example: for German language you would name your file: woondershop-pt-de_DE.po. Load this file (as the catalog) in the PoEdit and start translating. pot (for WoonderShop this file is named woondershop-pt.pot, for BuildPress it’s buildpress.pot etc.). Next, find the languages folder of the theme: wp-content/themes//languages/. This can be done by going to Settings → General, where you can set the Site Language option and save the settings. First, you need to change your language of WP installation.
0 Comments
Leave a Reply. |