Fill missing descriptions for some errors (#359)

Fixes #358
This commit is contained in:
Davide De Rosa 2023-09-10 17:15:40 +02:00 committed by GitHub
parent 9d72dc43a2
commit d02da0bad8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 4 deletions

View File

@ -259,7 +259,7 @@ extension TunnelKitOpenVPNError: LocalizedError {
case .serverCompression, .lzo: case .serverCompression, .lzo:
return V.compression return V.compression
case .networkChanged: case .networkChanged, .linkError:
return V.network return V.network
case .routing: case .routing:
@ -272,7 +272,7 @@ extension TunnelKitOpenVPNError: LocalizedError {
return V.shutdown return V.shutdown
default: default:
return nil return L10n.Global.unknown
} }
} }
} }
@ -306,7 +306,7 @@ extension OpenVPN.ConfigurationError: LocalizedError {
case .continuationPushReply: case .continuationPushReply:
assertionFailure("This is a server-side configuration parsing error") assertionFailure("This is a server-side configuration parsing error")
return nil return L10n.Global.Strings.unknown
} }
} }
} }

View File

@ -62,7 +62,7 @@ extension TunnelKitWireGuardError: LocalizedError {
return V.dns return V.dns
default: default:
return nil return L10n.Global.unknown
} }
} }
} }

View File

@ -54,6 +54,7 @@
"global.strings.policy" = "Policy"; "global.strings.policy" = "Policy";
"global.strings.networks" = "Networks"; "global.strings.networks" = "Networks";
"global.strings.edit" = "Edit"; "global.strings.edit" = "Edit";
"global.strings.unknown" = "Unknown";
"global.messages.unlock_app" = "Passepartout is locked"; "global.messages.unlock_app" = "Passepartout is locked";
"global.messages.email_not_configured" = "No e-mail account is configured."; "global.messages.email_not_configured" = "No e-mail account is configured.";
"global.messages.share" = "Passepartout is a user-friendly, open source OpenVPN / WireGuard client for iOS and macOS"; "global.messages.share" = "Passepartout is a user-friendly, open source OpenVPN / WireGuard client for iOS and macOS";

View File

@ -550,6 +550,8 @@ internal enum L10n {
internal static let translations = L10n.tr("Localizable", "global.strings.translations", fallback: "Translations") internal static let translations = L10n.tr("Localizable", "global.strings.translations", fallback: "Translations")
/// Uninstall /// Uninstall
internal static let uninstall = L10n.tr("Localizable", "global.strings.uninstall", fallback: "Uninstall") internal static let uninstall = L10n.tr("Localizable", "global.strings.uninstall", fallback: "Uninstall")
/// Unknown
internal static let unknown = L10n.tr("Localizable", "global.strings.unknown", fallback: "Unknown")
} }
} }
internal enum Menu { internal enum Menu {