summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--libs/Contents.php28
-rw-r--r--libs/Language.php41
-rwxr-xr-xlibs/Options.php4
-rw-r--r--libs/Utils.php21
-rw-r--r--libs/lang/en-us.php80
-rw-r--r--libs/lang/en.php62
-rw-r--r--libs/lang/moe.php62
-rw-r--r--libs/lang/zh-cn.php70
-rw-r--r--libs/lang/zh-tw.php96
9 files changed, 293 insertions, 171 deletions
diff --git a/libs/Contents.php b/libs/Contents.php
index bad09a9..da7d321 100644
--- a/libs/Contents.php
+++ b/libs/Contents.php
@@ -246,17 +246,8 @@ class Contents
static private $CurrentTocID = 0;
static public function parseHeaderCallback($matchs)
{
- // 增加单独标记,否则冲突
- $id = $matchs[3];
- $id = str_replace(' ','_',$id);
- $id = str_replace('&','_',$id);
- $id = str_replace('?','_',$id);
- $id = str_replace("'",'_',$id);
- $id = str_replace('"','_',$id);
- $id = str_replace('’','_',$id);
- $id = str_replace('“','_',$id);
- $id = str_replace('?','_',$id);
- return '<h'.$matchs[1].$matchs[2].' id="'.$id.'">'.$matchs[3].'<a href="#'.$id.'" title="章节链接" class="post-toc-link no-line"><i class="iconfont icon-paragraph"></i></a></h'.$matchs[1].'>';
+ $id = trim($matchs[3]);
+ return '<h'.$matchs[1].$matchs[2].' id="'.$id.'">'.$matchs[3].'<a href="#'.$id.'" title="'.$GLOBALS['postTexts']['post_anchor'].'" class="post-toc-link no-line"><i class="iconfont icon-paragraph"></i></a></h'.$matchs[1].'>';
}
/* == 其他内容 == */
@@ -377,6 +368,19 @@ class Contents
Typecho_Cookie::set('extend_contents_views', $views); //记录查看cookie
}
}
- echo $row['views'];
+ return $row['views'];
+ }
+
+ /**
+ * 获取最早文章创建时间
+ */
+ public static function getOldestPostDate() {
+ $db = Typecho_Db::get();
+ $content = $db->fetchRow($db->select()->from('table.contents')
+ ->where('table.contents.status = ?', 'publish')
+ ->where('table.contents.password IS NULL')
+ ->order('table.contents.created', Typecho_Db::SORT_ASC)
+ ->limit(1));
+ return date('Y-m-d', $content['created']);
}
} \ No newline at end of file
diff --git a/libs/Language.php b/libs/Language.php
new file mode 100644
index 0000000..d24ae77
--- /dev/null
+++ b/libs/Language.php
@@ -0,0 +1,41 @@
+<?php
+if (!defined('__TYPECHO_ROOT_DIR__')) exit;
+
+/**
+ * Language.php
+ * 多语言 / 多語言 / Multi-Languages
+ *
+ * Author: Eltrac(BigCoke233)
+ * License: MIT
+ */
+
+class Lang
+{
+ public static function getLang() {
+ $provided_lang = glob(Helper::options()->themeFile("lang/*.php"));
+ if(in_array($GLOBALS['miraclesLang'].'.php', $provided_lang)){
+ require_once("lang/"+$GLOBALS['miraclesLang'].".php");
+ $GLOBALS['miraclesLangError']=false;
+ }else{
+ require_once("lang/zh-cn.php");
+ $GLOBALS['miraclesLangError']=true;
+ }
+ }
+}
+
+//快速获取对应语言文本
+function gt($a, $b) {
+ return $GLOBALS[$a][$b];
+}
+function gtecho($a, $b) {
+ echo $GLOBALS[$a][$b];
+}
+//有参数的文本获取
+function gta($a, $b, $c) {
+ $content = str_replace('%s', $c, $GLOBALS[$a][$b]);
+ return $content;
+}
+function gtaecho($a, $b, $c) {
+ $content = str_replace('%s', $c, $GLOBALS[$a][$b]);
+ echo $content;
+} \ No newline at end of file
diff --git a/libs/Options.php b/libs/Options.php
index 0e3d31c..96721cd 100755
--- a/libs/Options.php
+++ b/libs/Options.php
@@ -1,6 +1,10 @@
<?php
/**
+ * Options.php
* 主题后台设置
+ *
+ * Author: Eltrac(BigCoke233)
+ * License: MIT
*/
function themeConfig($form) {
diff --git a/libs/Utils.php b/libs/Utils.php
index 3d62f77..27d7658 100644
--- a/libs/Utils.php
+++ b/libs/Utils.php
@@ -1,6 +1,14 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
+/**
+ * Utils.php
+ * 辅助工具
+ *
+ * Author: Eltrac(BigCoke233)
+ * License: MIT
+ */
+
class Utils
{
@@ -142,19 +150,6 @@ class Utils
}
/**
- * 获取最早文章创建时间
- */
- public static function getOldestPostDate() {
- $db = Typecho_Db::get();
- $content = $db->fetchRow($db->select()->from('table.contents')
- ->where('table.contents.status = ?', 'publish')
- ->where('table.contents.password IS NULL')
- ->order('table.contents.created', Typecho_Db::SORT_ASC)
- ->limit(1));
- echo '一切开始于 '.date('Y-m-d', $content['created']);
- }
-
- /**
* 缩略图
*/
public static function postBanner($post){
diff --git a/libs/lang/en-us.php b/libs/lang/en-us.php
new file mode 100644
index 0000000..acd637a
--- /dev/null
+++ b/libs/lang/en-us.php
@@ -0,0 +1,80 @@
+<?php
+$GLOBALS['langInfo'] = array(
+ "name" => "English",
+ "author" => "Eltrac",
+ "last_update" => "2020\/5\/3"
+);
+$GLOBALS['postTexts'] = array(
+ "read_more" => "Read More",
+ "sort_title" => "Category: %s",
+ "post_time" => "Published on %s",
+ "post_views" => "Viewd by %s people",
+ "post_anchor" => "Paragraph Link",
+ "post_share" => "Share by: ",
+ "post_tag" => "None.",
+ "post_timeAlert_1" => "This articles is published %s days ago and ",
+ "post_timeAlert_2" => "last updated %s days ago, some information may be out of date."
+);
+$GLOBALS['commentFormTexts'] = array(
+ "nameInput" => "Name*",
+ "emailInput" => "Email*",
+ "urlInput" => "http(s):\/\/",
+ "submit" => "Comment",
+ "submitLoading" => "Posting..."
+);
+$GLOBALS['commentListTexts'] = array(
+ "byAuthor" => "Author",
+ "commentNum" => "There're %s comments",
+ "commentNumNone" => "Not any comments",
+ "commentHidden" => "The author has hidden the comment list, you won't see your comment, either.",
+ "commentClosed" => "The author has turned the comment function off.",
+ "commentWaiting" => "Your comment is awaiting moderation!",
+ "commentStatus" => "Hello, ",
+ "commentLogout" => "Sign out"
+);
+$GLOBALS['footerTexts'] = array(
+ "startTime" => "The site has built for",
+ "startTimeDay" => " days ",
+ "startTimeHour" => "h ",
+ "startTimeMin" => "min ",
+ "startTimeSec" => "s ",
+ "startTimeYear" => " years "
+);
+$GLOBALS['headerTexts'] = array(
+ "loginAlready" => "You've already loged in",
+ "loginAlreadyInfo" => "But still nice to see you, %s~",
+ "loginAdminEntrance" => "Enter the Dashboard",
+ "loginTitle" => "Login",
+ "loginUsername" => "Username",
+ "loginPassword" => "Password",
+ "loginSubmit" => "login",
+ "navTitle" => "Navigation",
+ "drawerHome" => "Home"
+);
+$GLOBALS['archivePageTexts'] = array(
+ "archiveTagTitle" => "Tags",
+ "archivePostTitle" => "Posts",
+ "archiveTimeYear" => "",
+ "archiveYearTotal" => "%s articles in total",
+ "archiveStart" => "Everything started on %s"
+);
+$GLOBALS['archivesTitles'] = array(
+ 'category' => _t('Posts with category %s'),
+ 'search' => _t('Posts with keyword %s'),
+ 'tag' => _t('Posts with tag %s'),
+ 'author' => _t('Posts by %s')
+);
+$GLOBALS['aboutPageTexts'] = array(
+ "aboutShareGithub" => "GitHub",
+ "aboutShareQQ" => "QQ",
+ "aboutShareB" => "Bilibili",
+ "aboutShareEmail" => "E-mail"
+);
+$GLOBALS['sayingPageTexts'] = array(
+ "sayingPlaceholder" => "Anything interesting happening?",
+ "sayingSubmit" => "Publish"
+);
+$GLOBALS['otherTexts'] = array(
+ "copyrightAlert" => "The article is original if not stated, please credit the original author.",
+ "goTop" => "Go Top"
+); \ No newline at end of file
diff --git a/libs/lang/en.php b/libs/lang/en.php
deleted file mode 100644
index b86de3c..0000000
--- a/libs/lang/en.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-$langInfo = array(
- "name" => "English",
- "author" => "Eltrac",
- "last_update" => "2020\/5\/3"
-);
-$postTexts = array(
- "read_more" => "Read More",
- "sort_title" => "Category",
- "post_time" => "Published on %s",
- "post_views" => "Viewd %s times",
- "post_anchor" => "Paragraph Link",
- "post_share" => "Share to %s",
- "post_tag" => "None."
-);
-$commentFormTexts = array(
- "nameInput" => "Name*",
- "emailInput" => "Email*",
- "urlInput" => "http(s):\/\/",
- "submit" => "Comment",
- "submitLoading" => "Posting..."
-);
-$commentListTexts = array(
- "byAuthor" => "Author",
- "commentNum" => "There're %s comments",
- "commentNumNone" => "Not any comments",
- "commentHidden" => "The author has hidden the comment list, you won't see your comment, either.",
- "commentClosed" => "The author has turned the comment function off.",
- "commentWaiting" => "Your comment is awaiting moderation!"
-);
-$footerTexts = array(
- "startTime" => "The site has built for %s",
- "startTimeDay" => "%s days",
- "startTimeHour" => "%s h",
- "startTimeMin" => "%s min",
- "startTimeSec" => "%s s"
-);
-$headerTexts = array(
- "loginAlready" => "You've already loged in",
- "loginAlreadyInfo" => "But still nice to see you, %s~",
- "loginAdminEntrance" => "Enter the Dashboard",
- "loginTitle" => "Login",
- "loginUsername" => "Username",
- "loginPassword" => "Password",
- "loginSubmit" => "login"
-);
-$archivePageTexts = array(
- "archiveTagTitle" => "Tags",
- "archivePostTitle" => "Posts",
- "archiveTimeYear" => "%s"
-);
-$aboutPageTexts = array(
- "aboutShareGithub" => "GitHub",
- "aboutShareQQ" => "QQ",
- "aboutShareB" => "Bilibili",
- "aboutShareEmail" => "E-mail"
-);
-$sayingPageTexts = array(
- "sayingPlaceholder" => "Anything interesting happening?",
- "sayingSubmit" => "Publish"
-);
-?> \ No newline at end of file
diff --git a/libs/lang/moe.php b/libs/lang/moe.php
index e02a582..b7aee4c 100644
--- a/libs/lang/moe.php
+++ b/libs/lang/moe.php
@@ -1,22 +1,24 @@
<?php
//语言包信息
-$langInfo = array(
+$GLOBALS['langInfo'] = array(
"name" => "萌语",
"author" => "Eltrac",
"last_update" => "2020\/5\/3"
);
//文章
-$postTexts = array(
+$GLOBALS['postTexts'] = array(
"read_more" => "戳进去康",
- "sort_title" => "垃圾分类",
+ "sort_title" => "垃圾分类:这是 %s 垃圾",
"post_time" => "在 %s 的时候粗生的",
"post_views" => "被偷窥 %s 次惹",
"post_anchor" => "戳我!戳我!",
- "post_share" => "种草给 %s",
- "post_tag" => "这个人好懒哦,连标签都不写的"
+ "post_share" => "种草给:",
+ "post_tag" => "这个人好懒哦,连标签都不写的",
+ "post_timeAlert_1" => "这篇文是在 %s 天前水的,",
+ "post_timeAlert_2" => "憨憨作者 %s 天前改了下,估计不能看了。"
);
//评论表单
-$commentFormTexts = array(
+$GLOBALS['commentFormTexts'] = array(
"nameInput" => "你叫啥名啊*",
"emailInput" => "你的邮箱在哪哇*",
"urlInput" => "http(s):\/\/",
@@ -24,48 +26,66 @@ $commentFormTexts = array(
"submitLoading" => "在发了在发了"
);
//评论列表
-$commentListTexts = array(
+$GLOBALS['commentListTexts'] = array(
"byAuthor" => "傻子",
"commentNum" => "%s 条咸鱼躺在这",
"commentNumNone" => "连一条咸鱼都没有",
"commentHidden" => "评论列表被博主吃了!你看不到评论了!",
"commentClosed" => "评论功能被博主吃了!你不能评论了!",
- "commentWaiting" => "博主正在检查你有没有 ghs"
+ "commentWaiting" => "博主正在检查你有没有 ghs",
+ "commentStatus" => "你素 ",
+ "commentLogout" => "我不做人了!"
);
//页脚
-$footerTexts = array(
- "startTime" => "苟延残喘了 %s",
- "startTimeDay" => "%s 天",
- "startTimeHour" => "%s 小时",
- "startTimeMin" => "%s 分",
- "startTimeSec" => "%s 秒"
+$GLOBALS['footerTexts'] = array(
+ "startTime" => "苟延残喘了",
+ "startTimeDay" => " 天 ",
+ "startTimeHour" => " 小时 ",
+ "startTimeMin" => " 分 ",
+ "startTimeSec" => " 秒 ",
+ "startTimeYear" => " 年 "
);
//页眉
-$headerTexts = array(
+$GLOBALS['headerTexts'] = array(
"loginAlready" => "登陆了,快爪巴",
"loginAlreadyInfo" => "你素 %s!奶思吐蜜特由",
"loginAdminEntrance" => "去后宫",
"loginTitle" => "快点进来",
"loginUsername" => "你哒名字",
"loginPassword" => "密码!我不会看的 qwq",
- "loginSubmit" => "爪巴进去"
+ "loginSubmit" => "爪巴进去",
+ "navTitle" => "要去哪里",
+ "drawerHome" => "回家"
);
//归档页面
-$archivePageTexts = array(
+$GLOBALS['archivePageTexts'] = array(
"archiveTagTitle" => "博主贴的标签",
"archivePostTitle" => "博主写的水文",
- "archiveTimeYear" => "%s 年的水"
+ "archiveTimeYear" => "年的水",
+ "archiveYearTotal" => "这年水了 %s 篇文",
+ "archiveStart" => "从 %s 开始水文"
+);
+//检索
+$GLOBALS['archivesTitles'] = array(
+ 'category' => _t('分类 %s 下的水文'),
+ 'search' => _t('搜 %s 粗来的水文'),
+ 'tag' => _t('标签 %s 下的水文'),
+ 'author' => _t('%s 这个憨憨水的文章')
);
//关于页面
-$aboutPageTexts = array(
+$GLOBALS['aboutPageTexts'] = array(
"aboutShareGithub" => "GayHub",
"aboutShareQQ" => "疼讯扣扣",
"aboutShareB" => "某破站",
"aboutShareEmail" => "是邮箱呢!"
);
//说说页面
-$sayingPageTexts = array(
+$GLOBALS['sayingPageTexts'] = array(
"sayingPlaceholder" => "嘤嘤嘤 QAQ",
"sayingSubmit" => "发粗去"
);
-?> \ No newline at end of file
+//其他
+$GLOBALS['otherTexts'] = array(
+ "copyrightAlert" => "呐呐呐,没有说的话这篇文就是我写的,转载请注明我的名字鸭",
+ "goTop" => "爬到上面"
+); \ No newline at end of file
diff --git a/libs/lang/zh-cn.php b/libs/lang/zh-cn.php
index 29bc2d1..c0b3cd1 100644
--- a/libs/lang/zh-cn.php
+++ b/libs/lang/zh-cn.php
@@ -1,22 +1,24 @@
<?php
//语言包信息
-$langInfo = array(
+$GLOBALS['langInfo'] = array(
"name" => "简体中文",
"author" => "Eltrac",
- "last_update" => "2020\/5\/3"
+ "last_update" => "2020\/7\/14"
);
//文章
-$postTexts = array(
+$GLOBALS['postTexts'] = array(
"read_more" => "阅读全文",
- "sort_title" => "文章分类",
+ "sort_title" => "文章分类:%s",
"post_time" => "该文章发布于 %s",
"post_views" => "该文章被浏览 %s 次",
"post_anchor" => "章节链接",
- "post_share" => "分享至 %s",
- "post_tag" => "这人还没有写标签哦~"
+ "post_share" => "分享至:",
+ "post_tag" => "这人还没有写标签哦~",
+ "post_timeAlert_1" => "本文编写于 %s 天前,",
+ "post_timeAlert_2" => "最后修改于 %s 天前,其中某些信息可能已经过时。"
);
//评论表单
-$commentFormTexts = array(
+$GLOBALS['commentFormTexts'] = array(
"nameInput" => "称呼*",
"emailInput" => "邮箱*",
"urlInput" => "http(s):\/\/",
@@ -24,48 +26,66 @@ $commentFormTexts = array(
"submitLoading" => "提交中..."
);
//评论列表
-$commentListTexts = array(
+$GLOBALS['commentListTexts'] = array(
"byAuthor" => "博主",
"commentNum" => "已有 %s 条评论",
"commentNumNone" => "暂无评论",
"commentHidden" => "博主已关闭本页面的评论显示,您评论后将不会看到您的评论内容",
"commentClosed" => "博主已关闭本页面的评论功能",
- "commentWaiting" => "您的评论正在等待审核!"
+ "commentWaiting" => "您的评论正在等待审核!",
+ "commentStatus" => "登陆身份:",
+ "commentLogout" => "登出"
);
//页脚
-$footerTexts = array(
- "startTime" => "记录已延续了 %s",
- "startTimeDay" => "%s 天",
- "startTimeHour" => "%s 小时",
- "startTimeMin" => "%s 分",
- "startTimeSec" => "%s 秒"
+$GLOBALS['footerTexts'] = array(
+ "startTime" => "记录已延续了",
+ "startTimeDay" => " 天 ",
+ "startTimeHour" => " 小时 ",
+ "startTimeMin" => " 分 ",
+ "startTimeSec" => " 秒 ",
+ "startTimeYear" => " 年 "
);
//页眉
-$headerTexts = array(
+$GLOBALS['headerTexts'] = array(
"loginAlready" => "你已经登陆了",
"loginAlreadyInfo" => "不过康纳很乐意再次见到 %s 呢~",
"loginAdminEntrance" => "进入后台",
"loginTitle" => "登录后台",
"loginUsername" => "请输入用户名",
"loginPassword" => "请输入密码",
- "loginSubmit" => "登录"
+ "loginSubmit" => "登录",
+ "navTitle" => "页面导航",
+ "drawerHome" => "首页"
);
//归档页面
-$archivePageTexts = array(
+$GLOBALS['archivePageTexts'] = array(
"archiveTagTitle" => "文章标签",
"archivePostTitle" => "文章归档",
- "archiveTimeYear" => "%s 年"
+ "archiveTimeYear" => "年",
+ "archiveYearTotal" => "共 %s 篇文章",
+ "archiveStart" => "一切开始于 %s"
+);
+//检索
+$GLOBALS['archivesTitles'] = array(
+ 'category' => _t('分类 %s 下的文章'),
+ 'search' => _t('包含关键字 %s 的文章'),
+ 'tag' => _t('标签 %s 下的文章'),
+ 'author' => _t('%s 发布的文章')
);
//关于页面
-$aboutPageTexts = array(
+$GLOBALS['aboutPageTexts'] = array(
"aboutShareGithub" => "GitHub",
"aboutShareQQ" => "QQ",
- "aboutShareB" => "Bilibili",
- "aboutShareEmail" => "E-mail"
+ "aboutShareB" => "哔哩哔哩",
+ "aboutShareEmail" => "电子邮件"
);
//说说页面
-$sayingPageTexts = array(
- "sayingPlaceholder" => "Anything interesting happening?",
+$GLOBALS['sayingPageTexts'] = array(
+ "sayingPlaceholder" => "有什么有趣的事情吗?",
"sayingSubmit" => "发表新鲜事"
);
-?> \ No newline at end of file
+//其他
+$GLOBALS['otherTexts'] = array(
+ "copyrightAlert" => "文章未声明即为原创,请注明原作者",
+ "goTop" => "返回顶部"
+); \ No newline at end of file
diff --git a/libs/lang/zh-tw.php b/libs/lang/zh-tw.php
index fb4c29d..994a413 100644
--- a/libs/lang/zh-tw.php
+++ b/libs/lang/zh-tw.php
@@ -1,71 +1,91 @@
<?php
-// 語言包信息
-$langInfo = array(
-    "name" => "簡體中文",
+//語言包信息
+$GLOBALS['langInfo'] = array(
+ "name" => "簡體中文",
"author" => "Eltrac",
"last_update" => "2020\/5\/3"
);
-// 文章
-$postTexts = array(
-    "read_more" => "閱讀全文",
- "sort_title" => "文章分類",
+//文章
+$GLOBALS['postTexts'] = array(
+ "read_more" => "閱讀全文",
+ "sort_title" => "文章分類:%s",
"post_time" => "該文章發佈於 %s",
"post_views" => "該文章被瀏覽 %s 次",
"post_anchor" => "章節鏈接",
- "post_share" => "分享至 %s",
- "post_tag" => "這人還沒有寫標籤哦~"
+ "post_share" => "分享至:",
+ "post_tag" => "這人還沒有寫標籤哦~",
+ "post_timeAlert_1" => "本文編寫於 %s 天前,",
+ "post_timeAlert_2" => "最後修改於 %s 天前,其中某些信息可能已經過時。"
);
-// 評論表單
-$commentFormTexts = array(
-    "nameInput" => "稱呼 *",
+//評論表單
+$GLOBALS['commentFormTexts'] = array(
+ "nameInput" => "稱呼 *",
"emailInput" => "郵箱 *",
"urlInput" => "http(s):\/\/",
"submit" => "評論",
"submitLoading" => "提交中..."
);
-// 評論列表
-$commentListTexts = array(
-    "byAuthor" => "博主",
+//評論列表
+$GLOBALS['commentListTexts'] = array(
+ "byAuthor" => "博主",
"commentNum" => "已有 %s 條評論",
"commentNumNone" => "暫無評論",
"commentHidden" => "博主已關閉本頁面的評論顯示,您評論後將不會看到您的評論內容",
"commentClosed" => "博主已關閉本頁面的評論功能",
- "commentWaiting" => "您的評論正在等待審核!"
+ "commentWaiting" => "您的評論正在等待審核!",
+ "commentStatus" => "登陸身份:",
+ "commentLogout" => "登出"
);
-// 頁腳
-$footerTexts = array(
-    "startTime" => "記錄已延續了 %s",
- "startTimeDay" => "%s 天",
- "startTimeHour" => "%s 小時",
- "startTimeMin" => "%s 分",
- "startTimeSec" => "%s 秒"
+//頁腳
+$GLOBALS['footerTexts'] = array(
+ "startTime" => "記錄已延續了",
+ "startTimeDay" => " 天 ",
+ "startTimeHour" => " 小時 ",
+ "startTimeMin" => " 分 ",
+ "startTimeSec" => " 秒 ",
+ "startTimeYear" => " 年 "
);
-// 頁眉
-$headerTexts = array(
-    "loginAlready" => "你已經登陸了",
+//頁眉
+$GLOBALS['headerTexts'] = array(
+ "loginAlready" => "你已經登陸了",
"loginAlreadyInfo" => "不過康納很樂意再次見到 %s 呢~",
"loginAdminEntrance" => "進入後台",
"loginTitle" => "登錄後台",
"loginUsername" => "請輸入用戶名",
"loginPassword" => "請輸入密碼",
- "loginSubmit" => "登錄"
+ "loginSubmit" => "登錄",
+ "navTitle" => "頁面導航",
+ "drawerHome" => "首頁"
);
-// 歸檔頁面
-$archivePageTexts = array(
-    "archiveTagTitle" => "文章標籤",
+//歸檔頁面
+$GLOBALS['archivePageTexts'] = array(
+ "archiveTagTitle" => "文章標籤",
"archivePostTitle" => "文章歸檔",
- "archiveTimeYear" => "%s 年"
+ "archiveTimeYear" => "年",
+ "archiveYearTotal" => "共 %s 篇文章",
+ "archiveStart" => "壹切開始於 %s"
);
-// 關於頁面
-$aboutPageTexts = array(
-    "aboutShareGithub" => "GitHub",
+//检索
+$GLOBALS['archivesTitles'] = array(
+ 'category' => _t('分類 %s 下的文章'),
+ 'search' => _t('包含關鍵字 %s 的文章'),
+ 'tag' => _t('標簽 %s 下的文章'),
+ 'author' => _t('%s 發布的文章')
+);
+//關於頁面
+$GLOBALS['aboutPageTexts'] = array(
+ "aboutShareGithub" => "GitHub",
"aboutShareQQ" => "QQ",
"aboutShareB" => "Bilibili",
"aboutShareEmail" => "E-mail"
);
-// 說說頁面
-$sayingPageTexts = array(
-    "sayingPlaceholder" => "Anything interesting happening?",
+//說說頁面
+$GLOBALS['sayingPageTexts'] = array(
+ "sayingPlaceholder" => "Anything interesting happening?",
"sayingSubmit" => "發表新鮮事"
);
-?> \ No newline at end of file
+//其他
+$GLOBALS['otherTexts'] = array(
+ "copyrightAlert" => "文章未聲明即為原創,請註明原作者",
+ "goTop" => "返回頂部"
+); \ No newline at end of file