A third party developer made a text widget with title, body and thumbnail. This accompany widget plugin has not been internationalized and therefore the strings do not appear in WPML's string translation management. I need them to be loaded. So I am trying to register the plugings domain as indicated here, but the code I added:
function accompany_text_init() {
$plugin_dir = basename(dirname(__FILE__));
load_plugin_textdomain( 'accompany-text', false, $plugin_dir );
}
add_action('init', 'accommpany_text_init');
does not load. It seems as the widget is not registered. Here is the full code. What am I doing wrong? Is the call position off? A plugin coding newbie here and a junior PHP-er so would appreciate some help.