From 1504e514999ee7d347e2a9220a0a51999398f8a4 Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Mon, 6 Jan 2025 15:46:05 +0100 Subject: [PATCH] add strings for message status icons Signed-off-by: Marcel Hibbe --- .../talk/adapters/messages/OutcomingTextMessageViewHolder.kt | 4 ++-- app/src/main/res/values/strings.xml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/adapters/messages/OutcomingTextMessageViewHolder.kt b/app/src/main/java/com/nextcloud/talk/adapters/messages/OutcomingTextMessageViewHolder.kt index 8da9c07b2..652d3fc26 100644 --- a/app/src/main/java/com/nextcloud/talk/adapters/messages/OutcomingTextMessageViewHolder.kt +++ b/app/src/main/java/com/nextcloud/talk/adapters/messages/OutcomingTextMessageViewHolder.kt @@ -126,7 +126,7 @@ class OutcomingTextMessageViewHolder(itemView: View) : if (message.sendingFailed) { updateStatus( R.drawable.baseline_report_problem_24, - "failed" + context.resources?.getString(R.string.nc_message_failed) ) binding.bubble.setOnClickListener { commonMessageInterface.onOpenMessageActionsDialog(message) @@ -143,7 +143,7 @@ class OutcomingTextMessageViewHolder(itemView: View) : if (message.isTemporary && !networkMonitor.isOnline.first()) { updateStatus( R.drawable.ic_signal_wifi_off_white_24dp, - "offline" + context.resources?.getString(R.string.nc_message_offline) ) } } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 89ea1fa50..0d20e2544 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -433,6 +433,8 @@ How to translate with transifex: You: %1$s Message read Message sent + Offline + Failed Failed to send message: Remote audio off Add attachment