<?php _e( 'text', 'textdomain'); ?>
is used to translate text in themes and plugins. But what if i have a php function that defines text as a variable:
$textoutput = 'blablabla';
In another document the variable is echoed:
echo $textoutput;
How to translate the 'blablabla' text?
$textoutput = _e( 'blablabla', 'textdomain');
doesnt work.
Thank you.