Explorar o código

server: fix bad formatting for NAT reservation error

osy hai 1 ano
pai
achega
f02b18a362

+ 1 - 1
Platform/ja.lproj/Localizable.strings

@@ -982,7 +982,7 @@
 "Remote Client Connected" = "リモートクライアント接続済み";
 "Established connection from %@." = "%@からの接続を確立しました。";
 "UTM Remote Server Error" = "UTMリモートサーバエラー";
-"Cannot reserve port '%@' for external access from NAT. Make sure no other device on the network has reserved it." = "NATからの外部アクセス用のポート“%@”を予約できません。ネットワーク上のほかのデバイスが予約していないことを確認してください。";
+"Cannot reserve port %d for external access from NAT. Make sure no other device on the network has reserved it." = "NATからの外部アクセス用のポート“%d”を予約できません。ネットワーク上のほかのデバイスが予約していないことを確認してください。";
 "Not authenticated." = "認証されていません。";
 "The client interface version does not match the server." = "クライアントインターフェイスのバージョンがサーバと一致しません。";
 "Cannot find VM with ID: %@" = "指定されたIDの仮想マシンが見つかりません: %@";

+ 1 - 1
Platform/pl.lproj/Localizable.strings

@@ -997,7 +997,7 @@
 "Remote Client Connected" = "Połączono ze zdalnym klientem";
 "Established connection from %@." = "Próba nawiązenia połączenia od '%@'.";
 "UTM Remote Server Error" = "UTMリモートサーバエラー";
-"Cannot reserve port '%@' for external access from NAT. Make sure no other device on the network has reserved it." = "NATからの外部アクセス用のポート“%@”を予約できません。ネットワーク上のほかのデバイスが予約していないことを確認してください。";
+"Cannot reserve port %d for external access from NAT. Make sure no other device on the network has reserved it." = "NATからの外部アクセス用のポート“%d”を予約できません。ネットワーク上のほかのデバイスが予約していないことを確認してください。";
 "Not authenticated." = "Nieuwiezytelniony";
 "The client interface version does not match the server." = "Wersja interfejsu klienta nie zgadza się z wersją interfejsu serwera.";
 "Cannot find VM with ID: %@" = "Nie udało się znaleźć maszyny wirtualnej o danym identyfikatorze: %@";

+ 1 - 1
Platform/zh-HK.lproj/Localizable.strings

@@ -197,7 +197,7 @@
 "Cannot import this VM. Either the configuration is invalid, created in a newer version of UTM, or on a platform that is incompatible with this version of UTM." = "無法輸入此虛擬電腦。可能設定無效,或是在較新版本的 UTM 上製作,或是在與此版本的 UTM 不相容的平台上製作。";
 
 /* UTMRemoteServer */
-"Cannot reserve port '%@' for external access from NAT. Make sure no other device on the network has reserved it." = "無法為 NAT 外部取用保留埠「%@」。請確保網絡上未有其他裝置保留它。";
+"Cannot reserve port %d for external access from NAT. Make sure no other device on the network has reserved it." = "無法為 NAT 外部取用保留埠「%d」。請確保網絡上未有其他裝置保留它。";
 
 /* No comment provided by engineer. */
 "Caps Lock (⇪) is treated as a key" = "將 Caps Lock (⇪) 視為按鍵";

+ 1 - 1
Platform/zh-Hans.lproj/Localizable.strings

@@ -197,7 +197,7 @@
 "Cannot import this VM. Either the configuration is invalid, created in a newer version of UTM, or on a platform that is incompatible with this version of UTM." = "无法导入此虚拟机。此虚拟机可能配置无效,或者可能是在较新版本的 UTM 中创建的,也可能是在与此版本的 UTM 不兼容的平台上创建的。";
 
 /* UTMRemoteServer */
-"Cannot reserve port '%@' for external access from NAT. Make sure no other device on the network has reserved it." = "无法保留端口“%@”用作从 NAT 的外部访问。请确保网络上没有其他设备保留该端口。";
+"Cannot reserve port %d for external access from NAT. Make sure no other device on the network has reserved it." = "无法保留端口“%d”用作从 NAT 的外部访问。请确保网络上没有其他设备保留该端口。";
 
 /* No comment provided by engineer. */
 "Caps Lock (⇪) is treated as a key" = "将 Caps Lock (⇪) 视为按键";

+ 1 - 1
Remote/UTMRemoteServer.swift

@@ -958,7 +958,7 @@ extension UTMRemoteServer {
             case .silentError(let error):
                 return error.localizedDescription
             case .natReservationMismatch(let port):
-                return String.localizedStringWithFormat(NSLocalizedString("Cannot reserve port '%@' for external access from NAT. Make sure no other device on the network has reserved it.", comment: "UTMRemoteServer"), port)
+                return String.localizedStringWithFormat(NSLocalizedString("Cannot reserve port %d for external access from NAT. Make sure no other device on the network has reserved it.", comment: "UTMRemoteServer"), port)
             case .notAuthenticated:
                 return NSLocalizedString("Not authenticated.", comment: "UTMRemoteServer")
             case .versionMismatch: