From b3e2f08254da921baa0a5f1d0ce65d029bd1e4d2 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Mon, 25 Jul 2022 16:47:16 +0800 Subject: [PATCH] AboutWindow // Wiki -> Website. --- Source/WindowControllers/ctlAboutWindow.swift | 4 ++-- Source/WindowNIBs/Base.lproj/frmAboutWindow.xib | 8 ++++---- Source/WindowNIBs/en.lproj/frmAboutWindow.strings | 2 ++ Source/WindowNIBs/ja.lproj/frmAboutWindow.strings | 2 ++ Source/WindowNIBs/zh-Hans.lproj/frmAboutWindow.strings | 2 ++ Source/WindowNIBs/zh-Hant.lproj/frmAboutWindow.strings | 2 ++ UserPhraseEditor/Resources/Base.lproj/frmAboutWindow.xib | 5 ++++- .../Resources/en.lproj/frmAboutWindow.strings | 2 ++ .../Resources/ja.lproj/frmAboutWindow.strings | 2 ++ .../Resources/zh-Hans.lproj/frmAboutWindow.strings | 2 ++ .../Resources/zh-Hant.lproj/frmAboutWindow.strings | 2 ++ UserPhraseEditor/ctlAboutWindow.swift | 4 ++-- 12 files changed, 28 insertions(+), 9 deletions(-) diff --git a/Source/WindowControllers/ctlAboutWindow.swift b/Source/WindowControllers/ctlAboutWindow.swift index f653e09d..747e131e 100644 --- a/Source/WindowControllers/ctlAboutWindow.swift +++ b/Source/WindowControllers/ctlAboutWindow.swift @@ -57,8 +57,8 @@ class ctlAboutWindow: NSWindowController { ) } - @IBAction func btnWiki(_: NSButton) { - if let url = URL(string: "https://gitee.com/vchewing/vChewing-macOS/wikis") { + @IBAction func btnWebsite(_ sender: NSButton) { + if let url = URL(string: "https://vchewing.github.io/") { NSWorkspace.shared.open(url) } } diff --git a/Source/WindowNIBs/Base.lproj/frmAboutWindow.xib b/Source/WindowNIBs/Base.lproj/frmAboutWindow.xib index 78825465..8cfaea98 100644 --- a/Source/WindowNIBs/Base.lproj/frmAboutWindow.xib +++ b/Source/WindowNIBs/Base.lproj/frmAboutWindow.xib @@ -1,8 +1,8 @@ - + - + @@ -155,12 +155,12 @@ DQ diff --git a/Source/WindowNIBs/en.lproj/frmAboutWindow.strings b/Source/WindowNIBs/en.lproj/frmAboutWindow.strings index 2bb44275..5e01afff 100644 --- a/Source/WindowNIBs/en.lproj/frmAboutWindow.strings +++ b/Source/WindowNIBs/en.lproj/frmAboutWindow.strings @@ -25,3 +25,5 @@ /* Class = "NSTextFieldCell"; title = "vChewing macOS Development: Shiki Suen, Isaac Xen, Hiraku Wang, etc.\nvChewing Phrase Database Maintained by Shiki Suen."; ObjectID = "lblCredits"; */ "lblCredits.title" = "vChewing macOS Development: Shiki Suen, Isaac Xen, Hiraku Wang, etc.\nvChewing Phrase Database Maintained by Shiki Suen."; + +"xCD-lx-zY7.title" = "Website"; diff --git a/Source/WindowNIBs/ja.lproj/frmAboutWindow.strings b/Source/WindowNIBs/ja.lproj/frmAboutWindow.strings index 2f25f6b2..09c85236 100644 --- a/Source/WindowNIBs/ja.lproj/frmAboutWindow.strings +++ b/Source/WindowNIBs/ja.lproj/frmAboutWindow.strings @@ -25,3 +25,5 @@ /* Class = "NSTextFieldCell"; title = "vChewing macOS Development: Shiki Suen, Isaac Xen, Hiraku Wang, etc.\nvChewing Phrase Database Maintained by Shiki Suen."; ObjectID = "lblCredits"; */ "lblCredits.title" = "macOS 版威注音の開発:Shiki Suen, Isaac Xen, Hiraku Wang, など。\n威注音語彙データの維持:Shiki Suen。"; + +"xCD-lx-zY7.title" = "公式HP"; diff --git a/Source/WindowNIBs/zh-Hans.lproj/frmAboutWindow.strings b/Source/WindowNIBs/zh-Hans.lproj/frmAboutWindow.strings index 234a4a42..a0347045 100644 --- a/Source/WindowNIBs/zh-Hans.lproj/frmAboutWindow.strings +++ b/Source/WindowNIBs/zh-Hans.lproj/frmAboutWindow.strings @@ -25,3 +25,5 @@ /* Class = "NSTextFieldCell"; title = "vChewing macOS Development: Shiki Suen, Isaac Xen, Hiraku Wang, etc.\nvChewing Phrase Database Maintained by Shiki Suen."; ObjectID = "lblCredits"; */ "lblCredits.title" = "威注音 macOS 程式研发:Shiki Suen, Isaac Xen, Hiraku Wang, 等。\n威注音词库维护:Shiki Suen。"; + +"xCD-lx-zY7.title" = "网站"; diff --git a/Source/WindowNIBs/zh-Hant.lproj/frmAboutWindow.strings b/Source/WindowNIBs/zh-Hant.lproj/frmAboutWindow.strings index 248929f1..29d78b3c 100644 --- a/Source/WindowNIBs/zh-Hant.lproj/frmAboutWindow.strings +++ b/Source/WindowNIBs/zh-Hant.lproj/frmAboutWindow.strings @@ -25,3 +25,5 @@ /* Class = "NSTextFieldCell"; title = "vChewing macOS Development: Shiki Suen, Isaac Xen, Hiraku Wang, etc.\nvChewing Phrase Database Maintained by Shiki Suen."; ObjectID = "lblCredits"; */ "lblCredits.title" = "威注音 macOS 程式研发:Shiki Suen, Isaac Xen, Hiraku Wang, 等。\n威注音词库维护:Shiki Suen。"; + +"xCD-lx-zY7.title" = "網站"; diff --git a/UserPhraseEditor/Resources/Base.lproj/frmAboutWindow.xib b/UserPhraseEditor/Resources/Base.lproj/frmAboutWindow.xib index 19a706ea..6cea96de 100644 --- a/UserPhraseEditor/Resources/Base.lproj/frmAboutWindow.xib +++ b/UserPhraseEditor/Resources/Base.lproj/frmAboutWindow.xib @@ -157,10 +157,13 @@ DQ diff --git a/UserPhraseEditor/Resources/en.lproj/frmAboutWindow.strings b/UserPhraseEditor/Resources/en.lproj/frmAboutWindow.strings index b99c9b11..562c4a07 100644 --- a/UserPhraseEditor/Resources/en.lproj/frmAboutWindow.strings +++ b/UserPhraseEditor/Resources/en.lproj/frmAboutWindow.strings @@ -25,3 +25,5 @@ /* Class = "NSWindow"; title = "About vChewing Phrase Editor for macOS"; ObjectID = "ttlAboutWindow"; */ "ttlAboutWindow.title" = "About vChewing Phrase Editor for macOS"; + +"ImH-h2-3FG.title" = "Website"; diff --git a/UserPhraseEditor/Resources/ja.lproj/frmAboutWindow.strings b/UserPhraseEditor/Resources/ja.lproj/frmAboutWindow.strings index eecfe7a2..5c8a9576 100644 --- a/UserPhraseEditor/Resources/ja.lproj/frmAboutWindow.strings +++ b/UserPhraseEditor/Resources/ja.lproj/frmAboutWindow.strings @@ -25,3 +25,5 @@ /* Class = "NSWindow"; title = "About vChewing Phrase Editor for macOS"; ObjectID = "ttlAboutWindow"; */ "ttlAboutWindow.title" = "macOS 版威注音辞書データ編集アプリについて"; + +"ImH-h2-3FG.title" = "公式HP"; diff --git a/UserPhraseEditor/Resources/zh-Hans.lproj/frmAboutWindow.strings b/UserPhraseEditor/Resources/zh-Hans.lproj/frmAboutWindow.strings index d39ffa46..6f918468 100644 --- a/UserPhraseEditor/Resources/zh-Hans.lproj/frmAboutWindow.strings +++ b/UserPhraseEditor/Resources/zh-Hans.lproj/frmAboutWindow.strings @@ -25,3 +25,5 @@ /* Class = "NSWindow"; title = "About vChewing Phrase Editor for macOS"; ObjectID = "ttlAboutWindow"; */ "ttlAboutWindow.title" = "关于 macOS 版「威注音语汇编辑器」"; + +"ImH-h2-3FG.title" = "网站"; diff --git a/UserPhraseEditor/Resources/zh-Hant.lproj/frmAboutWindow.strings b/UserPhraseEditor/Resources/zh-Hant.lproj/frmAboutWindow.strings index ee36f51a..1be83bd6 100644 --- a/UserPhraseEditor/Resources/zh-Hant.lproj/frmAboutWindow.strings +++ b/UserPhraseEditor/Resources/zh-Hant.lproj/frmAboutWindow.strings @@ -25,3 +25,5 @@ /* Class = "NSWindow"; title = "About vChewing Phrase Editor for macOS"; ObjectID = "ttlAboutWindow"; */ "ttlAboutWindow.title" = "關於 macOS 版「威注音語彙編輯器」"; + +"ImH-h2-3FG.title" = "網站"; diff --git a/UserPhraseEditor/ctlAboutWindow.swift b/UserPhraseEditor/ctlAboutWindow.swift index c4c9fee4..e8c00e5c 100644 --- a/UserPhraseEditor/ctlAboutWindow.swift +++ b/UserPhraseEditor/ctlAboutWindow.swift @@ -57,8 +57,8 @@ import Cocoa ) } - @IBAction func btnWiki(_: NSButton) { - if let url = URL(string: "https://gitee.com/vchewing/vChewing-macOS/wikis") { + @IBAction func btnWebsite(_ sender: NSButton) { + if let url = URL(string: "https://vchewing.github.io/") { NSWorkspace.shared.open(url) } }