首先我参考了这篇文章

http://tech.ddvip.com/2009-03/1236245280110445.html

下载了http://smarty-gettext.sourceforge.net/
文章里的这句话 写的不对:
php -q ./tsmarty2c.php  *.html  $package.c
应该改为
php -q ./tsmarty2c.php  *.html  >$package.c