Title: Theme localization
Last modified: August 19, 2016

---

# Theme localization

 *  [athos25](https://wordpress.org/support/users/athos25/)
 * (@athos25)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/theme-localization-1/)
 * Hi all,
 * I’m trying to apply theme localization. I followed the steps below to generate
   a .pot file and a .mo file.
 * Copied my theme into poedit/bin/ directory and fired up PoEdit and made a New
   Catalog. In “Paths”, I have chosen ./ as base path and ..(double dot) as Paths.
   Next inside “Keywords”, I have deleted the available ones and added _e and __(
   two underscores).
 * This means the .po file will be created with ../ as base directory. Which is 
   fine, since I want to put the .mo file in themes/yourtheme/languages folder.
 * So I created that folder languages and copied the .mo file there. Then I modified
   my header adding the following code:
 * `
    <?php load_theme_textdomain('theme_name', get_template_directory() . '/languages');?
   >
 * From what I understand this is it, however, the .mo file is never loaded. The
   strings are not translated, so clearly I’m missing something here. Any help is
   appreciated.

The topic ‘Theme localization’ is closed to new replies.

## Tags

 * [Localization](https://wordpress.org/support/topic-tag/localization/)

 * 0 replies
 * 1 participant
 * Last reply from: [athos25](https://wordpress.org/support/users/athos25/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/theme-localization-1/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
