Provide zblog template_zblog them_wordpress template download and customization

zblogphp french translate trouble

Tianxing Studio 2016-03-23 20:57 Q&A four thousand six hundred and twenty-four 2 Comments


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.


yes two Comments from netizens:

  •  Coating plate

    Coating plate 8 years ago (2016-03-25) reply

    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}

  •  Tianxing Studio

    Tianxing Studio 8 years ago (2016-03-25) reply

    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.

welcome you Comment: Cancel Reply

 Please fill in the verification code
  • Latest articles
  • Hot article ranking
  • Most Comments
Label aggregation
  • Sign in
  • Registered account Forgot your password?
  • register
  • Already have an account? Direct login Forgot your password?
  • Social account login