I built a simple localization plugin to suit some specifications needed by my orgnanization. For each language there is a single .mo file that contains both the theme translations as the page content translations. The .mo files are located in myplugin/languages/en_US.mo
. I'm trying to use these .mo files for all gettext calls however I cannot get them to work.
Here is the code I'm using to load the text domain:
echo get_locale(); // es_ES
$directory = dirname(plugin_basename(__FILE__)) . '/lang/';
load_plugin_textdomain('localization-v', false, $directory);
_e("English");