Title: Translation loading
Last modified: August 30, 2016

---

# Translation loading

 *  Resolved [hardesfred](https://wordpress.org/support/users/hardesfred/)
 * (@hardesfred)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/translation-loading/)
 * Why don’t you use load_plugin_textdomain() instead of making your own translation
   loader ?
    I know there’s no real convention for where the translation files should
   be stored, but judging from WordPress source code, the right location should 
   be `wp-content/languages/plugins/{textdomain}-{locale}.mo` and not what you did;
   which is `wp-content/languages/{textdomain}/{textdomain}-{locale}.mo`
 * [https://wordpress.org/plugins/theme-my-login/](https://wordpress.org/plugins/theme-my-login/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Jeff Farthing](https://wordpress.org/support/users/jfarthing84/)
 * (@jfarthing84)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/translation-loading/#post-6654286)
 * Because, at the time, that’s the route I chose to go. I believe because it would
   be more organized than having many different translations of many different plugins
   all within one directory.
 *  Thread Starter [hardesfred](https://wordpress.org/support/users/hardesfred/)
 * (@hardesfred)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/translation-loading/#post-6654299)
 * Fair enough. And thanks the fast reply.
    That said, I’d suggest you mention this
   path (wp-content/languages/theme-my-login/theme-my-login-{locale}.mo) in the 
   FAQ or somewhere else. It could help other people who didn’t understand, like
   me, why their translation files weren’t loaded.
 * Cheers
 *  [nouvoepok](https://wordpress.org/support/users/nouvoepok/)
 * (@nouvoepok)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/translation-loading/#post-6654309)
 * Hi there, could you please let me know where should I add this code?
 * ________________________________________________________________________
    wp-
   content/languages/theme-my-login/theme-my-login-{pt_BR}.mo
 * or
 * load_plugin_textdomain()
    __________________________________________________________________________**
   thanks a lot and all the best,**

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Translation loading’ is closed to new replies.

 * ![](https://ps.w.org/theme-my-login/assets/icon-256x256.png?rev=1891232)
 * [Theme My Login](https://wordpress.org/plugins/theme-my-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theme-my-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theme-my-login/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-my-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-my-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-my-login/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [nouvoepok](https://wordpress.org/support/users/nouvoepok/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/translation-loading/#post-6654309)
 * Status: resolved