GNU gettext framework is used to translate WordPress themes.
Translate theme poedit how to#
In this article, I will show you how to translate a WordPress theme text strings using Poedit, but before we start, let’s see what files do we need to fulfill translation. There are also premium solutions for translation of themes, plugin and websites in general, for instance, WPML. Such tools as Poedit (which is free) or plugins like Loco Translate (also free) allow translating text strings from WordPress files.
You may download this program free from Poedit website.
Translate theme poedit mac os#
Poedit is a software tool available for Windows, Mac OS and Linux that is used for translation of themes and plugins into the required language. In this article, you will learn how to translate a WordPress theme using Poedit. Therefore, translating WordPress themes into other languages can be profitable both for theme developers who can reach a wider non-English audience and for translators who can offer WordPress theme translation services. However, there are many users who just don’t know English.
Login to your WordPress Admin and Navigate to Left Menu -> Settings -> General -> Select ‘Site Language’ and click on ‘Save Changes’ Button.English is one the most popular languages on the web while WordPress CMS is used by 25% of all websites around the world. Then upload the newly created po and mo files form YourThemeFolder/languages to YourWordPressServerFolder/wp-content/themes/YourThemeFolder/languages. Select a text to translate, in the bottom of the program, enter its translation: Then you’ll see a grid with two columns: in the left column the English text, in the right column will be displayed the translated text. Complete lists of codes can be found at (country codes) and (language codes) So, the Brazilian Portuguese file would be called pt_BR.po, and a non-specific Portuges file would be called pt.po.
Translate theme poedit code#
pt for Portuguese) followed by the ISO-3166 country code (e.g. po files is based on the ISO-639 language code (e.g.
if we want to translate the catalogue file to Bulgarian, we should save it as bg_BG.po. Note: The file name the PO file should be chosen according to the language you want to select, i.e. Save the catalog PO file in YourThemeFolder/languages folder. In the new Dialog, fill the Language field with the language you intend to translate your theme, i.e. It’s available for Windows, OS X, and Linux.Īfter you have installed Poedit, run the programįrom top menu, navigate to File -> ‘New Catalog from POT File…’įrom the opened Dialog, navigate to YourThemeFolder/languages Poedit is a Free translations editor, you can download it from HERE. Here are the exact steps you need to perform: It means that you can easily translate your WordPress theme in your local language. All of the themes we provide (both free and premium) are translation ready.