Loads the plugin's translated strings.
This function is the same as load_plugin_textdomain however it is designed for the mu-plugins directory rather than its WordPress equivalent which is designed for the normal plugins directory.
<?php load_muplugin_textdomain($domain, $mu_plugin_rel_path); ?>
This example assumes that the plugin's .mo files are placed in a 'lang' folder in your plugin's directory. If the locale is set to 'es_US', WordPress will attempt to load 'my-plugin-es_US.mo' from the 'lang' directory.
add_action( 'plugins_loaded', 'myplugin_muload_textdomain' ); function myplugin_muload_textdomain() { load_muplugin_textdomain( 'my-plugin', basename( dirname(__FILE__) ) . '/lang' ); }
load_muplugin_textdomain() is located in wp-includes/l10n.php
.