一、采用gettext,由于Smarty有相应得gettext的插件,所以就直接用这个插件了 注意:smarty-gettext-0.9.1.zip的README有错误,应为:     Example: $smarty = new Smarty [...]; require('smarty_gettext.php...

修改Smarty\libs\plugins\modifier.truncate.php文件为 function smarty_modifier_truncate($string, $length = 80, $etc = ‘…’,$break_words = false) {     if ($length == 0)      ...