Translating Theme Phrases

This theme is localisation ready, which means you can use localisation tools to translate your theme. Please use one of the below tools to translate your theme. I personally prefer Poedit.

Pootle: An open source web-based translation system. The server hosted at currently has WordPress translation enabled on it. 

Poedit: An open source program for Windows, Mac OS X and UNIX/Linux which provides an easy-to-use GUI for editing PO files and generate MO files.

GNU Gettext: The official Gettext tools package contains command-line tools for creating POTs, manipulating POs, and generating MOs.  “For those comfortable with a command shell“

The translation file is located in languages folder (/inc/languages). Edit the .po file using POEdit, use the translation field to make replacements.

From the file menu, save file with your language name, for example, de_DE.po. It will generate both a .po and .mo file for your translation.

Using a child theme with language files

Please add the following code to your child theme ‘s functions.php file:

Load translation files from your child theme instead of the parent theme

function thb_child_theme_locale() {

    load_child_theme_textdomain( 'revolution', get_stylesheet_directory() . '/inc/languages' );


add_action( 'after_setup_theme', 'thb_child_theme_locale' );
  • You should place your translated language files inside your child theme ‘s /inc/languages folder.
  • Make sure to change ‘revolution’ to your theme’s text domain.

Was this article helpful?

Related Articles