From 36fb5bc513af62903cc55b2ce43e88616b885f76 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Fri, 31 Jul 2020 19:19:35 +0200 Subject: [PATCH] make videochat-invite-dialog translatable --- res/values/strings.xml | 2 ++ src/org/thoughtcrime/securesms/videochat/VideochatUtil.java | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 52e8a9e4b..42ba3908f 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -215,6 +215,8 @@ File saved to \"%1$s\". Video chat + Invite %1$s to a video chat? + This requires a compatible app or a compatible browser on both ends. %1$s invited to a video chat. You invited to a video chat. This video chat will open in your browser. diff --git a/src/org/thoughtcrime/securesms/videochat/VideochatUtil.java b/src/org/thoughtcrime/securesms/videochat/VideochatUtil.java index a3b057cc3..d6dc20525 100644 --- a/src/org/thoughtcrime/securesms/videochat/VideochatUtil.java +++ b/src/org/thoughtcrime/securesms/videochat/VideochatUtil.java @@ -19,8 +19,8 @@ public class VideochatUtil { DcChat dcChat = dcContext.getChat(chatId); new AlertDialog.Builder(activity) - .setTitle(String.format("Invite %1$s to a video chat?", dcChat.getName())) - .setMessage("This requires a compatible app or a compatible browser on both ends.") + .setTitle(activity.getString(R.string.videochat_invite_user_to_videochat, dcChat.getName())) + .setMessage(R.string.videochat_invite_user_hint) .setNegativeButton(R.string.cancel, null) .setPositiveButton(R.string.ok, (dialog, which) -> { int msgId = dcContext.sendVideochatInvitation(dcChat.getId());