提供zblog模板_zblog主题_wordpress模板的下载和定制
当前位置:网站首页 > 问答 > 正文

zblogphp french translate trouble

天兴工作室 2016-03-23 问答 3357 2 评论


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 位网友评论:

  • 涂涂研版

    涂涂研版 4年前 (2016-03-25) 回复

    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}

  • 天兴工作室

    天兴工作室 4年前 (2016-03-25) 回复

    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.

取消回复欢迎 发表评论:

  • 请填写验证码
  • 最新文章
  • 热文排行
  • 最多评论
标签聚合
×59zblog模板×35zblog×28zblogphp×20zblogphp模板×20天兴工作室×19阿里云×14zblog插件×14zblog错误×12dedecms×12zblog企业模板×11电子券×11ytcms×11zblog安装×10天兴互联×9随意打×9模板×9zblogphp1.5×8天兴通讯×8刷机×8企业模板

请登录

社交账号登录

将本文分享给你的朋友们