Commit 73430c91 authored by Felix Paul Kühne's avatar Felix Paul Kühne

About: add contribute button linking to our contribute page

Full l10n except for id - needs review by native speakers
parent 35b4f05e
......@@ -17,7 +17,17 @@
{
[super viewDidLoad];
self.navigationItem.title = NSLocalizedString(@"ABOUT_APP", @"");
self.navigationItem.titleView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"title"]];
UIBarButtonItem *contributeButton = [[UIBarButtonItem alloc] initWithTitle:@"Contribute" style:UIBarButtonItemStyleBordered target:self action:@selector(openContributePage:)];
[contributeButton setBackgroundImage:[UIImage imageNamed:@"button"] forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
[contributeButton setBackgroundImage:[UIImage imageNamed:@"buttonHighlight"] forState:UIControlStateHighlighted barMetrics:UIBarMetricsDefault];
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
self.navigationItem.rightBarButtonItem = contributeButton;
else
self.navigationItem.leftBarButtonItem = contributeButton;
NSMutableString *htmlContent = [NSMutableString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"About Contents" ofType:@"html"] encoding:NSUTF8StringEncoding error:nil];
[htmlContent replaceOccurrencesOfString:@"ASPENVERSION" withString:[[NSString stringWithFormat:NSLocalizedString(@"VERSION_FORMAT",@""), [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"]] stringByAppendingFormat:@" %@", kVLCVersionCodename] options:NSLiteralSearch range:NSMakeRange(0, 1000)];
[htmlContent replaceOccurrencesOfString:@"MOBILEVLCKITVERSION" withString:[NSString stringWithFormat:NSLocalizedString(@"BASED_ON_FORMAT",@""),[[VLCLibrary sharedLibrary] version]] options:NSLiteralSearch range:NSMakeRange(0, 1000)];
......@@ -51,4 +61,9 @@
[UIView animateWithDuration:.3 animations:animationBlock completion:completionBlock];
}
- (IBAction)openContributePage:(id)sender
{
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.videolan.org/contribute.html"]];
}
@end
B"CHOOSE_AUDIO_TRACK"="Audiospur wählen";
......
B"CHOOSE_AUDIO_TRACK"="Choose Audio Track";
......
B"CHOOSE_AUDIO_TRACK"="Valitse ääniraita";
......
B"CHOOSE_AUDIO_TRACK"="Choisir la piste audio";
......
B"CHOOSE_AUDIO_TRACK"="Pemilihan Track Audio";
......
B"CHOOSE_AUDIO_TRACK"="Scegliere la traccia audio";
......
B"CHOOSE_AUDIO_TRACK"="オーディオトラック選択";
......
B"CHOOSE_AUDIO_TRACK"="Выберите аудио поток";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment