summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBo-Yi Wu <appleboy.tw@gmail.com>2017-01-11 16:23:42 +0800
committerThomas Boerger <thomas@webhippie.de>2017-01-11 09:23:42 +0100
commit0af9a24087c2705d470c9b393e711784fb3c38e7 (patch)
tree60089b22baae554ffd7451642fab8465944e2ee8
parente5620f07a4b4694737a65699f61b0d27e79d0718 (diff)
downloadgitea-0af9a24087c2705d470c9b393e711784fb3c38e7.tar.gz
gitea-0af9a24087c2705d470c9b393e711784fb3c38e7.zip
docs: update translation on homepage for zh-tw (#634)
-rw-r--r--conf/app.ini2
-rw-r--r--modules/setting/defaults.go2
-rw-r--r--templates/home.tmpl37
3 files changed, 39 insertions, 2 deletions
diff --git a/conf/app.ini b/conf/app.ini
index 3ca64d3aa6..f0a2b8ceed 100644
--- a/conf/app.ini
+++ b/conf/app.ini
@@ -416,7 +416,7 @@ MAX_RESPONSE_ITEMS = 50
[i18n]
LANGS = en-US,zh-CN,zh-HK,zh-TW,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,ja-JP,es-ES,pt-BR,pl-PL,bg-BG,it-IT,fi-FI,tr-TR,cs-CZ,sr-SP,sv-SE,ko-KR
-NAMES = English,简体中文,繁體中文(香港),繁體中文(台湾),Deutsch,Français,Nederlands,Latviešu,Русский,日本語,Español,Português do Brasil,Polski,български,Italiano,Suomalainen,Türkçe,čeština,Српски,Svenska,한국어
+NAMES = English,简体中文,繁體中文(香港),繁體中文(台灣),Deutsch,Français,Nederlands,Latviešu,Русский,日本語,Español,Português do Brasil,Polski,български,Italiano,Suomalainen,Türkçe,čeština,Српски,Svenska,한국어
; Used for datetimepicker
[i18n.datelang]
diff --git a/modules/setting/defaults.go b/modules/setting/defaults.go
index ac7a34b45d..281b81a612 100644
--- a/modules/setting/defaults.go
+++ b/modules/setting/defaults.go
@@ -6,5 +6,5 @@ import (
var (
defaultLangs = strings.Split("en-US,zh-CN,zh-HK,zh-TW,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,ja-JP,es-ES,pt-BR,pl-PL,bg-BG,it-IT,fi-FI,tr-TR,cs-CZ,sr-SP,sv-SE,ko-KR", ",")
- defaultLangNames = strings.Split("English,简体中文,繁體中文(香港),繁體中文(台湾),Deutsch,Français,Nederlands,Latviešu,Русский,日本語,Español,Português do Brasil,Polski,български,Italiano,Suomalainen,Türkçe,čeština,Српски,Svenska,한국어", ",")
+ defaultLangNames = strings.Split("English,简体中文,繁體中文(香港),繁體中文(台灣),Deutsch,Français,Nederlands,Latviešu,Русский,日本語,Español,Português do Brasil,Polski,български,Italiano,Suomalainen,Türkçe,čeština,Српски,Svenska,한국어", ",")
)
diff --git a/templates/home.tmpl b/templates/home.tmpl
index 1589ed9b64..525acac1f0 100644
--- a/templates/home.tmpl
+++ b/templates/home.tmpl
@@ -50,6 +50,43 @@
</p>
</div>
</div>
+ {{else if eq .Lang "zh-TW"}}
+ <div class="ui stackable middle very relaxed page grid">
+ <div class="eight wide center column">
+ <h1 class="hero ui icon header">
+ <i class="octicon octicon-flame"></i> 易安裝
+ </h1>
+ <p class="large">
+ 直接用 <a target="_blank" rel="noopener" href="https://docs.gitea.io/zh-cn/install-from-binary/">執行檔安裝</a>,還可以透過 <a target="_blank" rel="noopener" href="https://github.com/go-gitea/gitea/tree/master/docker">Docker</a> 或 <a target="_blank" rel="noopener" href="https://github.com/geerlingguy/ansible-vagrant-examples/tree/master/gogs">Vagrant</a>,以及 <a target="_blank" rel="noopener" href="https://docs.gitea.io/zh-cn/install-from-package/">套件</a>安装。
+ </p>
+ </div>
+ <div class="eight wide center column">
+ <h1 class="hero ui icon header">
+ <i class="octicon octicon-device-desktop"></i> 跨平台
+ </h1>
+ <p class="large">
+ Gitea 可以運作在任何 <a target="_blank" rel="noopener" href="http://golang.org/">Go 語言</a>能夠編譯的平台: Windows, macOS, Linux, ARM 等等。挑一個您喜歡的就好。
+ </p>
+ </div>
+ </div>
+ <div class="ui stackable middle very relaxed page grid">
+ <div class="eight wide center column">
+ <h1 class="hero ui icon header">
+ <i class="octicon octicon-rocket"></i> 輕量級
+ </h1>
+ <p class="large">
+ 一個便宜的樹莓派 Raspberry Pi 就可以滿足 Gitea 的最低系統需求,節省機器資源!
+ </p>
+ </div>
+ <div class="eight wide center column">
+ <h1 class="hero ui icon header">
+ <i class="octicon octicon-code"></i> 開源化
+ </h1>
+ <p class="large">
+ 所有程式碼都在 <a target="_blank" rel="noopener" href="https://github.com/go-gitea/gitea/">GitHub</a> 上,加入我們讓 Gitea 更好,別害羞,你可以做到的。
+ </p>
+ </div>
+ </div>
{{else if eq .Lang "zh-CN"}}
<div class="ui stackable middle very relaxed page grid">
<div class="eight wide center column">