織夢在制作中英網站時,需要把文分頁上一篇下一篇位置翻譯成英文,方法如下:
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}

以上就是關于【織夢中英文分頁上一篇下一篇位置的翻譯方法】的文章內容,如果您還想了解更多關于網站建設與網絡推廣的相關文章,請繼續查看【織夢教程】欄目的其它文章
來源theround.com.cn廣州明行威,致力于中小企業網絡營銷推廣、整體外包運營(網站建設、SEM、SEO等)、企業SEO內訓、信息流廣告運營
歡迎交流 加微信13430336474 廣州張楷

上一篇:織夢搜索結果頁面的分頁修改樣式或改成英文方法 下一篇:織夢list列表文章按權重排序的方法