Skip to content

Commit

Permalink
0.993
Browse files Browse the repository at this point in the history
  • Loading branch information
solstice23 committed Aug 5, 2020
1 parent 29601db commit ae86150
Show file tree
Hide file tree
Showing 12 changed files with 2,199 additions and 14 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![Argon](https://cdn.jsdelivr.net/gh/solstice23/cdn@master/argon_new_animate.svg)

**中文** | [English](README_en.md) | [Russian](README_ru.md)
**简体中文** | [繁體中文](README_tw.md) | [English](README_en.md) | [Russian](README_ru.md)

# Argon-Theme
Argon - 一个轻盈、简洁、美观的 WordPress 主题
Expand Down Expand Up @@ -67,6 +67,9 @@ Argon 使用 [GPL V3.0](https://github.com/solstice23/argon-theme/blob/master/LI

# 更新日志

## 20200806 v0.993
+ 增加繁体中文翻译

## 20200805 v0.992
+ Add Russian Translation (By [ostiwe](https://github.com/ostiwe))
+ 增加俄文翻译
Expand Down
2 changes: 1 addition & 1 deletion README_en.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![Argon](https://cdn.jsdelivr.net/gh/solstice23/cdn@master/argon_new_animate.svg)

[中文](README.md) | **English**
[简体中文](README.md) | [繁體中文](README_tw.md) | **English** | [Russian](README_ru.md)

# Argon-Theme
Argon - A light, simple and beautiful WordPress theme
Expand Down
2 changes: 1 addition & 1 deletion README_ru.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![Argon](https://cdn.jsdelivr.net/gh/solstice23/cdn@master/argon_new_animate.svg)

[中文](README.md) | [English](README_en.md) | **Русский**
[简体中文](README.md) | [繁體中文](README_tw.md) | [English](README_en.md) | **Русский**

# Argon-Theme
Argon - Легкая, простая и красивая тема WordPress
Expand Down
75 changes: 75 additions & 0 deletions README_tw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
![Argon](https://cdn.jsdelivr.net/gh/solstice23/cdn@master/argon_new_animate.svg)

[简体中文](README.md) | **繁體中文** | [English](README_en.md) | [Russian](README_ru.md)

# Argon-Theme
Argon - 壹個輕盈、簡潔、美觀的 WordPress 主題

[![GitHub release](https://img.shields.io/github/v/release/solstice23/argon-theme?color=%235e72e4&style=for-the-badge)](https://github.com/solstice23/argon-theme/releases) [![GitHub All Releases](https://img.shields.io/github/downloads/solstice23/argon-theme/total?style=for-the-badge)](https://github.com/solstice23/argon-theme/releases) [![GitHub](https://img.shields.io/github/license/solstice23/argon-theme?color=blue&style=for-the-badge)](https://github.com/solstice23/argon-theme/blob/master/LICENSE) [![Author]( https://img.shields.io/badge/author-solstice23-yellow?style=for-the-badge)](https://github.com/solstice23) [![GitHub stars](https://img.shields.io/github/stars/solstice23/argon-theme?color=ff69b4&style=for-the-badge)](https://github.com/solstice23/argon-theme/stargazers)

[![GitHub last commit](https://img.shields.io/github/last-commit/solstice23/argon-theme?style=flat-square)](https://github.com/solstice23/argon-theme/commits/master) [![GitHub Release Date](https://img.shields.io/github/release-date/solstice23/argon-theme?style=flat-square)](https://github.com/solstice23/argon-theme/releases) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/solstice23/argon-theme?style=flat-square)

# 特性

+ **輕盈美觀** - 使用 Argon Design System 前端框架,細節精致,輕盈美觀
+ **高度可定制化** - 可自定義主題色、布局(雙欄/單欄/三欄)、頂欄、側欄、Banner、背景圖、日夜間模式不同背景、背景沈浸、浮動操作按鈕等,提供了豐富的自定義選項
+ **夜間模式** - 支持日間、夜間、純黑三種模式,並可以根據時間自動切換或跟隨系統夜間模式
+ **功能繁多** - Tag 和分類統計、作者鏈接、額外鏈接、文章字數和預計閱讀時間、文章過時信息顯示
+ **Pjax** - 支持 Pjax 無刷新加載,提高瀏覽體驗
+ **友情鏈接** - 支持使用 Wordpress 自帶的鏈接管理器進行友鏈管理,支持多種友鏈樣式
+ **"說說" 功能** - 隨時發表想法,並在專門的 "說說" 頁面展示,也支持說說和首頁文章穿插
+ **評論功能擴展** - Ajax 評論,評論支持 Markdown、驗證碼、再次編輯、顯示 UA、悄悄話模式、回復時郵件通知、查看編輯記錄、無限加載等功能
+ **諸多功能** - 文章目錄、閱讀進度、Mathjax 或 Katex 公式解析、圖片放大預覽、Pangu.js 文本格式化、平滑滾動等
+ **豐富的短代碼** - 支持通過短代碼在文章中插入 TODO、標簽、警告、提示、折疊區塊、Github 信息卡、時間線、隱藏文本、視頻等模塊
+ **多語言** - 支持中文、英文兩種語言
+ **其他** - 自適應、精心優化的文章閱讀界面 CSS、可切換襯線/非襯線字體、可自定義 CSS 和 JS、支持使用 CDN 加速靜態文件訪問、SEO 友好、Banner 打字動畫、留言板頁面等

# 安裝

[Release](https://github.com/solstice23/argon-theme/releases) 頁面下載 .zip 文件,在 WordPress 後臺 "主題" 頁面上傳並安裝。

# 文檔

[Argon-Theme 文檔 : https://argon-docs.solstice23.top](https://argon-docs.solstice23.top/)

# Demo

主題效果預覽

[solstice23.top](https://solstice23.top)

[argon-demo.solstice23.top](http://argon-demo.solstice23.top)

# 註意

Argon 使用 [GPL V3.0](https://github.com/solstice23/argon-theme/blob/master/LICENSE) 協議開源,請遵守此協議進行二次開發等。

**必須在頁腳保留 Argon 主題的名稱及其鏈接**,否則請不要使用 Argon 主題。

**可以刪除**頁腳的作者信息,但是**不能刪除** Argon 主題的名稱和鏈接。

# 渲染

![render1](https://cdn.jsdelivr.net/gh/solstice23/cdn@master/argon-render-small-1.jpg)

![render2](https://cdn.jsdelivr.net/gh/solstice23/cdn@master/argon-render-small-2.jpg)

![render3](https://cdn.jsdelivr.net/gh/solstice23/cdn@master/argon-render-small-3.jpg)

![render4](https://cdn.jsdelivr.net/gh/solstice23/cdn@master/argon-render-small-4.jpg)

![render5](https://cdn.jsdelivr.net/gh/solstice23/cdn@master/argon-render-small-5.jpg)

# Telegram 頻道
[t.me/argontheme](https://t.me/argontheme)

自動推送更新消息以及其他關於 Argon 的消息

# Update logs

[readme.md](https://github.com/solstice23/argon-theme#%E6%9B%B4%E6%96%B0%E6%97%A5%E5%BF%97)

# 捐贈
如果妳覺得 Argon 主題不錯,可以請我壹杯咖啡來支持我的開發。

![微信捐贈碼](https://img.solstice23.top/2020/03/07/fc4b804bf938b.png)
69 changes: 63 additions & 6 deletions argontheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ function getCookie(cname) {
/*多语言支持*/
var translation = {};
translation['en_US'] = {
'确定': 'OK',
'清除': 'Clear',
'恢复博客默认': 'Set To Default',
"确定": "OK",
"清除": "Clear",
"恢复博客默认": "Set To Default",
"评论内容不能为空": "Comment content cannot be empty",
"昵称不能为空": "Name cannot be empty",
"邮箱或 QQ 号格式错误": "Incorrect email or QQ format",
Expand Down Expand Up @@ -87,9 +87,9 @@ translation['en_US'] = {
"退出全屏": "Exit Fullscreen",
};
translation['ru_RU'] = {
'确定': 'ОК',
'清除': 'Очистить',
'恢复博客默认': 'Восстановить по умолчанию',
"确定": "ОК",
"清除": "Очистить",
"恢复博客默认": "Восстановить по умолчанию",
"评论内容不能为空": "Содержимое комментария не может быть пустым",
"昵称不能为空": "Имя не может быть пустым",
"邮箱或 QQ 号格式错误": "Неверный формат электронной почты или QQ",
Expand Down Expand Up @@ -143,6 +143,63 @@ translation['ru_RU'] = {
"全屏": "Полноэкранный режим",
"退出全屏": "Выход из полноэкранного режима",
};
translation['zh_TW'] = {
"确定": "確定",
"清除": "清除",
"恢复博客默认": "恢復博客默認",
"评论内容不能为空": "評論內容不能為空",
"昵称不能为空": "昵稱不能為空",
"邮箱或 QQ 号格式错误": "郵箱或 QQ 號格式錯誤",
"邮箱格式错误": "郵箱格式錯誤",
"网站格式错误 (不是 http(s):// 开头)": "網站格式錯誤 (不是 http(s):// 開頭)",
"验证码未输入": "驗證碼未輸入",
"验证码格式错误": "驗證碼格式錯誤",
"评论格式错误": "評論格式錯誤",
"发送中": "發送中",
"正在发送": "正在發送",
"评论正在发送中...": "評論正在發送中...",
"发送": "發送",
"评论发送失败": "評論發送失敗",
"发送成功": "發送成功",
"您的评论已发送": "您的評論已發送",
"评论": "評論",
"未知原因": "未知原因",
"评论内容不能为空": "評論內容不能為空",
"编辑中": "編輯中",
"正在编辑": "正在編輯",
"评论正在编辑中...": "評論正在編輯中...",
"编辑": "編輯",
"评论编辑失败": "評論編輯失敗",
"已编辑": "已編輯",
"编辑成功": "編輯成功",
"您的评论已编辑": "您的評論已編輯",
"评论 #": "評論 #",
"的编辑记录": "的編輯記錄",
"加载失败": "加載失敗",
"展开": "展開",
"没有更多了": "沒有更多了",
"找不到该 Repo": "找不到該 Repo",
"获取 Repo 信息失败": "獲取 Repo 信息失敗",
"点赞失败": "點贊失敗",
"Hitokoto 获取失败": "Hitokoto 獲取失敗",
"复制成功": "復制成功",
"代码已复制到剪贴板": "代碼已復制到剪貼板",
"复制失败": "復制失敗",
"请手动复制代码": "請手動復制代碼",
"刚刚": "剛剛",
"分钟前": "分鐘前",
"小时前": "小時前",
"昨天": "昨天",
"前天": "前天",
"天前": "天前",
"隐藏行号": "隱藏行號",
"显示行号": "顯示行號",
"开启折行": "開啟折行",
"关闭折行": "關閉折行",
"复制": "復制",
"全屏": "全屏",
"退出全屏": "退出全屏"
};
function __(text){
let lang = argonConfig.language;
if (typeof(translation[lang]) == "undefined"){
Expand Down
3 changes: 3 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ function theme_slug_setup() {
//翻译 Hook
function argon_locate_filter($locate){
if (substr($locate, 0, 2) == 'zh'){
if ($locate == 'zh_TW'){
return $locate;
}
return 'zh_CN';
}
if (substr($locate, 0, 2) == 'en'){
Expand Down
4 changes: 2 additions & 2 deletions info.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "0.992",
"version" : "0.993",
"details_url" : "https://github.com/solstice23/argon-theme/releases",
"download_url" : "https://github.com/solstice23/argon-theme/releases/download/v0.992/argon.zip"
"download_url" : "https://github.com/solstice23/argon-theme/releases/download/v0.993/argon.zip"
}
Binary file modified languages/en_US.mo
Binary file not shown.
4 changes: 2 additions & 2 deletions languages/en_US.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: argon\n"
"POT-Creation-Date: 2020-07-29 05:03+0800\n"
"PO-Revision-Date: 2020-07-29 13:34+0800\n"
"PO-Revision-Date: 2020-08-06 02:36+0800\n"
"Last-Translator: \n"
"Language-Team: solstice23\n"
"Language: en_US\n"
Expand Down Expand Up @@ -138,7 +138,7 @@ msgstr ""

#: functions.php:265
msgid "这是一个加密页面,需要密码来查看"
msgstr "This pagerequires a password to view"
msgstr "This page requires a password to view"

#: functions.php:369
msgid "几秒读完"
Expand Down
Binary file added languages/zh_TW.mo
Binary file not shown.
Loading

0 comments on commit ae86150

Please sign in to comment.