i18n: For the app name, use CFBundleDisplayName rather than hardwriting Vector

This commit is contained in:
manuroe
2016-09-13 16:35:12 +02:00
parent ff62f7cbae
commit 85688c8c9c
5 changed files with 26 additions and 13 deletions
+4 -2
View File
@@ -577,8 +577,10 @@
__weak typeof(self) weakSelf = self;
[currentAlert dismiss:NO];
currentAlert = [[MXKAlert alloc] initWithTitle:NSLocalizedStringFromTable(@"google_analytics_use_prompt", @"Vector", nil)
NSString *appDisplayName = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"];
currentAlert = [[MXKAlert alloc] initWithTitle:[NSString stringWithFormat:NSLocalizedStringFromTable(@"google_analytics_use_prompt", @"Vector", nil), appDisplayName]
message:nil
style:MXKAlertStyleAlert];