• Resolved mkj2

    (@mkj2)


    We love your plugin. Great work! Unfortunately, the language files (.mo and .po) outside the plugin folder (wp-content/languages/plugins) are not working. How can we fix that? As far as I can see, you load the language files by default from the plugin directory only. It would be more user-friendly to load the language files first from the wordpress languages directory and then from the plugin directory. Then the first found translation would be used.

    https://www.ads-software.com/plugins/the-events-calendar/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I second this opinion.

    I found the solution now in another thread. I put this in my child themes function.php and it works.

    unload_textdomain( 'the-events-calendar' );
    load_plugin_textdomain( 'the-events-calendar', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );

    Hello all,

    Thank you MKJ2 for a great question and thank you Max Beta for sharing your solution for everybody’s benefit.

    Awesome work!

    Best regards,
    Geoff B.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Language files outside plugin folder not working’ is closed to new replies.