From 0af9a24087c2705d470c9b393e711784fb3c38e7 Mon Sep 17 00:00:00 2001
From: Bo-Yi Wu
Date: Wed, 11 Jan 2017 16:23:42 +0800
Subject: [PATCH] docs: update translation on homepage for zh-tw (#634)
---
conf/app.ini | 2 +-
modules/setting/defaults.go | 2 +-
templates/home.tmpl | 37 +++++++++++++++++++++++++++++++++++++
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 @@
+ {{else if eq .Lang "zh-TW"}}
+
+
+
+
+
+ Gitea 可以運作在任何 Go 語言能夠編譯的平台: Windows, macOS, Linux, ARM 等等。挑一個您喜歡的就好。
+
+
+
+
+
+
+
+ 一個便宜的樹莓派 Raspberry Pi 就可以滿足 Gitea 的最低系統需求,節省機器資源!
+
+
+
+
+
+ 所有程式碼都在 GitHub 上,加入我們讓 Gitea 更好,別害羞,你可以做到的。
+
+
+
{{else if eq .Lang "zh-CN"}}