天兴工作室 于2016-03-23提问
First sorry i don't speak chinese but i'm using this great Cms for my own conveniance, i have translate it in French (i'm using simpage theme) but there is strange bug i can't resolve. If i use chinese text all is right but when i'm using french translate (from english files) i have space after the character ' "L’ énigme" !! it must be like this "L'énigme" without the space between the ' and the é . Any idea ? i have look inside the code and i think it came from the preg_replace string ?
{php}$description = preg_replace('/\p{Cc}+/u','', trim(SubStrUTF8(TransferHTML($article->Title,'[nohtml]'),55)).'');{/php}{$description}</a></h3>
<ul id="zi">
{if $zbp->Config('simpage')->DisplayAbstractwords=="0"}
{php}$description = preg_replace('/\p{Cc}+/u','', trim(SubStrUTF8(TransferHTML($article->Content,'[nohtml]'),$zbp->Config('simpage')->Abstractwords)).'...');{/php}{$description}
{else}
{$article.Intro}
{/if}
Thanks a lot if you can help me and long live to this wonderfull site.
售价:免费 82126 ℃ 4 评论
售价:免费 82126 ℃ 4 评论
售价:免费 82126 ℃ 4 评论
已经有 2 个答案啦
回应ta 涂涂研版 (游客)
评论于 2016-03-25 23:32:48
{php}$description = preg_replace('/\s(?=\s)/', '', trim(SubStrUTF8(TransferHTML($article-˃Title,'[nohtml]'),25)).'');{/php}{$description}
{if $zbp-˃Config('simpage')-˃DisplayAbstractwords=="0"}
{php}$description = preg_replace('/\s(?=\s)/', '', trim(SubStrUTF8(TransferHTML($article-˃Content,'[nohtml]'),$zbp-˃Config('simpage')-˃Abstractwords)).'...');{/php}{$description}
{else}
{$article.Intro}
{/if}
回应ta 天兴工作室 (管理员)
评论于 2016-03-25 23:14:01
欢迎 你 发表评论