From dac3e8c9255cb6ca02069d4003b6c0a85e6a258e Mon Sep 17 00:00:00 2001 From: Toby Chui Date: Wed, 19 Mar 2025 21:27:41 +0800 Subject: [PATCH] Added German localization to homepage --- docs/index.html | 160 +++++++++++++++++++++++++++++++++++------------- docs/main.css | 4 ++ docs/main.js | 12 +++- 3 files changed, 130 insertions(+), 46 deletions(-) diff --git a/docs/index.html b/docs/index.html index 6cfb3a0..548a5a2 100644 --- a/docs/index.html +++ b/docs/index.html @@ -64,22 +64,22 @@ - Home // 主頁 + Home // 主頁 // Startseite - About Zoraxy // 關於 Zoraxy + About Zoraxy // 關於 Zoraxy // Über Zoraxy - Screenshots // 系統截圖 + Screenshots // 系統截圖 // Bildschirmfotos - Videos // 介紹影片 + Videos // 介紹影片 // Videos - Download // 下載 + Download // 下載 // Herunterladen - Learn More // 了解更多 + Learn More // 了解更多 // Mehr erfahren @@ -99,6 +100,7 @@

This site is currently under development. Some information might not be ready. // 本網站目前仍在開發中,部分資訊可能尚未準備好。 + // Diese Seite ist in Entwicklung. Einige Informationen sind möglicherweise nicht verfügbar.

@@ -108,14 +110,11 @@

The ultimate homelab networking toolbox for self-hosted services // 簡化自家伺服器部署之事,初學者居家網絡必備良器 + // Das ultimative Homelab-Netzwerk-Toolbox für selbstgehostete Dienste

- Download // 立即下載 - Source Code // 查看原始碼 + Download // 立即下載 // Herunterladen + Source Code // 查看原始碼 // Quellcode -
-
- Scroll down to learn more // 向下滑以了解更多 // スクロールダウンして詳細をご覧ください // 下滑了解更多 -
@@ -142,11 +141,11 @@
-

Reverse Proxy // 反向代理

-

Easy setups with dynamic updates // 讓你想不到般簡單易用、迅速設定、動態更新

+

Reverse Proxy // 反向代理 // Reverse-Proxy

+

Easy setups with dynamic updates // 讓你想不到般簡單易用、迅速設定、動態更新 // Einfache Einrichtung mit dynamischen Updates

Access your reverse proxy and self-hosted services from any computer with a browser, anytime, anywhere. // 透過瀏覽器,隨時隨地在任何裝置上存取您的反向代理及自家伺服器服務。 - + // Greifen Sie jederzeit und überall von jedem Gerät aus auf Ihren Reverse-Proxy und selbst gehostete

@@ -154,7 +153,7 @@
Simple setups with web UI // 透過網頁介面簡單設定即可使用 - + // Einfache Einrichtung mit Web-UI
@@ -162,7 +161,7 @@
Change settings on the fly without restarting // 即時更改設定,無需重新啟動 - + // Einstellungen ohne Neustart ändern
@@ -170,7 +169,7 @@
One of the best reverse proxy manager for beginners // 可能是最適合初學者的反向代理管理器之一 - + // Einer der besten Reverse-Proxy-Manager für Anfänger
@@ -178,6 +177,7 @@
Easily install plugins and edit configurations // 輕鬆安裝插件並編輯設定 + // Plugins einfach installieren und Konfigurationen bearbeiten
@@ -190,11 +190,11 @@
-

Real-time Analytics // 即時流量分析

-

Dynamic statistic and access control // 動態流量數據、權限與路由設定

+

Real-time Analytics // 即時流量分析 // Echtzeit-Analysen

+

Dynamic statistic and access control // 動態流量數據、權限與路由設定 // Dynamische Statistik und Zugriffskontrolle

Provide real time statistical overview, take advantage of the real time traffic and situations to make better decisions. // 提供即時統計概覽,利用即時流量和情況做出更好的決策。 - + // Bietet eine Echtzeit-Übersicht über die Statistiken, um bessere Entscheidungen zu treffen.

@@ -202,7 +202,7 @@
Real time visitor statistic // 即時訪客統計概覽 - + // Echtzeit-Besucherstatistik
@@ -210,7 +210,7 @@
Instant network utilitization overview // 即時網路使用率概覽 - + // Sofortige Netzwerkübersicht
@@ -218,7 +218,7 @@
No-reload access control and settings // 即時生效存取控制和設定 - + // Zugriffskontrolle und Einstellungen ohne Neustart
@@ -226,7 +226,7 @@
One-click setting change with no downtime // 一鍵設定更改,無需停機 - + // Einstellungsänderung mit einem Klick ohne Ausfallzeiten
@@ -239,7 +239,10 @@
-

Screenshots // 系統截圖

+

Screenshots + // 系統截圖 + // Bildschirmfotos +

@@ -280,7 +283,11 @@


-

Review Videos // 介紹影片

