]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
Persistent Keepalive detail should read 'every n seconds'
authorRoopesh Chander <roop@roopc.net>
Mon, 28 Jan 2019 07:35:16 +0000 (13:05 +0530)
committerRoopesh Chander <roop@roopc.net>
Mon, 28 Jan 2019 10:37:28 +0000 (16:07 +0530)
Signed-off-by: Roopesh Chander <roop@roopc.net>
WireGuard/WireGuard/Base.lproj/Localizable.strings
WireGuard/WireGuard/UI/TunnelViewModel.swift

index 2133331f8ca0e995bc55dfd71c745ab879b2c1d6..60bd6fbc795ab697fb20c2f57c1e6e8031d45714 100644 (file)
@@ -93,6 +93,8 @@
 "tunnelEditPlaceholderTextStronglyRecommended" = "Strongly recommended";
 "tunnelEditPlaceholderTextOff" = "Off";
 
+"tunnelPeerPersistentKeepaliveValue (%d)" = "every %d seconds";
+
 // Error alerts while creating / editing a tunnel configuration
 
 /* Alert title for error in the interface data */
index 9124a0040a6838ae748ea1b31e1b239cb3b6ea30..805e03d378ec3f1168fb106ab5a7d116fafdb8a9 100644 (file)
@@ -252,7 +252,7 @@ class TunnelViewModel {
                 scratchpad[.endpoint] = endpoint.stringRepresentation
             }
             if let persistentKeepAlive = config.persistentKeepAlive {
-                scratchpad[.persistentKeepAlive] = String(persistentKeepAlive)
+                scratchpad[.persistentKeepAlive] = tr(format: "tunnelPeerPersistentKeepaliveValue (%d)", persistentKeepAlive)
             }
             // TODO(roopc): These next 3 fields should be prettier
             // - bytes() in https://git.zx2c4.com/WireGuard/tree/src/tools/show.c#n185