How to translate a theme

All themes from Tesla Themes are translation-ready. Every theme contains a language file with the file ending .pot ( located in `wp-content/themes/themename/languages/` ) which you can use to translate the theme. The .pot file is basically a list of all the text lines used in the theme files in English language.

Moreover a theme includes .po and .mo files. First are created from the .pot file and contain both the original language (English) and all translated text strings from the translated language.

Therefore these files are named according to their language codes. (de_De.po, nl_NL.po or es_ES.po for example). The .mo files are just compiled exports from the .po files and used by WordPress to translate the theme.

The easiest way to translate your theme locally is by using the Codestyling Localization plugin. After you have installed and activated the plugin, simply go to `Tools > Localization` (shown in your language) and translate the theme from your WordPress back-end.

After you install and activate the Codestyling localization plugin make sure to set the WordPress language to match the language you are translating to. Watch a video showing the process :

Select “Localization” from the WordPress menu (under “Tools”), find your theme in the list and press “Add New Language”. Select the desired language and create the .PO file. When complete press “Edit” besides the newly created language. After that make sure you select the right text domain from the dropdown (usually the same as theme name) A list with all the translatable strings should appear. Translate them by pressing “edit” on every string. When ready press “generate mo-file” and voila, the site is translated. Watch a video to see how it’s done :

If you want to translate the shortcode titles you've got to edit the page that contains the shortcodes and add/edit the title parameter like in the example below

    [tesla_order_tour tours_page_id="23" title="Order your tour"]

Watch a video to see an example :

Alternatively you can visit the official plugin documentation page or this article .

Have more questions? Submit a request


Powered by Zendesk