Title: [Plugin] Can&#039;t load language files
Last modified: August 21, 2016

---

# [Plugin] Can't load language files

 *  Resolved [datainterlock](https://wordpress.org/support/users/datainterlock/)
 * (@datainterlock)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/plugin-cant-load-language-files/)
 * I’m using code from the plugin boilerplate
 *     ```
       public function load_plugin_textdomain() {
       		$domain = $this->plugin_slug;
       		$locale = apply_filters( 'plugin_locale', get_locale(), $domain );
   
       		load_textdomain( $domain, trailingslashit( WP_LANG_DIR ) . $domain . '/' . $domain . '-' . $locale . '.mo' );
       		load_plugin_textdomain( $domain, FALSE, basename( plugin_dir_path( dirname( __FILE__ ) ) ) . '/languages/' );
   
       	}
       ```
   
 * I’ve created es_ES.po and .mo files and they look good. Poedit is set to compile
   automatically. I’ve changed the language in my config.php to es_ES. I’ve downloaded
   the WordPress 3.9 es update. I’ve check paths, file names, and I’m about to pull
   out what little hair I have left.
 * 1. It did NOT move my language files when I upgraded WordPress to 3.9 es so the
   load_textdomain isn’t finding them in the new /language/ directory. Why it didn’t
   move them, I have no idea.
 * 2. load_plugin_textdomain does nothing. it’s still constantly in English no matter
   what I do.
 * 3. I’ve read the codex, other websites and a few religious pamphlets and STILL
   can’t get the language to load.
 * any ideas?

Viewing 1 replies (of 1 total)

 *  Thread Starter [datainterlock](https://wordpress.org/support/users/datainterlock/)
 * (@datainterlock)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/plugin-cant-load-language-files/#post-4834086)
 * nvm, guess I should have posted this in Hacks, my bad.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin] Can't load language files’ is closed to new replies.

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [datainterlock](https://wordpress.org/support/users/datainterlock/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/plugin-cant-load-language-files/#post-4834086)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
