I am adding a list of suggested plugins to my theme using TGM Plugin Activation - https://github.com/thomasgriffin/TGM-Plugin-Activation/
However, when I run theme check, about 40 or so recommendations popped up because the plugin uses variables in translatable functions. I was able to remove about half of the problems by typing in my text domain instead of using the variable used by the plugin author. However, I need help rectifying the error below:
RECOMMENDED: Possible variable $instance found in translation function in class- tgm-plugin-activation.php. Translation function calls must NOT contain PHP variables.
Here's the code associated with the error:
$table_data[$i]['source'] = __( 'External Link', TGM_Plugin_Activation::$instance->domain );
I know that translation functions should look something like __('Item Name', 'text-domain'), but I am not sure what to do with the second part of the function:
TGM_Plugin_Activation::$instance->domain
How can I adjust this so that it will work properly with translations?