Skip to content

Commit

Permalink
Merge pull request #252 from olivertzeng/master
Browse files Browse the repository at this point in the history
Translated zh_TW
  • Loading branch information
l0drex authored Jan 16, 2024
2 parents de1f3eb + 9c9b904 commit 4e62e54
Show file tree
Hide file tree
Showing 9 changed files with 243 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
File renamed without changes.
119 changes: 119 additions & 0 deletions README_zh_TW.md
Original file line number Diff line number Diff line change
@@ -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).
## 安裝

### 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)](<https://github.com/oskarsh/Yin-Yang/wiki>)

## 其他相似軟體

- 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)

### 捐獻

<a href="https://opencollective.com/Yin-Yang/organization/0/website"><img src="https://opencollective.com/Yin-Yang/organization/0/avatar.svg"></a>
<a href="https://opencollective.com/Yin-Yang/organization/1/website"><img src="https://opencollective.com/Yin-Yang/organization/1/avatar.svg"></a>
<a href="https://opencollective.com/Yin-Yang/organization/2/website"><img src="https://opencollective.com/Yin-Yang/organization/2/avatar.svg"></a>
<a href="https://opencollective.com/Yin-Yang/organization/3/website"><img src="https://opencollective.com/Yin-Yang/organization/3/avatar.svg"></a>
<a href="https://opencollective.com/Yin-Yang/organization/4/website"><img src="https://opencollective.com/Yin-Yang/organization/4/avatar.svg"></a>
<a href="https://opencollective.com/Yin-Yang/organization/5/website"><img src="https://opencollective.com/Yin-Yang/organization/5/avatar.svg"></a>
<a href="https://opencollective.com/Yin-Yang/organization/6/website"><img src="https://opencollective.com/Yin-Yang/organization/6/avatar.svg"></a>
<a href="https://opencollective.com/Yin-Yang/organization/7/website"><img src="https://opencollective.com/Yin-Yang/organization/7/avatar.svg"></a>
<a href="https://opencollective.com/Yin-Yang/organization/8/website"><img src="https://opencollective.com/Yin-Yang/organization/8/avatar.svg"></a>
<a href="https://opencollective.com/Yin-Yang/organization/9/website"><img src="https://opencollective.com/Yin-Yang/organization/9/avatar.svg"></a>
6 changes: 3 additions & 3 deletions resources/translations/yin_yang.de_DE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,19 @@
<context>
<name>systray</name>
<message>
<location filename="../../yin_yang/__main__.py" line="120"/>
<location filename="../../yin_yang/__main__.py" line="125"/>
<source>Open Yin Yang</source>
<comment>Context menu action in the systray</comment>
<translation>Yin Yang öffnen</translation>
</message>
<message>
<location filename="../../yin_yang/__main__.py" line="121"/>
<location filename="../../yin_yang/__main__.py" line="126"/>
<source>Toggle theme</source>
<comment>Context menu action in the systray</comment>
<translation type="unfinished">Farbschema wechseln</translation>
</message>
<message>
<location filename="../../yin_yang/__main__.py" line="122"/>
<location filename="../../yin_yang/__main__.py" line="127"/>
<source>Quit</source>
<comment>Context menu action in the systray</comment>
<translation>Beenden</translation>
Expand Down
6 changes: 3 additions & 3 deletions resources/translations/yin_yang.nl_NL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,19 @@
<context>
<name>systray</name>
<message>
<location filename="../../yin_yang/__main__.py" line="120"/>
<location filename="../../yin_yang/__main__.py" line="125"/>
<source>Open Yin Yang</source>
<comment>Context menu action in the systray</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../yin_yang/__main__.py" line="121"/>
<location filename="../../yin_yang/__main__.py" line="126"/>
<source>Toggle theme</source>
<comment>Context menu action in the systray</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../yin_yang/__main__.py" line="122"/>
<location filename="../../yin_yang/__main__.py" line="127"/>
<source>Quit</source>
<comment>Context menu action in the systray</comment>
<translation type="unfinished"></translation>
Expand Down
Binary file added resources/translations/yin_yang.zh_TW.qm
Binary file not shown.
113 changes: 113 additions & 0 deletions resources/translations/yin_yang.zh_TW.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="zh_TW">
<context>
<name>main_window</name>
<message>
<location filename="../../designer/main_window.ui" line="50"/>
<source>Settings</source>
<translation type="unfinished">設定</translation>
</message>
<message>
<location filename="../../designer/main_window.ui" line="56"/>
<source>Automatic theme switching</source>
<translation type="unfinished">自動切換主題</translation>
</message>
<message>
<location filename="../../designer/main_window.ui" line="76"/>
<source>Custom Schedule</source>
<translation type="unfinished">自訂時間排程</translation>
</message>
<message>
<location filename="../../designer/main_window.ui" line="101"/>
<source>Light:</source>
<translation type="unfinished">明亮模式:</translation>
</message>
<message>
<location filename="../../designer/main_window.ui" line="137"/>
<source>Dark:</source>
<translation type="unfinished">暗黑模式:</translation>
</message>
<message>
<location filename="../../designer/main_window.ui" line="176"/>
<source>Sunset to Sunrise</source>
<translation type="unfinished">日落至日出</translation>
</message>
<message>
<location filename="../../designer/main_window.ui" line="189"/>
<source>Longitude:</source>
<translation type="unfinished">經度:</translation>
</message>
<message>
<location filename="../../designer/main_window.ui" line="224"/>
<source>Latitude:</source>
<translation type="unfinished">緯度:</translation>
</message>
<message>
<location filename="../../designer/main_window.ui" line="262"/>
<source>update location automatically</source>
<translation type="unfinished">自動更新經緯度</translation>
</message>
<message>
<location filename="../../designer/main_window.ui" line="285"/>
<source>Light</source>
<translation type="unfinished">明亮模式</translation>
</message>
<message>
<location filename="../../designer/main_window.ui" line="292"/>
<source>Dark</source>
<translation type="unfinished">暗黑模式</translation>
</message>
<message>
<location filename="../../designer/main_window.ui" line="302"/>
<source>Make a sound when switching the theme</source>
<translation type="unfinished">切換主題時播放音效</translation>
</message>
<message>
<location filename="../../designer/main_window.ui" line="309"/>
<source>Send a notification</source>
<translation type="unfinished">推送通知</translation>
</message>
<message>
<location filename="../../designer/main_window.ui" line="318"/>
<source>Time to wait until the system finished booting. Default value is 10 seconds.</source>
<translation type="unfinished">開機後延遲秒數。預設為十秒。</translation>
</message>
<message>
<location filename="../../designer/main_window.ui" line="321"/>
<source>Delay after boot:</source>
<translation type="unfinished">延遲秒數:</translation>
</message>
<message>
<location filename="../../designer/main_window.ui" line="328"/>
<source>s</source>
<translation type="unfinished">秒</translation>
</message>
<message>
<location filename="../../designer/main_window.ui" line="361"/>
<source>Plugins</source>
<translation type="unfinished">擴充功能</translation>
</message>
</context>
<context>
<name>systray</name>
<message>
<location filename="../../yin_yang/__main__.py" line="125"/>
<source>Open Yin Yang</source>
<comment>Context menu action in the systray</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../yin_yang/__main__.py" line="126"/>
<source>Toggle theme</source>
<comment>Context menu action in the systray</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../yin_yang/__main__.py" line="127"/>
<source>Quit</source>
<comment>Context menu action in the systray</comment>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
2 changes: 1 addition & 1 deletion yin_yang/ui/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -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!
################################################################################
Expand Down
6 changes: 3 additions & 3 deletions yin_yang/ui/resources_rc.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit 4e62e54

Please sign in to comment.