]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
Preshared key field in the detail view should just say 'enabled'
authorRoopesh Chander <roop@roopc.net>
Tue, 12 Feb 2019 13:55:42 +0000 (19:25 +0530)
committerRoopesh Chander <roop@roopc.net>
Tue, 12 Feb 2019 14:00:59 +0000 (19:30 +0530)
Signed-off-by: Roopesh Chander <roop@roopc.net>
WireGuard/WireGuard/Base.lproj/Localizable.strings
WireGuard/WireGuard/UI/iOS/ViewController/TunnelDetailTableViewController.swift
WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift

index 73cf50d609604b4fa996c226b0246656e4027ec9..b42d330e57837a831a0a7188ab94def3ed1c1c81 100644 (file)
 "tunnelHandshakeTimestampHours hh:mm:ss (%@)" = "%@ hours";
 "tunnelHandshakeTimestampMinutes mm:ss (%@)" = "%@ minutes";
 
+"tunnelPeerPresharedKeyEnabled" = "enabled";
+
 // Error alerts while creating / editing a tunnel configuration
 
 /* Alert title for error in the interface data */
index d45f846984e9191ff4f2c1d2a1c09298b4df31b3..1f1a24fd743b47c747b55105ca17c3fc68fc3fc9 100644 (file)
@@ -370,6 +370,8 @@ extension TunnelDetailTableViewController {
         cell.key = field.localizedUIString
         if field == .persistentKeepAlive {
             cell.value = tr(format: "tunnelPeerPersistentKeepaliveValue (%@)", peerData[field])
+        } else if field == .preSharedKey {
+            cell.value = tr("tunnelPeerPresharedKeyEnabled")
         } else {
             cell.value = peerData[field]
         }
index e67dc8d705aba98113e9f5e9d1f22f7b88ab4373..411fe57c36e5f8cf4f2f33907b9e16195977f2ae 100644 (file)
@@ -405,6 +405,8 @@ extension TunnelDetailTableViewController: NSTableViewDelegate {
             cell.key = tr(format: "macFieldKey (%@)", localizedKeyString)
             if field == .persistentKeepAlive {
                 cell.value = tr(format: "tunnelPeerPersistentKeepaliveValue (%@)", peerData[field])
+            } else if field == .preSharedKey {
+                cell.value = tr("tunnelPeerPresharedKeyEnabled")
             } else {
                 cell.value = peerData[field]
             }