mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-02 14:16:59 +02:00
i18n: For the app name, use CFBundleDisplayName rather than hardwriting Vector
This commit is contained in:
@@ -856,8 +856,10 @@ typedef void (^blockSettingsViewController_onReadyToDestroy)();
|
||||
{
|
||||
globalInfoCell = [[MXKTableViewCell alloc] init];
|
||||
}
|
||||
|
||||
globalInfoCell.textLabel.text = NSLocalizedStringFromTable(@"settings_global_settings_info", @"Vector", nil);
|
||||
|
||||
NSString *appDisplayName = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"];
|
||||
|
||||
globalInfoCell.textLabel.text = [NSString stringWithFormat:NSLocalizedStringFromTable(@"settings_global_settings_info", @"Vector", nil), appDisplayName];
|
||||
globalInfoCell.textLabel.numberOfLines = 0;
|
||||
cell = globalInfoCell;
|
||||
}
|
||||
@@ -1273,8 +1275,10 @@ typedef void (^blockSettingsViewController_onReadyToDestroy)();
|
||||
[currentAlert dismiss:NO];
|
||||
|
||||
__weak typeof(self) weakSelf = self;
|
||||
|
||||
currentAlert = [[MXKAlert alloc] initWithTitle:NSLocalizedStringFromTable(@"settings_on_denied_notification", @"Vector", nil)
|
||||
|
||||
NSString *appDisplayName = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"];
|
||||
|
||||
currentAlert = [[MXKAlert alloc] initWithTitle:[NSString stringWithFormat:NSLocalizedStringFromTable(@"settings_on_denied_notification", @"Vector", nil), appDisplayName]
|
||||
message:nil
|
||||
style:MXKAlertStyleAlert];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user