Skip to content
This repository was archived by the owner on Aug 11, 2024. It is now read-only.

Commit 745f507

Browse files
Finalize changelogs.
1 parent 6ba2416 commit 745f507

File tree

8 files changed

+32
-18
lines changed

8 files changed

+32
-18
lines changed

Retroactive.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@
590590
CODE_SIGN_ENTITLEMENTS = Retroactive/Support/Retroactive.entitlements;
591591
CODE_SIGN_STYLE = Automatic;
592592
COMBINE_HIDPI_IMAGES = YES;
593-
CURRENT_PROJECT_VERSION = 9;
593+
CURRENT_PROJECT_VERSION = 3;
594594
INFOPLIST_FILE = Retroactive/Support/Info.plist;
595595
LD_RUNPATH_SEARCH_PATHS = (
596596
"$(inherited)",
@@ -611,7 +611,7 @@
611611
CODE_SIGN_ENTITLEMENTS = Retroactive/Support/Retroactive.entitlements;
612612
CODE_SIGN_STYLE = Automatic;
613613
COMBINE_HIDPI_IMAGES = YES;
614-
CURRENT_PROJECT_VERSION = 9;
614+
CURRENT_PROJECT_VERSION = 3;
615615
INFOPLIST_FILE = Retroactive/Support/Info.plist;
616616
LD_RUNPATH_SEARCH_PATHS = (
617617
"$(inherited)",

Retroactive/AppManager.swift

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ class AppManager: NSObject {
7474
self.configurationDictionary = loaded
7575
}
7676

77-
#if !DEBUG
7877
self.checkForConfigurationUpdates()
79-
#endif
8078
}
8179

8280
func checkForConfigurationUpdates() {
@@ -155,10 +153,24 @@ class AppManager: NSObject {
155153
}
156154

157155
var newVersionVisibleTitle: String? {
156+
if let language = NSLocale.preferredLanguages.first?.lowercased() {
157+
if language.contains("zh-hant") || language.contains("zh-hk") || language.contains("zh-tw") {
158+
return configurationDictionary?["NewVersionVisibleTitlezhHant"] as? String
159+
} else if language.contains("zh-") {
160+
return configurationDictionary?["NewVersionVisibleTitlezhHans"] as? String
161+
}
162+
}
158163
return configurationDictionary?["NewVersionVisibleTitle"] as? String
159164
}
160165

161166
var newVersionChangelog: String? {
167+
if let language = NSLocale.preferredLanguages.first?.lowercased() {
168+
if language.contains("zh-hant") || language.contains("zh-hk") || language.contains("zh-tw") {
169+
return configurationDictionary?["NewVersionChangelogzhHant"] as? String
170+
} else if language.contains("zh-") {
171+
return configurationDictionary?["NewVersionChangelogzhHans"] as? String
172+
}
173+
}
162174
return configurationDictionary?["NewVersionChangelog"] as? String
163175
}
164176

Retroactive/Support/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5-
<key>CFBundleDisplayName</key>
6-
<string>Retroactive (right click to open)</string>
75
<key>CFBundleDevelopmentRegion</key>
86
<string>$(DEVELOPMENT_LANGUAGE)</string>
7+
<key>CFBundleDisplayName</key>
8+
<string>Retroactive (right click to open)</string>
99
<key>CFBundleExecutable</key>
1010
<string>$(EXECUTABLE_NAME)</string>
1111
<key>CFBundleIconFile</key>

Retroactive/Support/SupportPath.plist

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@
33
<plist version="1.0">
44
<dict>
55
<key>NewVersionVisibleTitle</key>
6-
<string>Retroactive 1.3 is available for download.</string>
6+
<string>Retroactive 1.3 contains the following features and is available for download.</string>
77
<key>NewVersionChangelog</key>
8-
<string>Retroactive 1.3 contains the following features:
9-
• Adds support for modifying Final Cut Pro 7, Logic Pro 9, and Keynote ’09 to be compatible with macOS Mojave and macOS High Sierra
10-
11-
Retroactive 1.3 also contains changes from Retroactive 1.2:
12-
• Restores the ability to add adjustments and use Quick Brushes in Aperture
13-
• Restores the ability to print photos in Aperture and iPhoto
14-
• Resolves an issue where Aperture and iPhoto may fail to launch (Error 13)</string>
8+
<string>• Adds support for modifying Final Cut Pro 7, Logic Pro 9, and Keynote ’09 to be compatible with macOS Mojave and macOS High Sierra</string>
9+
<key>NewVersionVisibleTitlezhHans</key>
10+
<string>新版本解印 1.3 包含如下功能,现已提供下载: </string>
11+
<key>NewVersionChangelogzhHans</key>
12+
<string>• 支持修改 Final Cut Pro 7、Logic Pro 9 和 Keynote ’09 以兼容 macOS Mojave 和 macOS High Sierra</string>
13+
<key>NewVersionVisibleTitlezhHant</key>
14+
<string>新版本解印 1.3 包含如下功能,現已提供下載:</string>
15+
<key>NewVersionChangelogzhHant</key>
16+
<string>• 支持修改 Final Cut Pro 7、Logic Pro 9 和 Keynote ’09 以兼容 macOS Mojave 和 macOS High Sierra</string>
1517
<key>LatestZIP</key>
1618
<string>https://github.com/cormiertyshawn895/Retroactive/releases/download/1.3/Retroactive.1.3.zip</string>
1719
<key>LatestBuildNumber</key>

Retroactive/Support/zh-Hans.lproj/Localizable.strings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"Unlock {name} again" = "重新解印 {name}";
8282
"Untitled" = "新项目";
8383
"Update (Recommended)" = "安装更新 (推荐)";
84-
"Update available." = "可下载新版本";
84+
"Update available." = "可下载新版本解印";
8585
"Update to a newer version of Retroactive" = "下载并安装安装新版本的解印";
8686
"View Release Page..." = "查看下载发布页...";
8787
"Waiting..." = "等待中...";

Retroactive/Support/zh-Hans.lproj/Main.strings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
"uRl-iY-unG.title" = "剪切";
187187

188188
/* Class = "NSButtonCell"; title = "Update Available"; ObjectID = "v50-Lo-50e"; */
189-
"v50-Lo-50e.title" = "可下载新版本";
189+
"v50-Lo-50e.title" = "可下载新版本解印";
190190

191191
/* Class = "NSMenuItem"; title = "Help"; ObjectID = "wpr-3q-Mcd"; */
192192
"wpr-3q-Mcd.title" = "帮助";

Retroactive/Support/zh-Hant.lproj/Localizable.strings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"Unlock {name} again" = "重新解印 {name}";
8282
"Untitled" = "新項目";
8383
"Update (Recommended)" = "安裝更新 (推薦)";
84-
"Update available." = "可下載新版本";
84+
"Update available." = "可下載新版本解印";
8585
"Update to a newer version of Retroactive" = "下載並安裝安裝新版本的解印";
8686
"View Release Page..." = "查看下載發布頁...";
8787
"Waiting..." = "等待中...";

Retroactive/Support/zh-Hant.lproj/Main.strings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
"uRl-iY-unG.title" = "剪切";
187187

188188
/* Class = "NSButtonCell"; title = "Update Available"; ObjectID = "v50-Lo-50e"; */
189-
"v50-Lo-50e.title" = "可下載新版本";
189+
"v50-Lo-50e.title" = "可下載新版本解印";
190190

191191
/* Class = "NSMenuItem"; title = "Help"; ObjectID = "wpr-3q-Mcd"; */
192192
"wpr-3q-Mcd.title" = "幫助";

0 commit comments

Comments
 (0)