Title: Wrong translation code?
Last modified: August 22, 2016

---

# Wrong translation code?

 *  Resolved [sajtdavid](https://wordpress.org/support/users/sajtdavid/)
 * (@sajtdavid)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/wrong-translation-code/)
 * I dont know how others got the translations working, but mine was correct until
   I modified the code.
 * It tried to find the translation source in the wrong directory, so I replaced
   flexible-posts-widget.php:399
    `load_plugin_textdomain( $this->get_widget_slug(),
   false, plugin_dir_path( __FILE__ ) . 'languages/' );` To `load_plugin_textdomain(
   $this->get_widget_text_domain(), false, basename(dirname(__FILE__)) . '/languages/');`
   This made the translations work. Sorry if It was something wrong in my version.
 * [https://wordpress.org/plugins/flexible-posts-widget/](https://wordpress.org/plugins/flexible-posts-widget/)

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

 *  Plugin Author [DaveE](https://wordpress.org/support/users/dpe415/)
 * (@dpe415)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/wrong-translation-code/#post-5428933)
 * Hi sajtdavid,
 * Thanks for this! I had a couple others mention that the translations weren’t 
   working and your post pointed me in the right direction for fixing it. I’ve got
   the code corrected and will be pushing a new version in the next day or so.
 *  Plugin Author [DaveE](https://wordpress.org/support/users/dpe415/)
 * (@dpe415)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/wrong-translation-code/#post-5428951)
 * Hi sajtdavid,
 * This is now fixed in the just released v3.4. Cheers!

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

The topic ‘Wrong translation code?’ is closed to new replies.

 * ![](https://ps.w.org/flexible-posts-widget/assets/icon-256x256.jpg?rev=984592)
 * [Flexible Posts Widget](https://wordpress.org/plugins/flexible-posts-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/flexible-posts-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/flexible-posts-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/flexible-posts-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flexible-posts-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flexible-posts-widget/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [DaveE](https://wordpress.org/support/users/dpe415/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/wrong-translation-code/#post-5428951)
 * Status: resolved