make videochat-invite-dialog translatable

This commit is contained in:
B. Petersen
2020-07-31 19:19:35 +02:00
parent 2495bb6595
commit 36fb5bc513
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -215,6 +215,8 @@
<string name="file_saved_to">File saved to \"%1$s\".</string>
<string name="videochat">Video chat</string>
<string name="videochat_invite_user_to_videochat">Invite %1$s to a video chat?</string>
<string name="videochat_invite_user_hint">This requires a compatible app or a compatible browser on both ends.</string>
<string name="videochat_contact_invited_hint">%1$s invited to a video chat.</string>
<string name="videochat_you_invited_hint">You invited to a video chat.</string>
<string name="videochat_will_open_in_your_browser">This video chat will open in your browser.</string>
@@ -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());