I have a theme that was bought from themefuse and they say it supports localisation using a plugin called CodeStyling Localization

However even though I make the necessary steps to translate strings in the theme, the translated texts do not appear in the frontend.

The steps I have taken:

  1. installing plugin
  2. scan the theme
  3. translate a few words
  4. build "mo" file from plugin menu
  5. empty cache + refresh ... no result

Any ideas?

  • 1
    Desired language is setted correctly in wp_config.php? If so it's impossible to answer without look at the code.
    – gmazzap
    Commented Aug 19, 2013 at 18:51
  • I created a php script to translate PO files, I'm still working on it, maybe it can help someone in the future. Commented Jul 13, 2018 at 19:37

1 Answer 1


Check the wp-config.php file and see if your language is defined :

 define('WPLANG', 'your_language');

You could add this if you're still stuck:

function wpse_110727_translate_theme() {
     load_theme_textdomain( 'textdomain', get_template_directory() . '/languages' );
     $locale = get_locale();
     $locale_file = get_template_directory() . "/languages/$locale.php";

         if ( is_readable( $locale_file ) ) require_once( $locale_file );

Just put the translation files into a repertory called /languages/ and upload all files in the root of your theme.

See if it works now. Hope this helps.

EDIT: 'textdomain' is the word used in all translation strings :

_e('some content','textdomain');

  • The default language was not set in wp-confing thank you!
    – Mike
    Commented Aug 19, 2013 at 19:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.