First, variables need to be swapped out with printf or one of its derivatives:
sprintf(_("The value is: %s"), $value);
You can compile in comments which will show in your output file:
xgettext --add-comments=///
Static items in PHP can be problematic:...