aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/Base.lproj/Localizable.strings
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-01-08 15:44:17 +0530
committerRoopesh Chander <roop@roopc.net>2019-01-14 14:52:34 +0530
commitc2a6241b5c1016c089f82e412c29236fdb1bbea6 (patch)
treed45289d0c7049da8ba1e23240c1d629ec2cc50e7 /WireGuard/WireGuard/Base.lproj/Localizable.strings
parentSyntax highlighter color updates (diff)
downloadwireguard-apple-c2a6241b5c1016c089f82e412c29236fdb1bbea6.tar.xz
wireguard-apple-c2a6241b5c1016c089f82e412c29236fdb1bbea6.zip
macOS: Refactor config file parsing
- To report more fine grained errors - To make the parse errors conform to WireGuardAppError Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard/Base.lproj/Localizable.strings')
-rw-r--r--WireGuard/WireGuard/Base.lproj/Localizable.strings22
1 files changed, 22 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/Base.lproj/Localizable.strings b/WireGuard/WireGuard/Base.lproj/Localizable.strings
index 8cae396..897d13d 100644
--- a/WireGuard/WireGuard/Base.lproj/Localizable.strings
+++ b/WireGuard/WireGuard/Base.lproj/Localizable.strings
@@ -256,3 +256,25 @@
"macEditDiscard" = "Discard";
"macEditSave" = "Save";
+
+"macAlertInvalidLine (%@)" = "Invalid line: '%@'.";
+
+"macAlertNoInterface" = "Configuration must have an 'Interface' section.";
+"macAlertMultipleInterfaces" = "Configuration must have only one 'Interface' section.";
+"macAlertPrivateKeyInvalid" = "Private key is invalid.";
+"macAlertListenPortInvalid (%@)" = "Listen port '%@' is invalid.";
+"macAlertAddressInvalid (%@)" = "Address '%@' is invalid.";
+"macAlertDNSInvalid (%@)" = "DNS '%@' is invalid.";
+"macAlertMTUInvalid (%@)" = "MTU '%@' is invalid.";
+
+"macAlertUnrecognizedInterfaceKey (%@)" = "Interface contains unrecognized key '%@'";
+"macAlertInfoUnrecognizedInterfaceKey" = "Valid keys are: 'PrivateKey', 'ListenPort', 'Address', 'DNS' and 'MTU'.";
+
+"macAlertPublicKeyInvalid" = "Public key is invalid";
+"macAlertPreSharedKeyInvalid" = "Preshared key is invalid";
+"macAlertAllowedIPInvalid (%@)" = "Allowed IP '%@' is invalid";
+"macAlertEndpointInvalid (%@)" = "Endpoint '%@' is invalid";
+"macAlertPersistentKeepliveInvalid (%@)" = "Persistent keepalive value '%@' is invalid";
+
+"macAlertUnrecognizedPeerKey (%@)" = "Peer contains unrecognized key '%@'";
+"macAlertInfoUnrecognizedPeerKey" = "Valid keys are: 'PublicKey', 'PresharedKey', 'AllowedIPs', 'Endpoint' and 'PersistentKeepalive'";