From 45fccf4300f2e192e3abdeea6604d687eacb4861 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 13 Dec 2023 22:39:58 +0800 Subject: [PATCH 1/2] Translated zh_TW --- README.md | 2 +- README_zh.md => README_zh_CN.md | 0 README_zh_TW.md | 119 +++++++++++++++++++++++ resources/translations/yin_yang.de_DE.ts | 6 +- resources/translations/yin_yang.nl_NL.ts | 6 +- resources/translations/yin_yang.zh_TW.qm | Bin 0 -> 1180 bytes resources/translations/yin_yang.zh_TW.ts | 113 +++++++++++++++++++++ yin_yang/ui/main_window.py | 2 +- yin_yang/ui/resources_rc.py | 6 +- 9 files changed, 243 insertions(+), 11 deletions(-) rename README_zh.md => README_zh_CN.md (100%) create mode 100755 README_zh_TW.md create mode 100644 resources/translations/yin_yang.zh_TW.qm create mode 100644 resources/translations/yin_yang.zh_TW.ts diff --git a/README.md b/README.md index 8c4ad29f..cad7f454 100755 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ and also themes your favourite editors like VSCode or Atom. You might also want to take a look at our [**discussions page**](https://github.com/oskarsh/Yin-Yang/discussions), where we talk about the future of the app and other cool stuff! -> Translations: [🇨🇳](README_zh.md) +> Translations:[🇹🇼](README_zh_TW.md) [🇨🇳](README_zh_CN.md) ![Visualization](.github/images/header.png) ![App configuration](.github/images/settings.png) diff --git a/README_zh.md b/README_zh_CN.md similarity index 100% rename from README_zh.md rename to README_zh_CN.md diff --git a/README_zh_TW.md b/README_zh_TW.md new file mode 100755 index 00000000..dbf59254 --- /dev/null +++ b/README_zh_TW.md @@ -0,0 +1,119 @@ +# ![Yin & Yang logo](resources/logo.svg) Yin-Yang + +![](https://img.shields.io/github/v/release/oskarsh/yin-yang) +![](https://img.shields.io/github/v/release/oskarsh/yin-yang?include_prereleases) +![](https://img.shields.io/github/downloads/oskarsh/yin-yang/total) +![](https://img.shields.io/badge/Build%20with-Python-yellow) +![](https://img.shields.io/github/license/oskarsh/yin-yang) + +Linux 的自動化主題管理員,支援 KDE、Gnome、Budgie 等桌面環境 +還可以自動設定 VSCode、Atom 等應用程式的主題。 + +安裝後可以查看我們的[**論壇**](https://github.com/oskarsh/Yin-Yang/discussions),會有好康的! + +> 翻譯:[ 🇺🇸](README.md) [🇨🇳](README_zh_CN.md) + +![Visualization](.github/images/header.png) +![App configuration](.github/images/settings.png) + +## 功能 + +* 在自訂時間或是依照日出日落自動切換主題 +* 支援的桌面環境: + * Gnome + * Budgie + * KDE Plasma +* 支援的應用程式: + * VSCode、Atom、gedit + * Firefox、Brave + * Kvantum + * Konsole + * OnlyOffice + * 等等... +* 其他 + * 自動更換桌布 + * 自動推送通知 + * 切換主題時播放聲音 + * 自動執行腳本 + +> 想看 ETA 的人可以查看[進度](https://github.com/oskarsh/Yin-Yang/projects?type=classic). + +## Installation + +### Arch(BTW)系列 +Yin-Yang 可從 AUR 套件 [`yin-yang`](https://aur.archlinux.org/packages/yin-yang) 安裝 + + +### 自行編譯 +Yin-Yang 依賴 `python-systemd` 以及 `pyside6` 等 Pypi。`python-systemd` 依賴 systemd-headers 以及 `python3-devel` 等。 + +CentOS、RHEL、Fedora: +```bash +sudo dnf install gcc systemd-devel python3-devel libnotify +``` + +OpenSUSE: +```bash +sudo zypper refresh +sudo zypper install gcc systemd-devel libnotify +``` + +Debian 系列: +```bash +sudo apt update +sudo apt install libsystemd-dev gcc pkg-config python3-dev libnotify-bin +``` + +接下來請安裝 Yin-Yang 至虛擬 python 環境: +```bash +# bash 是建議的 shell +bash +# 克隆原始碼 +git clone https://github.com/oskarsh/Yin-Yang.git +cd Yin-Yang +# 安裝 Yin-Yang +./scripts/install.sh +``` + +開發者請略過安裝並且在家目錄中建立 vnev 資料夾 +```bash +python -m venv .venv +source .venv/bin/activate # 此腳本是為了 bash 設計,若使用其他殼層,請在同個資料夾中尋找相容的腳本 +pip install -r requirements.txt +``` + +## 說明 + +想要為此軟體貢獻?請查看維基尋找如何翻譯此軟體、或擴充功能等等! + +[![Generic badge](https://img.shields.io/badge/Visit-Wiki-BLUE.svg)]() + +## 其他相似軟體 + +- Windows 的自動暗黑模式[Windows Auto Night Mode](https://github.com/AutoDarkMode/Windows-Auto-Night-Mode) +- Gnome 的自動暗黑模式[Night Theme Switcher](https://extensions.gnome.org/extension/2236/night-theme-switcher/) +- Jetbrains IDE 自動暗黑模式 [Auto Dark Mode](https://github.com/weisJ/auto-dark-mode) +- 自動化 KDE 藍光濾鏡 [Knight Adjuster](https://github.com/adrium/knightadjuster) +- [darkman](https://gitlab.com/WhyNotHugo/darkman) +- Firefox 的自動暗黑模式 [dark reader](https://darkreader.org/) + +## 感謝所有貢獻者! + +### 軟體貢獻者 + +感謝你們!因為有這些貢獻者才有這個軟體的出現![[貢獻](https://github.com/oskarsh/Yin-Yang/wiki/Contributing)]. + +[![](https://opencollective.com/Yin-Yang/contributors.svg?button=false)](https://github.com/oskarsh/Yin-Yang/graphs/contributors) + +### 捐獻 + + + + + + + + + + + diff --git a/resources/translations/yin_yang.de_DE.ts b/resources/translations/yin_yang.de_DE.ts index 1a0a1935..ce9eecc2 100644 --- a/resources/translations/yin_yang.de_DE.ts +++ b/resources/translations/yin_yang.de_DE.ts @@ -92,19 +92,19 @@ systray - + Open Yin Yang Context menu action in the systray Yin Yang öffnen - + Toggle theme Context menu action in the systray Farbschema wechseln - + Quit Context menu action in the systray Beenden diff --git a/resources/translations/yin_yang.nl_NL.ts b/resources/translations/yin_yang.nl_NL.ts index 067aec4d..ff50bcde 100644 --- a/resources/translations/yin_yang.nl_NL.ts +++ b/resources/translations/yin_yang.nl_NL.ts @@ -92,19 +92,19 @@ systray - + Open Yin Yang Context menu action in the systray - + Toggle theme Context menu action in the systray - + Quit Context menu action in the systray diff --git a/resources/translations/yin_yang.zh_TW.qm b/resources/translations/yin_yang.zh_TW.qm new file mode 100644 index 0000000000000000000000000000000000000000..b8a23ded8af6ccc461cfdab33f6ced8d4e95cd42 GIT binary patch literal 1180 zcmaJ=Pe@cj7@uADUvFhM3!=neJap(_*;UKX+=|*Hca4Hzx9PokyQ6RC$RWAJN<)XooB8JV`+eVh-*1k;Huf*9 zJed5@*f4)>=H2J#2qFJKHr;c%16CvO3505HA>Zs6tcQ?xK8BE|jLwZL!~O+IY^=dP zhVGnv54fi_DZc~pnE&XP0f^@V_k5QS^3Dfazt+J2u=aTT44k8I_?rgj`@%DGZ4h6t zed~cd-clqoz5wwjQ7!Ww_E(~(Q!M~rWFY9*6qwYrjAw#y8qN{M(*?#2yWsgFGU_!uCQJI=fv_tQJ>>{c!AU(!4acHN zYRH^=__4P!9d&8GPLl6aVznyvSG|k&SI{kLcRxvl zbxDT{DzUUNtny5#o!2lq)|*a`S54CFo!&j#)c+>gUMx3zU9or%1N(zifiQ_3E}6C2 zC{YxW=CH{)6JYO6FF}<@a3?j1V@Z62SPsQZ;A72LP~GN+IHJ6+w^(+wdDORzR353h gMqdqAb11yX^-2eap literal 0 HcmV?d00001 diff --git a/resources/translations/yin_yang.zh_TW.ts b/resources/translations/yin_yang.zh_TW.ts new file mode 100644 index 00000000..7e7a5364 --- /dev/null +++ b/resources/translations/yin_yang.zh_TW.ts @@ -0,0 +1,113 @@ + + + + + main_window + + + Settings + 設定 + + + + Automatic theme switching + 自動切換主題 + + + + Custom Schedule + 自訂時間排程 + + + + Light: + 明亮模式: + + + + Dark: + 暗黑模式: + + + + Sunset to Sunrise + 日落至日出 + + + + Longitude: + 經度: + + + + Latitude: + 緯度: + + + + update location automatically + 自動更新經緯度 + + + + Light + 明亮模式 + + + + Dark + 暗黑模式 + + + + Make a sound when switching the theme + 切換主題時播放音效 + + + + Send a notification + 推送通知 + + + + Time to wait until the system finished booting. Default value is 10 seconds. + 開機後延遲秒數。預設為十秒。 + + + + Delay after boot: + 延遲秒數: + + + + s + + + + + Plugins + 擴充功能 + + + + systray + + + Open Yin Yang + Context menu action in the systray + + + + + Toggle theme + Context menu action in the systray + + + + + Quit + Context menu action in the systray + + + + diff --git a/yin_yang/ui/main_window.py b/yin_yang/ui/main_window.py index 79c0e585..f4c1e205 100644 --- a/yin_yang/ui/main_window.py +++ b/yin_yang/ui/main_window.py @@ -3,7 +3,7 @@ ################################################################################ ## Form generated from reading UI file 'main_window.ui' ## -## Created by: Qt User Interface Compiler version 6.5.0 +## Created by: Qt User Interface Compiler version 6.6.0 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ################################################################################ diff --git a/yin_yang/ui/resources_rc.py b/yin_yang/ui/resources_rc.py index 28b759c1..feafd0eb 100644 --- a/yin_yang/ui/resources_rc.py +++ b/yin_yang/ui/resources_rc.py @@ -1,6 +1,6 @@ # Resource object code (Python 3) # Created by: object code -# Created by: The Resource Compiler for Qt version 6.5.0 +# Created by: The Resource Compiler for Qt version 6.6.0 # WARNING! All changes made in this file will be lost! from PySide6 import QtCore @@ -274,9 +274,9 @@ \x00\x00\x00\x10\x00\x02\x00\x00\x00\x01\x00\x00\x00\x03\ \x00\x00\x00\x00\x00\x00\x00\x00\ \x00\x00\x00.\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\ -\x00\x00\x01\x88)>\x08Z\ +\x00\x00\x01\x8c^C\x1d\xc6\ \x00\x00\x00P\x00\x01\x00\x00\x00\x01\x00\x00\x07{\ -\x00\x00\x01\x84\x01\xd5\x8cC\ +\x00\x00\x01\x8cK\xf9\x0b4\ " def qInitResources(): From 9c9b904dfc4ecded71e28649b32c08e14008a04e Mon Sep 17 00:00:00 2001 From: Oliver Tzeng Date: Thu, 14 Dec 2023 12:54:59 +0800 Subject: [PATCH 2/2] Update README_zh_TW.md --- README_zh_TW.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README_zh_TW.md b/README_zh_TW.md index dbf59254..7c79d1c9 100755 --- a/README_zh_TW.md +++ b/README_zh_TW.md @@ -38,7 +38,7 @@ Linux 的自動化主題管理員,支援 KDE、Gnome、Budgie 等桌面環境 > 想看 ETA 的人可以查看[進度](https://github.com/oskarsh/Yin-Yang/projects?type=classic). -## Installation +## 安裝 ### Arch(BTW)系列 Yin-Yang 可從 AUR 套件 [`yin-yang`](https://aur.archlinux.org/packages/yin-yang) 安裝 @@ -116,4 +116,4 @@ pip install -r requirements.txt - + \ No newline at end of file