Hello,
i don't know if this is the right place, but i would know how to declare a new macro/snippet in textmate to do this :
I select the text
Sample Text
I use whatever combinaison of key and it transforms it into :
<?php echo __('Sample Text') ?>
Thank you ;)