Skip to content

Commit

Permalink
AppInstaller // Compatibility with Xcode 14.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
ShikiSuen committed Nov 5, 2023
1 parent d2f4fe6 commit 728570a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Installer/InstallerShared.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,31 +101,31 @@ public enum AlertType: String, Identifiable {

var title: LocalizedStringKey {
switch self {
case .nothing: ""
case .installationFailed: "Install Failed"
case .missingAfterRegistration: "Fatal Error"
case .postInstallAttention: "Attention"
case .postInstallWarning: "Warning"
case .postInstallOK: "Installation Successful"
case .nothing: return ""
case .installationFailed: return "Install Failed"
case .missingAfterRegistration: return "Fatal Error"
case .postInstallAttention: return "Attention"
case .postInstallWarning: return "Warning"
case .postInstallOK: return "Installation Successful"
}
}

var message: String {
switch self {
case .nothing: ""
case .nothing: return ""
case .installationFailed:
"Cannot copy the file to the destination.".i18n
return "Cannot copy the file to the destination.".i18n
case .missingAfterRegistration:
String(
return String(
format: "Cannot find input source %@ after registration.".i18n,
kTISInputSourceID
)
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:
"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:
"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
}
}
}
Expand Down

0 comments on commit 728570a

Please sign in to comment.