macOS: Manage tunnels: Localize pulldown menu items
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
parent
8d9c5e2950
commit
38bb0faf86
|
@ -221,7 +221,7 @@
|
|||
"alertSystemErrorMessageTunnelConfigurationReadWriteFailed" = "Reading or writing the configuration failed.";
|
||||
"alertSystemErrorMessageTunnelConfigurationUnknown" = "Unknown system error.";
|
||||
|
||||
// Mac status bar menu
|
||||
// Mac status bar menu / pulldown menu
|
||||
|
||||
"macMenuNetworks (%@)" = "Networks: %@";
|
||||
"macMenuNetworksInactive" = "Networks: -";
|
||||
|
@ -229,6 +229,9 @@
|
|||
|
||||
"macMenuManageTunnels" = "Manage tunnels";
|
||||
"macMenuImportTunnels" = "Import tunnel(s) from file...";
|
||||
"macMenuAddEmptyTunnel" = "Add empty tunnel...";
|
||||
"macMenuExportLog" = "Export log to file...";
|
||||
"macMenuExportTunnels" = "Export tunnels to zip...";
|
||||
|
||||
// Mac detail view fields
|
||||
|
||||
|
|
|
@ -37,15 +37,15 @@ class TunnelsListTableViewController: NSViewController {
|
|||
|
||||
let addMenu: NSMenu = {
|
||||
let addMenu = NSMenu(title: "TunnelsListAdd")
|
||||
addMenu.addItem(withTitle: "Add empty tunnel", action: #selector(addEmptyTunnelClicked), keyEquivalent: "")
|
||||
addMenu.addItem(withTitle: "Import tunnel(s) from file...", action: #selector(importTunnelClicked), keyEquivalent: "")
|
||||
addMenu.addItem(withTitle: tr("macMenuAddEmptyTunnel"), action: #selector(addEmptyTunnelClicked), keyEquivalent: "")
|
||||
addMenu.addItem(withTitle: tr("macMenuImportTunnels"), action: #selector(importTunnelClicked), keyEquivalent: "")
|
||||
return addMenu
|
||||
}()
|
||||
|
||||
let actionMenu: NSMenu = {
|
||||
let actionMenu = NSMenu(title: "TunnelsListAction")
|
||||
actionMenu.addItem(withTitle: "Export log to file", action: #selector(exportLogClicked), keyEquivalent: "")
|
||||
actionMenu.addItem(withTitle: "Export tunnels to zip", action: #selector(exportTunnelsClicked), keyEquivalent: "")
|
||||
actionMenu.addItem(withTitle: tr("macMenuExportLog"), action: #selector(exportLogClicked), keyEquivalent: "")
|
||||
actionMenu.addItem(withTitle: tr("macMenuExportTunnels"), action: #selector(exportTunnelsClicked), keyEquivalent: "")
|
||||
return actionMenu
|
||||
}()
|
||||
|
||||
|
|
Loading…
Reference in New Issue