Support » Code oplossingen gezocht » Load translation for other plugins

  • I’m currently looking into making a folder with all our translations for the plugins we use, so we only have to push 1 update for updating all the translations on every plugin.

    However, the code i’m using doesn’t seem to work. Is it even possible to load translations for other plugins? Currently using this code:

    function load_translation() {
      load_textdomain( 'learndash', dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); 
    }
    
    add_action( 'init', 'load_translation' );
    
    ?>
1 reactie aan het bekijken (van in totaal 1)
1 reactie aan het bekijken (van in totaal 1)