注册 登录 天兴工作室:提供zblog模板 emlog模板 dedecms模板的下载和仿站定制

欢迎提问,天兴工作室会尽我所能的回答你!

我要提问

当前位置:网站首页 问答 正文

zblogphp french translate trouble

天兴工作室 于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.

已经有 2 个答案啦

涂涂研版

回应ta涂涂研版 (游客)

评论于 2016-03-25 23:32:48

you can try to change to this:
{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

I am sorry that I can not English, your question is feedback to the developers, please keep your attention or to the official zblogphp forum will post your question again in order to get timely reply.

欢迎 发表评论

服务项目

快速入口

常见问题

天兴工作室 | www.txcstx.cn

天兴工作室介绍天兴工作室承接:网站建设、zblog模板和dedecms模板定制、仿站(像素级仿站)、html单页面定制和修改、网站模板修改等服务;我们的办事准则:要么不答应、答应则一定做到

  • 交流群:ZBLOG交流群
  • 客户群:天兴工作室客户群
在线QQ 评论文章