+

+ Review Videos + // 介紹影片 + // Videos +

@@ -297,18 +304,26 @@


-

Download // 下載

+

+ Download + // 下載 + // Herunterladen +

-

Install with command line // 使用 CLI 下載並執行發行版本

+

+ Install with command line + // 使用 CLI 下載並執行發行版本 + // Installieren Sie mit der Befehlszeile +

wget https://github.com/tobychui/zoraxy/releases/latest/download/zoraxy_linux_amd64
@@ -317,18 +332,48 @@

-

Install with precompiled binary // 下載發行版本

- +

+ Install with precompiled binary + // 下載發行版本 + // Installieren Sie mit vorkompilierten Binärdateien +

+ OR - +
-

Install with precompiled binary // 下載發行版本

- +

+ Install with precompiled binary + // 下載發行版本 + // Installieren Sie mit vorkompilierten Binärdateien +

+

-

Install with command line (armv6-7, arm64, x86) // 使用 CLI 下載並執行 (armv6-7, arm64, x86)

+

Install with command line (armv6-7, arm64, x86) + // 使用 CLI 下載並執行 (armv6-7, arm64, x86) + // Installieren Sie mit der Befehlszeile (armv6-7, arm64, x86) +

# Check your CPU architecture
@@ -349,7 +394,10 @@

-

Install with precompiled binary // 下載發行版本

+

Install with precompiled binary + // 下載發行版本 + // Installieren Sie mit vorkompilierten Binärdateien +

@@ -357,6 +405,7 @@

Require Go (Golang) compiler. Details build from source instruction can be found on Zoraxy Github README file. // 需要 Go (Go 語言)編譯器。建置詳情可以在 Zoraxy Github README 檔案中找到。 + // Erfordert den Go (Golang) Compiler. Detaillierte Anweisungen zum Erstellen aus dem Quellcode finden Sie in der Zoraxy Github README-Datei.

@@ -369,9 +418,16 @@
-

After the Zoraxy is started, navigate to // 當 Zoraxy 執行檔 / 服務啟動後,使用瀏覽器開啟 +

+ After Zoraxy is started, navigate to + // 當 Zoraxy 執行檔 / 服務啟動後,使用瀏覽器開啟 + // Nachdem Zoraxy gestartet wurde, navigieren Sie zu + http://localhost:8000 - to continue account and system setup. // 以繼續帳戶和系統設定。 + to continue account and system setup. + // 以繼續帳戶和系統設定。 + // um die Konto- und Systemeinrichtung fortzusetzen. +



@@ -380,9 +436,13 @@
-

Learn More // 了解更多

+

Learn More + // 了解更多 + // Mehr erfahren +

If you like this project, please feel free to give us a ⭐ star ⭐. // 如果您喜歡這個開源專案,歡迎來給我們一顆 ⭐星星⭐ 喔!! + // Wenn Ihnen dieses Projekt gefällt, geben Sie uns bitte einen ⭐ Stern ⭐.

@@ -393,6 +453,7 @@
Github // 源碼 + // Quellcode
@@ -403,6 +464,7 @@
Plugin Devs // 插件開發 + // Plugin-Entwickler
@@ -413,6 +475,7 @@
Email // 電子郵件 + // E-Mail
@@ -451,7 +514,10 @@
-
Developer Tools // 開發者工具
+
Developer Tools + // 開發者工具 + // Entwicklerwerkzeuge +
@@ -460,13 +526,19 @@
-
Project Spin-offs // 衍生開源計劃
+
Project Spin-offs + // 衍生開源計劃 + // Projekt-Ableger +
-
Related Links // 相關連接
+
Related Links + // 相關連接 + // Verwandte Links +
diff --git a/docs/main.css b/docs/main.css index aeaf18a..f2e6e18 100644 --- a/docs/main.css +++ b/docs/main.css @@ -310,6 +310,10 @@ body.zh-cn *:not(i){ color: rgb(209, 224, 255); } +#footer a:hover{ + color: rgb(255, 255, 255); +} + #footer .bottom-attach .divider{ color: rgb(212, 212, 212); } diff --git a/docs/main.js b/docs/main.js index 2711c1d..d8c57ce 100644 --- a/docs/main.js +++ b/docs/main.js @@ -6,7 +6,7 @@ And then add the language ISO key to the list below. */ -let languages = ['en', 'zh', 'jp', 'zh-cn']; +let languages = ['en', 'zh', 'de']; //Bind language change dropdown events @@ -24,7 +24,15 @@ var i18n = domI18n({ languages: languages, defaultLanguage: 'en' }); -i18n.changeLanguage('en'); + +let userLang = navigator.language || navigator.userLanguage; +console.log("User language: " + userLang); +userLang = userLang.split("-")[0]; +if (!languages.includes(userLang)) { + userLang = 'en'; +} +i18n.changeLanguage(userLang); + /* Main Menu */ $("#rwdmenubtn").on("click", function(){