在模板文件中的functions.php文件中
添加
Typecho_I18n::setLang(str_replace('functions.php', '', str_replace('\', '/', __FILE__)).'default.mo');
"default.mo" 就是语言包文件,需要使用poedit软件生成
po文件用记事本编辑添加如下内容,然后用poedit软件打开,生成mo文件。
msgid "作者:"
msgstr "Author: "
msgid "发布时间:"
msgstr "Post Time: "
msgid "分类:"
msgstr "Category: "
msgid "分类"
msgstr "Category"
msgid "添加新评论"
msgstr "Post new comment: "
msgid "退出"
msgstr "Logout"
msgid "称呼"
msgstr "Username"
msgid "电子邮件"
msgstr "E_mail"
msgid "网站"
msgstr "Web site"
msgid "提交评论"
msgstr "Submit"
msgid "评论已关闭"
msgstr "Comment closed"
msgid "文章"
msgstr "Articles"
msgid "评论"
msgstr "Comment"
msgid "当前暂无评论"
msgstr "No Comment"
msgid "搜索"
msgstr "Search"
msgid "首页"
msgstr "Home"
msgid "最新文章"
msgstr "Latest Articles"
msgid "最近回复"
msgstr "Latest Comments"
msgid "归档"
msgstr "Archive"
msgid "其它"
msgstr "Other"
msgid "进入后台"
msgstr "Login back-end"
msgid "登录"
msgstr "Login"
msgid "标签:"
msgstr "Tag:"
最后
以上就是开放咖啡最近收集整理的关于php语言包作用,typecho 语言包功能的添加的全部内容,更多相关php语言包作用,typecho内容请搜索靠谱客的其他文章。
发表评论 取消回复