diff --git a/Resources/Localizable.xcstrings b/Resources/Localizable.xcstrings index b0c1c042..9cb5d1fa 100644 --- a/Resources/Localizable.xcstrings +++ b/Resources/Localizable.xcstrings @@ -12428,36 +12428,19 @@ } } }, - "sidebar.port.label": { - "extractionState": "manual", - "localizations": { - "en": { - "stringUnit": { - "state": "translated", - "value": ":%lld" - } - }, - "ja": { - "stringUnit": { - "state": "translated", - "value": ":%lld" - } - } - } - }, "sidebar.port.openTooltip": { "extractionState": "manual", "localizations": { "en": { "stringUnit": { "state": "translated", - "value": "Open localhost:%lld" + "value": "Open localhost:%@" } }, "ja": { "stringUnit": { "state": "translated", - "value": "localhost:%lldを開く" + "value": "localhost:%@を開く" } } } @@ -16718,13 +16701,13 @@ "en": { "stringUnit": { "state": "translated", - "value": "Stop %@ on port %lld?" + "value": "Stop %@ on port %@?" } }, "ja": { "stringUnit": { "state": "translated", - "value": "ポート%2$lldの%1$@を停止しますか?" + "value": "ポート%2$@の%1$@を停止しますか?" } } } @@ -16735,13 +16718,13 @@ "en": { "stringUnit": { "state": "translated", - "value": "Programa asks process %lld to quit, and force-stops it if it is still running after 3 seconds." + "value": "Programa asks process %@ to quit, and force-stops it if it is still running after 3 seconds." } }, "ja": { "stringUnit": { "state": "translated", - "value": "Programaはプロセス%lldに終了を要求し、3秒後も動作している場合は強制終了します。" + "value": "Programaはプロセス%@に終了を要求し、3秒後も動作している場合は強制終了します。" } } } diff --git a/Sources/PortsHubView.swift b/Sources/PortsHubView.swift index d0c12d2d..29e70aba 100644 --- a/Sources/PortsHubView.swift +++ b/Sources/PortsHubView.swift @@ -43,11 +43,11 @@ enum PortsHubActions { alert.alertStyle = .warning alert.messageText = String( localized: "dialog.stopPort.title", - defaultValue: "Stop \(command) on port \(port)?" + defaultValue: "Stop \(command) on port \(String(port))?" ) alert.informativeText = String( localized: "dialog.stopPort.message", - defaultValue: "Programa asks process \(pid) to quit, and force-stops it if it is still running after 3 seconds." + defaultValue: "Programa asks process \(String(pid)) to quit, and force-stops it if it is still running after 3 seconds." ) alert.addButton(withTitle: String(localized: "dialog.stopPort.cancel", defaultValue: "Cancel")) alert.addButton(withTitle: String(localized: "dialog.stopPort.confirm", defaultValue: "Stop")) diff --git a/Sources/TabItemView.swift b/Sources/TabItemView.swift index b7e7b9cf..7a4cb622 100644 --- a/Sources/TabItemView.swift +++ b/Sources/TabItemView.swift @@ -699,11 +699,11 @@ struct TabItemView: View, Equatable { Button(action: { openPortLink(port) }) { - Text(String(localized: "sidebar.port.label", defaultValue: ":\(port)")) + Text(verbatim: ":\(port)") .underline() } .buttonStyle(.plain) - .safeHelp(String(localized: "sidebar.port.openTooltip", defaultValue: "Open localhost:\(port)")) + .safeHelp(String(localized: "sidebar.port.openTooltip", defaultValue: "Open localhost:\(String(port))")) } Spacer(minLength: 0) }