AppInstaller // Compatibility with Xcode 14.2.

This commit is contained in:
ShikiSuen 2023-11-05 21:42:48 +08:00
parent d2f4fe6f2f
commit 728570a342
1 changed files with 12 additions and 12 deletions

View File

@ -101,31 +101,31 @@ public enum AlertType: String, Identifiable {
var title: LocalizedStringKey { var title: LocalizedStringKey {
switch self { switch self {
case .nothing: "" case .nothing: return ""
case .installationFailed: "Install Failed" case .installationFailed: return "Install Failed"
case .missingAfterRegistration: "Fatal Error" case .missingAfterRegistration: return "Fatal Error"
case .postInstallAttention: "Attention" case .postInstallAttention: return "Attention"
case .postInstallWarning: "Warning" case .postInstallWarning: return "Warning"
case .postInstallOK: "Installation Successful" case .postInstallOK: return "Installation Successful"
} }
} }
var message: String { var message: String {
switch self { switch self {
case .nothing: "" case .nothing: return ""
case .installationFailed: case .installationFailed:
"Cannot copy the file to the destination.".i18n return "Cannot copy the file to the destination.".i18n
case .missingAfterRegistration: case .missingAfterRegistration:
String( return String(
format: "Cannot find input source %@ after registration.".i18n, format: "Cannot find input source %@ after registration.".i18n,
kTISInputSourceID kTISInputSourceID
) )
case .postInstallAttention: case .postInstallAttention:
"vChewing is upgraded, but please log out or reboot for the new version to be fully functional.".i18n return "vChewing is upgraded, but please log out or reboot for the new version to be fully functional.".i18n
case .postInstallWarning: case .postInstallWarning:
"Input method may not be fully enabled. Please enable it through System Preferences > Keyboard > Input Sources.".i18n return "Input method may not be fully enabled. Please enable it through System Preferences > Keyboard > Input Sources.".i18n
case .postInstallOK: case .postInstallOK:
"vChewing is ready to use. \n\nPlease relogin if this is the first time you install it in this user account.".i18n return "vChewing is ready to use. \n\nPlease relogin if this is the first time you install it in this user account.".i18n
} }
} }
} }