From d8b5348a28256f0a88d1fc2c69037b19ce99c23d Mon Sep 17 00:00:00 2001 From: Louis Aeilot <1329415023@qq.com> Date: Tue, 25 Aug 2020 13:15:22 +0800 Subject: [PATCH] Version 0.1.0 --- .../SafariExtensionViewController.strings | 3 + GitHubDarkMode.xcodeproj/project.pbxproj | 7 ++ .../GitHubDarkMode Extension.xcscheme | 100 ++++++++++++++++++ .../xcschemes/GitHubDarkMode.xcscheme | 78 ++++++++++++++ GitHubDarkMode/Base.lproj/Main.storyboard | 16 +-- GitHubDarkMode/en.lproj/Main.strings | 45 ++++++++ GitHubDarkMode/zh-Hans.lproj/Main.strings | 39 +++++++ 7 files changed, 280 insertions(+), 8 deletions(-) create mode 100644 GitHubDarkMode Extension/zh-Hans.lproj/SafariExtensionViewController.strings create mode 100644 GitHubDarkMode.xcodeproj/xcshareddata/xcschemes/GitHubDarkMode Extension.xcscheme create mode 100644 GitHubDarkMode.xcodeproj/xcshareddata/xcschemes/GitHubDarkMode.xcscheme create mode 100644 GitHubDarkMode/en.lproj/Main.strings create mode 100644 GitHubDarkMode/zh-Hans.lproj/Main.strings diff --git a/GitHubDarkMode Extension/zh-Hans.lproj/SafariExtensionViewController.strings b/GitHubDarkMode Extension/zh-Hans.lproj/SafariExtensionViewController.strings new file mode 100644 index 0000000..6717b12 --- /dev/null +++ b/GitHubDarkMode Extension/zh-Hans.lproj/SafariExtensionViewController.strings @@ -0,0 +1,3 @@ + +/* Class = "NSTextFieldCell"; title = "GitHubDarkMode Extension"; ObjectID = "2Ec-kd-q2K"; */ +"2Ec-kd-q2K.title" = "GitHubDarkMode Extension"; diff --git a/GitHubDarkMode.xcodeproj/project.pbxproj b/GitHubDarkMode.xcodeproj/project.pbxproj index c88c942..e9d90a5 100644 --- a/GitHubDarkMode.xcodeproj/project.pbxproj +++ b/GitHubDarkMode.xcodeproj/project.pbxproj @@ -62,6 +62,8 @@ BF4F7E1224F4C33E009EF13B /* script.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; path = script.js; sourceTree = ""; }; BF4F7E1424F4C33E009EF13B /* ToolbarItemIcon.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; path = ToolbarItemIcon.pdf; sourceTree = ""; }; BF4F7E1624F4C33E009EF13B /* GitHubDarkMode_Extension.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = GitHubDarkMode_Extension.entitlements; sourceTree = ""; }; + BFCCD0FE24F4CDA500826EBB /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Main.strings"; sourceTree = ""; }; + BFCCD0FF24F4CDA500826EBB /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/SafariExtensionViewController.strings"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -201,6 +203,7 @@ knownRegions = ( en, Base, + "zh-Hans", ); mainGroup = BF4F7DE624F4C33D009EF13B; productRefGroup = BF4F7DF024F4C33D009EF13B /* Products */; @@ -270,6 +273,7 @@ isa = PBXVariantGroup; children = ( BF4F7DF724F4C33D009EF13B /* Base */, + BFCCD0FE24F4CDA500826EBB /* zh-Hans */, ); name = Main.storyboard; sourceTree = ""; @@ -278,6 +282,7 @@ isa = PBXVariantGroup; children = ( BF4F7E0F24F4C33E009EF13B /* Base */, + BFCCD0FF24F4CDA500826EBB /* zh-Hans */, ); name = SafariExtensionViewController.xib; sourceTree = ""; @@ -289,6 +294,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; @@ -349,6 +355,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; diff --git a/GitHubDarkMode.xcodeproj/xcshareddata/xcschemes/GitHubDarkMode Extension.xcscheme b/GitHubDarkMode.xcodeproj/xcshareddata/xcschemes/GitHubDarkMode Extension.xcscheme new file mode 100644 index 0000000..cda9cbc --- /dev/null +++ b/GitHubDarkMode.xcodeproj/xcshareddata/xcschemes/GitHubDarkMode Extension.xcscheme @@ -0,0 +1,100 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/GitHubDarkMode.xcodeproj/xcshareddata/xcschemes/GitHubDarkMode.xcscheme b/GitHubDarkMode.xcodeproj/xcshareddata/xcschemes/GitHubDarkMode.xcscheme new file mode 100644 index 0000000..d04b7e5 --- /dev/null +++ b/GitHubDarkMode.xcodeproj/xcshareddata/xcschemes/GitHubDarkMode.xcscheme @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/GitHubDarkMode/Base.lproj/Main.storyboard b/GitHubDarkMode/Base.lproj/Main.storyboard index 85081f6..f9af971 100644 --- a/GitHubDarkMode/Base.lproj/Main.storyboard +++ b/GitHubDarkMode/Base.lproj/Main.storyboard @@ -11,18 +11,18 @@ - + - + - + - + @@ -40,7 +40,7 @@ - + @@ -52,7 +52,7 @@ - + @@ -110,8 +110,8 @@ - - + + diff --git a/GitHubDarkMode/en.lproj/Main.strings b/GitHubDarkMode/en.lproj/Main.strings new file mode 100644 index 0000000..cd11def --- /dev/null +++ b/GitHubDarkMode/en.lproj/Main.strings @@ -0,0 +1,45 @@ + +/* Class = "NSMenuItem"; title = "GitHub Dark Mode"; ObjectID = "1Xt-HY-uBw"; */ +"1Xt-HY-uBw.title" = "GitHub Dark Mode"; + +/* Class = "NSMenuItem"; title = "Quit GitHub Dark Mode"; ObjectID = "4sb-4s-VLi"; */ +"4sb-4s-VLi.title" = "Quit GitHub Dark Mode"; + +/* Class = "NSMenuItem"; title = "About GitHub Dark Mode"; ObjectID = "5kV-Vb-QxS"; */ +"5kV-Vb-QxS.title" = "About GitHub Dark Mode"; + +/* Class = "NSMenu"; title = "Main Menu"; ObjectID = "AYu-sK-qS6"; */ +"AYu-sK-qS6.title" = "Main Menu"; + +/* Class = "NSMenu"; title = "Help"; ObjectID = "F2S-fz-NVQ"; */ +"F2S-fz-NVQ.title" = "Help"; + +/* Class = "NSMenuItem"; title = "GitHub Dark Mode Help"; ObjectID = "FKE-Sm-Kum"; */ +"FKE-Sm-Kum.title" = "GitHub Dark Mode Help"; + +/* Class = "NSWindow"; title = "GitHub Dark Mode"; ObjectID = "IQv-IB-iLA"; */ +"IQv-IB-iLA.title" = "GitHub Dark Mode"; + +/* Class = "NSMenuItem"; title = "Show All"; ObjectID = "Kd2-mp-pUS"; */ +"Kd2-mp-pUS.title" = "Show All"; + +/* Class = "NSMenuItem"; title = "Hide GitHub Dark Mode"; ObjectID = "Olw-nP-bQN"; */ +"Olw-nP-bQN.title" = "Hide GitHub Dark Mode"; + +/* Class = "NSTextFieldCell"; title = "GitHub Dark Mode"; ObjectID = "S7v-7o-3vW"; */ +"S7v-7o-3vW.title" = "GitHub Dark Mode"; + +/* Class = "NSButtonCell"; alternateTitle = "Install"; ObjectID = "Srx-0j-A4D"; */ +"Srx-0j-A4D.alternateTitle" = "Install"; + +/* Class = "NSButtonCell"; title = "Open in Safari Extensions Preferences…"; ObjectID = "Srx-0j-A4D"; */ +"Srx-0j-A4D.title" = "Open in Safari Extensions Preferences…"; + +/* Class = "NSMenuItem"; title = "Hide Others"; ObjectID = "Vdr-fp-XzO"; */ +"Vdr-fp-XzO.title" = "Hide Others"; + +/* Class = "NSMenu"; title = "GitHub Dark Mode"; ObjectID = "uQy-DD-JDr"; */ +"uQy-DD-JDr.title" = "GitHub Dark Mode"; + +/* Class = "NSMenuItem"; title = "Help"; ObjectID = "wpr-3q-Mcd"; */ +"wpr-3q-Mcd.title" = "Help"; diff --git a/GitHubDarkMode/zh-Hans.lproj/Main.strings b/GitHubDarkMode/zh-Hans.lproj/Main.strings new file mode 100644 index 0000000..c26fb81 --- /dev/null +++ b/GitHubDarkMode/zh-Hans.lproj/Main.strings @@ -0,0 +1,39 @@ + +/* Class = "NSMenuItem"; title = "GitHubDarkMode"; ObjectID = "1Xt-HY-uBw"; */ +"1Xt-HY-uBw.title" = "GitHub 黑暗模式"; + +/* Class = "NSMenuItem"; title = "Quit GitHubDarkMode"; ObjectID = "4sb-4s-VLi"; */ +"4sb-4s-VLi.title" = "退出 GitHub 黑暗模式"; + +/* Class = "NSMenuItem"; title = "About GitHubDarkMode"; ObjectID = "5kV-Vb-QxS"; */ +"5kV-Vb-QxS.title" = "About GitHub 黑暗模式"; + +/* Class = "NSMenu"; title = "Help"; ObjectID = "F2S-fz-NVQ"; */ +"F2S-fz-NVQ.title" = "帮助"; + +/* Class = "NSMenuItem"; title = "GitHubDarkMode Help"; ObjectID = "FKE-Sm-Kum"; */ +"FKE-Sm-Kum.title" = "GitHub 黑暗模式 Help"; + +/* Class = "NSWindow"; title = "GitHub Dark Mode"; ObjectID = "IQv-IB-iLA"; */ +"IQv-IB-iLA.title" = "GitHub 黑暗模式"; + +/* Class = "NSMenuItem"; title = "Show All"; ObjectID = "Kd2-mp-pUS"; */ +"Kd2-mp-pUS.title" = "全部显示"; + +/* Class = "NSMenuItem"; title = "Hide GitHubDarkMode"; ObjectID = "Olw-nP-bQN"; */ +"Olw-nP-bQN.title" = "Hide GitHub 黑暗模式"; + +/* Class = "NSButtonCell"; alternateTitle = "Install"; ObjectID = "Srx-0j-A4D"; */ +"Srx-0j-A4D.alternateTitle" = "安装"; + +/* Class = "NSButtonCell"; title = "Open in Safari Extensions Preferences…"; ObjectID = "Srx-0j-A4D"; */ +"Srx-0j-A4D.title" = "在 Safari 拓展设置中打开"; + +/* Class = "NSMenuItem"; title = "Hide Others"; ObjectID = "Vdr-fp-XzO"; */ +"Vdr-fp-XzO.title" = "隐藏其他"; + +/* Class = "NSMenu"; title = "GitHubDarkMode"; ObjectID = "uQy-DD-JDr"; */ +"uQy-DD-JDr.title" = "GitHub 黑暗模式"; + +/* Class = "NSMenuItem"; title = "Help"; ObjectID = "wpr-3q-Mcd"; */ +"wpr-3q-Mcd.title" = "帮助";