![]() Changing text strings by using a plugin or a custom function mo file to the wp-content/uploads/espresso/languages directory on your server.Ħ) Keep a copy of the modified language files saved somewhere in case you need to re-edit it or re-upload it. Then you can open it in Poedit.ģ) Use the Find tool to pull up the text string you need to modify.ĥ) Save, then upload the newly generated. What happens is you take the language file (in this example we will work with US English) and translate it, in order to change the text.ġ) We recommend downloading and installing Poedit for working on translation files.Ģ) After you install Poedit, you can download a copy of the event_espresso-en_US.po file from our GlotPress project. You can hunt through the code to find the strings (text) to replace but there is a much easier and recommended way: use Poedit to change the language files. So it’s best to always save translation files to wp-content/languages/themes/.It is often useful to be able to change the text or wording of something in Event Espresso in order for it to fit in with your site and audience better. 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |