Browse Source

display code name in the about panel

Felix Paul Kühne 12 years ago
parent
commit
0c4a6077ca
2 changed files with 3 additions and 1 deletions
  1. 1 1
      AspenProject/VLCAboutViewController.m
  2. 2 0
      AspenProject/VLCConstants.h

+ 1 - 1
AspenProject/VLCAboutViewController.m

@@ -27,7 +27,7 @@
 
     self.dismissButton.title = NSLocalizedString(@"BUTTON_DONE", @"");
     self.textContents.text = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"About Contents" ofType:@"txt"] encoding:NSUTF8StringEncoding error:nil];
-    self.aspenVersion.text = [NSString stringWithFormat:NSLocalizedString(@"VERSION_FORMAT",@""), [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"]];
+    self.aspenVersion.text = [[NSString stringWithFormat:NSLocalizedString(@"VERSION_FORMAT",@""), [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"]] stringByAppendingFormat:@" %@", kVLCVersionCodename];
     self.vlckitVersion.text = [NSString stringWithFormat:NSLocalizedString(@"BASED_ON_FORMAT",@""),[[VLCLibrary sharedLibrary] version]];
 }
 

+ 2 - 0
AspenProject/VLCConstants.h

@@ -6,6 +6,8 @@
 //  Copyright (c) 2013 VideoLAN. All rights reserved.
 //
 
+#define kVLCVersionCodename @"Aspen"
+
 #define kVLCSettingPasscodeKey @"Passcode"
 #define kVLCSettingPasscodeOnKey @"PasscodeProtection"
 #define kVLCSettingContinueAudioInBackgroundKey @"BackgroundAudioPlayback"