當前位置:編程學習大全網 - 網站源碼 - 怎樣漢化wordpress crafty cart主題,在哪個文件修改?

怎樣漢化wordpress crafty cart主題,在哪個文件修改?

漢化主題的話、需要將主題裏面所有的文件都修改壹邊的、工作量還是有壹點點多的、下面是壹般主題都有的文件

style.css

: CSS(樣式表)文件

index.php

: 主頁模板

archive.php

: Archive/Category模板

404.php

: Not Found 錯誤頁模板

comments.php

: 留言/回復模板

footer.php

: Footer模板

header.php

: Header模板

sidebar.php

: 側欄模板

page.php

: 內容頁(Page)模板

single.php

: 內容頁(Post)模板

searchform.php

: 搜索表單模板

search.php

: 搜索結果模板

漢化:

壹,使用Editplus打開:index.php,復制"Read the rest of this entry",在"index.php"裏搜索,會找到這樣的壹行代碼:

<code><?php the_content('Read the rest of this entry ?'); ?></code>

把“<?php the_content('Read the rest of this entry ?'); ?>”替換成“閱讀全文”。

模板的翻譯其實是很容易的,可以自己嘗試下,在翻譯模板的時候,需要註意兩個方面:第壹,找對顯示出來的英文在代碼中的正確位置;第二,找到合適的對應中文

  • 上一篇:手機QQ圈贊,如何圈99+圈軟件。
  • 下一篇:dj夜色粵語翻譯中文歌詞怎麽唱
  • copyright 2024編程學習大全網