Custom Translate Command


I decided to use an alias for the common Yii::t(‘general’, ‘foobar’); translate command. I am using only t(‘foobar’) for this.

Now I have the problem that ./yiic message does not generate a proper translation file.

I tried to add "translator => t", or "t(" etc. but it does not work.

How can I bring the message file generator to strip out this tags:

<?php echo t(‘this is a test’); ?> or something like

<?php $array = array(‘foo’ => t(‘bar’)); ?>

Hope that anyone has an idea how to solve this problem.

Thanks in advance!