织梦在制作中英网站时,需要把文分页上一篇下一篇位置翻译成英文,方法如下:
1、当前位置
{dede:field name='position'}中英文双语

替换前面的“首页”两成“Home”就行了,后台的栏目用英文就行

标签:

{dede:field name='position'  function='str_replace("首页","Home",Html2Text("@me"))'/}

2、

上一篇

{dede:prenext get='pre' function='str_replace(array("上一篇","下一篇","没有了"),array("Previous","Next","none"),@me)' /}

下一篇

{dede:prenext get='next' function='str_replace(array("上一篇","下一篇","没有了"),array("Previous","Next","none"),@me)' /}


织梦中英文分页上一篇下一篇位置的翻译方法

3、分页翻译
把{dede:pagelist istitem="index,pre,next,end,info," listsize="5"/}
替换成:

{dede:pagelist listitem="info,index,end,pre,next,pageno,option" listsize="5" runphp="yes"}

@me = str_replace(array("共", "条记录", "上一页", "下一页", "首页", "末页", "页","条"), array("Total", "Records", "Previous", "Next", "Home", "Last", "Page","Records."), @me);

{/dede:pagelist}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-27
  • 2021-12-15
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-06
  • 2022-12-23
  • 2022-12-23
  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
相关资源
相似解决方案