//
// Created by Christian Brunschen on 05/06/2008.
/*
- * Copyright 2008 Google Inc.
+ * Copyright 2008 ZXing authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
return [NSURL URLWithString:urlString];
}
-- initWithLocation:(NSString *)l {
+- (id)initWithLocation:(NSString *)l {
if ((self = [super initWithURL:URLForLocation(l)]) != nil) {
self.location = l;
}
return self;
}
-+ actionWithLocation:(NSString *)location {
++ (id)actionWithLocation:(NSString *)location {
return [[[self alloc] initWithLocation:location] autorelease];
}
- (NSString *)title {
- return @"Show On Map";
+ return NSLocalizedString(@"ShowMapAction action title", @"Show on Map");
}
- (NSString *)alertTitle {
- return @"Show on Map";
+ return NSLocalizedString(@"ShowMapAction alert title", @"Show on Map");
}
- (NSString *)alertMessage {
- return [NSString stringWithFormat:@"Show location %@ on Map ?", self.location];
+ return [NSString stringWithFormat:NSLocalizedString(@"ShowMapAction alert message", @"Show location %@ on Map ?"), self.location];
}
- (NSString *)alertButtonTitle {
- return @"Show";
+ return NSLocalizedString(@"ShowMapAction alert button title", @"Show");
}