織夢(mèng)在制作中英網(wǎng)站時(shí),需要把文分頁(yè)上一篇下一篇位置翻譯成英文,方法如下:
1、當(dāng)前位置
{dede:field name='position'}中英文雙語(yǔ)
替換前面的“首頁(yè)”兩成“Home”就行了,后臺(tái)的欄目用英文就行
標(biāo)簽:
{dede:field name='position' function='str_replace("首頁(yè)","Home",Html2Text("@me"))'/}
2、
上一篇
{dede:prenext get='pre' function='str_replace(array("上一篇","下一篇","沒(méi)有了"),array("Previous","Next","none"),@me)' /}
下一篇
{dede:prenext get='next' function='str_replace(array("上一篇","下一篇","沒(méi)有了"),array("Previous","Next","none"),@me)' /}
3、分頁(yè)翻譯
把{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("共", "條記錄", "上一頁(yè)", "下一頁(yè)", "首頁(yè)", "末頁(yè)", "頁(yè)","條"), array("Total", "Records", "Previous", "Next", "Home", "Last", "Page","Records."), @me);
{/dede:pagelist}

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

上一篇:織夢(mèng)搜索結(jié)果頁(yè)面的分頁(yè)修改樣式或改成英文方法 下一篇:織夢(mèng)list列表文章按權(quán)重排序的方法