mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
make videochat-invite-dialog translatable
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user