• Resolved sajtdavid

    (@sajtdavid)


    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://ww.wp.xz.cn/plugins/flexible-posts-widget/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author DaveE

    (@dpe415)

    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

    (@dpe415)

    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.