Skip to content

Commit 0f7d0b2

Browse files
authored
Merge pull request #51 from Class-Widgets/main
同步
2 parents 7259db0 + c6117d3 commit 0f7d0b2

8 files changed

Lines changed: 118 additions & 20 deletions

File tree

components/Hero.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,14 @@ const Hero = ({ translations }: { translations: Translations }) => {
140140
</div>
141141
<div className="flex flex-row gap-4">
142142
<TransparentButton
143-
href="https://cwdocs.rinlit.cn/user_docs"
143+
href="https://cwdocs.rinlit.cn/about"
144144
className="flex w-fit flex-row items-center gap-2"
145145
data-aos="fade-up"
146146
>
147147
<span className="text-lg lg:text-xl">{t("hero.docs")}</span>
148148
</TransparentButton>
149149
<TransparentButton
150-
href="https://cwdocs.rinlit.cn/standards/"
150+
href="https://cwdocs.rinlit.cn/community/"
151151
className="flex w-fit flex-row items-center gap-2"
152152
data-aos="fade-up"
153153
>

components/LanguageSwitcher.tsx

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const LanguageSwitcher = () => {
77
// 从 URL 路径中获取当前语言
88
const pathParts = window.location.pathname.split('/');
99
const langFromPath = pathParts[1];
10-
if (langFromPath === 'zh' || langFromPath === 'en') {
10+
if (langFromPath === 'zh' || langFromPath === 'en' || langFromPath === 'ja') {
1111
setCurrentLang(langFromPath);
1212
}
1313
}, []);
@@ -32,7 +32,7 @@ const LanguageSwitcher = () => {
3232
: 'text-gray-200 hover:bg-white/10 hover:text-white hover:shadow-sm'
3333
}`}
3434
>
35-
EN
35+
English
3636
</button>
3737
<button
3838
onClick={() => switchLanguage('zh')}
@@ -42,7 +42,17 @@ const LanguageSwitcher = () => {
4242
: 'text-gray-200 hover:bg-white/10 hover:text-white hover:shadow-sm'
4343
}`}
4444
>
45-
中文
45+
简体中文
46+
</button>
47+
<button
48+
onClick={() => switchLanguage('ja')}
49+
className={`px-3 py-2 text-sm font-medium rounded-md transition-all duration-300 ease-out ${
50+
currentLang === 'ja'
51+
? 'bg-white/20 text-white shadow-md backdrop-blur-sm border border-white/30 transform scale-105'
52+
: 'text-gray-200 hover:bg-white/10 hover:text-white hover:shadow-sm'
53+
}`}
54+
>
55+
日本語
4656
</button>
4757
</div>
4858
);

components/layout/Footer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ const Footer = ({ translations }: { translations: Translations }) => {
1717
const navItems = [
1818
{ href: getLocalizedPath("/"), label: t("navs.home") },
1919
{ href: getLocalizedPath("/download"), label: t("navs.download") },
20-
{ href: "https://cwdocs.rinlit.cn/user_docs/", label: t("navs.user_docs") },
21-
{ href: "https://cwdocs.rinlit.cn/dev_docs/", label: t("navs.dev_docs") },
20+
{ href: "https://cwdocs.rinlit.cn/about/", label: t("navs.user_docs") },
21+
{ href: "https://cwdocs.rinlit.cn/dev/", label: t("navs.dev_docs") },
2222
];
2323

2424
return (

components/layout/Header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ const Header = ({ translations }: { translations: Translations }) => {
2929
const navItems = [
3030
{ href: getLocalizedPath("/"), label: t("navs.home") },
3131
{ href: getLocalizedPath("/download"), label: t("navs.download") },
32-
{ href: "https://cwdocs.rinlit.cn/user_docs/", label: t("navs.user_docs") },
33-
{ href: "https://cwdocs.rinlit.cn/dev_docs/", label: t("navs.dev_docs") },
32+
{ href: "https://cwdocs.rinlit.cn/about/", label: t("navs.user_docs") },
33+
{ href: "https://cwdocs.rinlit.cn/dev/", label: t("navs.dev_docs") },
3434
];
3535

3636
useEffect(() => {

locales/en.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"desc": "Bring a new personalized experience to your desktop, supporting Windows, macOS, and Linux.",
1717
"quick_links": "Quick Links",
1818
"systems": "Platform Support",
19-
"cr":"Based on GPL v3 license release."
19+
"cr": "Based on GPL v3 license release."
2020
},
2121
"desktop": {
2222
"title": "Say hello, to the <span class=\"gradient-text\">future morphology</span> of class schedule"
@@ -28,7 +28,7 @@
2828
},
2929
"compatibility": {
3030
"tag": "# Multi-platform Support",
31-
"title": "Near-perfect\nCompatibility",
31+
"title": "Near-perfect Compatibility",
3232
"content": "Class Widgets is built on PyQt and supports Windows, macOS, and Linux."
3333
},
3434
"misc": {
@@ -51,7 +51,7 @@
5151
"download": {
5252
"page_title": "Download",
5353
"title": "Download Class Widgets",
54-
"description": "Download the Class Widgets application to use on your device. We provide versions for Windows, macOS, and Linux to ensure you can enjoy our software on any platform.\nOr if you want to use or experience the new features, please download Class Widgets from the <a href=\"https://github.com/Class-Widgets/Class-Widgets/actions\" style=\"color: #007bff;\">Actions</a> page of its GitHub repository.\nYou will get a zip file, please extract it to a suitable location and run 'ClassWidgets.exe'. You can access settings or exit the program via the tray menu.",
54+
"description": "Download the Class Widgets application to use on your device. We provide versions for Windows, macOS, and Linux to ensure you can enjoy our software on any platform.<br><br>Or if you want to use or experience the new features, please download Class Widgets from the <a href=\"https://github.com/Class-Widgets/Class-Widgets/actions\" style=\"color: #007bff;\">Actions</a> page of its GitHub repository.<br><br>You will get a zip file, please extract it to a suitable location and run 'ClassWidgets.exe'. You can access settings or exit the program via the tray menu.",
5555
"use_proxy": "Use proxy to download (please check this option if the direct download speed is slow)",
5656
"loading": "Loading latest version information...",
5757
"download_button": "Download",
@@ -61,7 +61,7 @@
6161
},
6262
"windows": {
6363
"title": "Download for Windows",
64-
"description": "Supports Windows 7 and above.\nWe provides x64 and x86 versions."
64+
"description": "Supports Windows 7 and above.\nWe provide x64 and x86 versions."
6565
},
6666
"linux": {
6767
"title": "Download for Linux",

locales/ja.json

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
{
2+
"test": "テスト",
3+
"hero": {
4+
"title": "多様なデスクトップ時間割\n全く新しいデスクトップ授業スケジュールの形態",
5+
"download": "ダウンロード",
6+
"docs": "ドキュメント",
7+
"community": "コミュニティ"
8+
},
9+
"navs": {
10+
"home": "ホーム",
11+
"user_docs": "ユーザードキュメント",
12+
"dev_docs": "開発者ドキュメント",
13+
"download": "ダウンロード"
14+
},
15+
"footer": {
16+
"desc": "デスクトップに全く新しいパーソナライズ体験を提供し、Windows、macOS、Linuxシステムをサポートしています。",
17+
"quick_links": "クイックリンク",
18+
"systems": "プラットフォームサポート",
19+
"cr": "GPL v3 ライセンスに基づいて公開されています。"
20+
},
21+
"desktop": {
22+
"title": "<span class='gradient-text'>未来形態</span>の時間割に、こんにちはと言おう"
23+
},
24+
"personalization": {
25+
"tag": "# パーソナライゼーション",
26+
"title": "プラグイン & テーマ\n究極のカスタマイズ",
27+
"content": "Class Widgetsには、Pythonベースのプラグインシステムとプラグインストアが搭載されています。プラグインストアから必要なプラグインをインストールできます。さらに、個性を発揮できるテーマシステムにより、唯一無二のClass Widgetsを構築できます。"
28+
},
29+
"compatibility": {
30+
"tag": "# マルチプラットフォームサポート",
31+
"title": "ほぼ完璧な\n互換性",
32+
"content": "Class WidgetsはPyQtに基づいて構築されており、Windows、macOS、Linuxの3大主流オペレーティングシステムをサポートしています。"
33+
},
34+
"misc": {
35+
"notification": {
36+
"tag": "通知",
37+
"title": "強力な通知システム",
38+
"content": "強力な通知システムを提供し、授業の開始・終了などの時間にリマインダーを表示できます。さらに、プラグインから通知インターフェースを呼び出すことで、より実用的に使用できます。"
39+
},
40+
"floating": {
41+
"tag": "フローティングウィンドウ",
42+
"title": "全く新しい隠し方",
43+
"content": "全く新しい隠し方「フローティングウィンドウ」により、Class Widgetsの重要な情報を小さな浮動ウィンドウに凝縮でき、より軽量で使いやすくなり、教学活動への干渉を最小限に抑えます。"
44+
},
45+
"design": {
46+
"tag": "デザイン",
47+
"title": "究極のデザイン言語",
48+
"content": "Class Widgetsはマイクロソフトが提供するFluent Designデザイン言語を採用し、QFluentWidgets UIライブラリを使用しているため、インターフェースがよりシンプルで快適、そしてスムーズになっています。"
49+
}
50+
},
51+
"download": {
52+
"page_title": "ダウンロード",
53+
"title": "Class Widgetsをダウンロード",
54+
"description": "Class Widgetsアプリケーションをダウンロードして、ご自身のデバイスで使用してください。Windows、macOS、Linuxに対応したバージョンを提供しており、どのプラットフォームでも本ソフトウェアを楽しめるようにしています。<br><br>本ソフトウェアの新機能を使用または体験したい場合は、プロジェクトのGithubリポジトリの <a href=\"https://github.com/Class-Widgets/Class-Widgets/actions\" style=\"color: #007bff;\">Actions</a> ページにアクセスして、最新のビルドをダウンロードしてください。<br><br>圧縮ファイルがダウンロードされますので、適切な場所に解凍した後、「ClassWidgets.exe」を開いてください。トレイメニューから設定に入ったり、プログラムを終了したりすることができます。",
55+
"use_proxy": "プロキシを使用してダウンロード (直接ダウンロード速度が遅い場合は、こちらをチェックしてください)",
56+
"loading": "最新バージョン情報を取得中...",
57+
"download_button": "ダウンロード",
58+
"macos": {
59+
"title": "MacOSダウンロード",
60+
"description": "Apple Silicon および Intel プロセッサをサポート"
61+
},
62+
"windows": {
63+
"title": "Windowsダウンロード",
64+
"description": "Windows 7 以降をサポート\nx64 および x86 バージョンを提供"
65+
},
66+
"linux": {
67+
"title": "Linuxダウンロード",
68+
"description": "現在はDebianのみをサポートしています。その他のバージョンは近日公開予定です"
69+
},
70+
"footer": {
71+
"help": "ヘルプが必要ですか?当社の <a href=\"https://github.com/Class-Widgets/Class-Widgets\" style=\"color: #007bff;\">Github</a> をご覧になるか、<a href=\"https://github.com/orgs/Class-Widgets/discussions\" style=\"color: #007bff;\">コミュニティ</a> に参加してください",
72+
"security": "すべてのダウンロードはデジタル署名とセキュリティ検証を通過しています"
73+
}
74+
},
75+
"version": {
76+
"loading": "最新バージョン情報を取得中...",
77+
"latest": "最新バージョン",
78+
"published": "公開日"
79+
},
80+
"vercard": {
81+
"title": "バージョンカード"
82+
},
83+
"acknowledgements": {
84+
"special_thanks_title": "特別謝辞",
85+
"thanks_contributors": "すべての貢献者に感謝します",
86+
"view_all_on_github": "<a href=\"https://github.com/Class-Widgets/Class-Widgets/graphs/contributors\" target=\"_blank\" style=\"color: #007bff;\">GitHub</a> ですべての貢献者をご覧ください"
87+
}
88+
}

locales/zh.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
"desc": "为您的桌面带来全新的个性化体验,支持Windows、macOS和Linux系统。",
1717
"quick_links": "快速链接",
1818
"systems": "平台支持",
19-
"cr":"基于 GPL v3 协议发布。"
19+
"cr": "基于 GPL v3 协议发布。"
2020
},
2121
"desktop": {
22-
"title": "向<span class=\"gradient-text\">未来形态</span>的课程表 说你好"
22+
"title": "向<span class='gradient-text'>未来形态</span>的课程表 说你好"
2323
},
2424
"personalization": {
2525
"tag": "# 个性化",
@@ -51,7 +51,7 @@
5151
"download": {
5252
"page_title": "下载",
5353
"title": "下载Class Widgets",
54-
"description": "下载 Class Widgets 应用程序以在您的设备上使用。我们提供了适用于 Windows、macOS 和 Linux 的版本,确保您可以在任何平台上享受我们的软件。\n如果您需要使用或体验本软件的一些新特性,请前往本项目 Github 仓库的 <div v-html=\"linkHtml\"><a href=\\\"https://github.com/Class-Widgets/Class-Widgets/actions\\\" style=\\\"color: #007bff;\\\">Actions</a></div> 页面下载最新构建。\n您会得到一个压缩文件,请解压到合适位置后,打开“ClassWidgets.exe”。您可以通过托盘菜单进入设置或退出此程序。",
54+
"description": "下载 Class Widgets 应用程序以在您的设备上使用。我们提供了适用于 Windows、macOS 和 Linux 的版本,确保您可以在任何平台上享受我们的软件。<br><br>如果您需要使用或体验本软件的一些新特性,请前往本项目 Github 仓库的 <a href=\"https://github.com/Class-Widgets/Class-Widgets/actions\" style=\"color: #007bff;\">Actions</a> 页面下载最新构建。<br><br>您会得到一个压缩文件,请解压到合适位置后,打开“ClassWidgets.exe”。您可以通过托盘菜单进入设置或退出此程序。",
5555
"use_proxy": "使用代理下载 (如果直接下载速度慢,请勾选此项)",
5656
"loading": "正在加载最新版本信息...",
5757
"download_button": "下载",
@@ -61,7 +61,7 @@
6161
},
6262
"windows": {
6363
"title": "Windows下载",
64-
"description": "支持 Windows7 及以上版本\n提供 x64 和 x86 版本"
64+
"description": "支持 Windows 7 及以上版本\n提供 x64 和 x86 版本"
6565
},
6666
"linux": {
6767
"title": "Linux下载",
@@ -85,4 +85,4 @@
8585
"thanks_contributors": "鸣谢所有的贡献者",
8686
"view_all_on_github": "在 <a href=\"https://github.com/Class-Widgets/Class-Widgets/graphs/contributors\" target=\"_blank\" style=\"color: #007bff;\">GitHub</a> 上查看所有的贡献者"
8787
}
88-
}
88+
}

public/version.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"version_release": "v1.1.7.1",
2+
"version_release": "v1.2.0.0",
33
"version_beta": "v1.1.7-b4"
4-
}
4+
}

0 commit comments

Comments
 (0)