Update leave strings

This commit is contained in:
ismailgulek
2020-09-24 13:00:50 +03:00
parent 2feba65be4
commit d69b2184cb
8 changed files with 63 additions and 9 deletions
@@ -1393,8 +1393,21 @@
{
// Leave ?
MXWeakify(self);
currentAlert = [UIAlertController alertControllerWithTitle:NSLocalizedStringFromTable(@"room_participants_leave_prompt_title", @"Vector", nil)
message:NSLocalizedStringFromTable(@"room_participants_leave_prompt_msg", @"Vector", nil)
NSString *title, *message;
if (self.mxRoom.isDirect)
{
title = NSLocalizedStringFromTable(@"dm_room_participants_leave_prompt_title", @"Vector", nil);
message = NSLocalizedStringFromTable(@"dm_room_participants_leave_prompt_msg", @"Vector", nil);
}
else
{
title = NSLocalizedStringFromTable(@"room_participants_leave_prompt_title", @"Vector", nil);
message = NSLocalizedStringFromTable(@"room_participants_leave_prompt_msg", @"Vector", nil);
}
currentAlert = [UIAlertController alertControllerWithTitle:title
message:message
preferredStyle:UIAlertControllerStyleAlert];
[currentAlert addAction:[UIAlertAction actionWithTitle:[NSBundle mxk_localizedStringForKey:@"cancel"]