From 14222173038fa5b87979721044353eb39d7af385 Mon Sep 17 00:00:00 2001 From: James Rich <2199651+jamesarich@users.noreply.github.com> Date: Thu, 8 Jan 2026 10:27:05 -0600 Subject: [PATCH] feat(i18n): Add string for PKI public key send failure (#4165) Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com> --- .../main/kotlin/org/meshtastic/core/database/model/Message.kt | 2 ++ core/strings/src/commonMain/composeResources/values/strings.xml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/database/src/main/kotlin/org/meshtastic/core/database/model/Message.kt b/core/database/src/main/kotlin/org/meshtastic/core/database/model/Message.kt index 02b71055c..94e9a287a 100644 --- a/core/database/src/main/kotlin/org/meshtastic/core/database/model/Message.kt +++ b/core/database/src/main/kotlin/org/meshtastic/core/database/model/Message.kt @@ -40,6 +40,7 @@ import org.meshtastic.core.strings.routing_error_no_route import org.meshtastic.core.strings.routing_error_none import org.meshtastic.core.strings.routing_error_not_authorized import org.meshtastic.core.strings.routing_error_pki_failed +import org.meshtastic.core.strings.routing_error_pki_send_fail_public_key import org.meshtastic.core.strings.routing_error_pki_unknown_pubkey import org.meshtastic.core.strings.routing_error_rate_limit_exceeded import org.meshtastic.core.strings.routing_error_timeout @@ -66,6 +67,7 @@ fun getStringResFrom(routingError: Int): StringResource = when (routingError) { Routing.Error.ADMIN_BAD_SESSION_KEY_VALUE -> Res.string.routing_error_admin_bad_session_key Routing.Error.ADMIN_PUBLIC_KEY_UNAUTHORIZED_VALUE -> Res.string.routing_error_admin_public_key_unauthorized Routing.Error.RATE_LIMIT_EXCEEDED_VALUE -> Res.string.routing_error_rate_limit_exceeded + Routing.Error.PKI_SEND_FAIL_PUBLIC_KEY_VALUE -> Res.string.routing_error_pki_send_fail_public_key else -> Res.string.unrecognized } diff --git a/core/strings/src/commonMain/composeResources/values/strings.xml b/core/strings/src/commonMain/composeResources/values/strings.xml index a34551b04..82684dff5 100644 --- a/core/strings/src/commonMain/composeResources/values/strings.xml +++ b/core/strings/src/commonMain/composeResources/values/strings.xml @@ -72,7 +72,7 @@ Unknown Public Key Bad session key Public Key unauthorized - + PKI send failed, no public key Client App connected or standalone messaging device. Client Mute