removed my proj files... get generated for each user locally.
[zxing.git] / iphone / Classes / ShowMapAction.m
index 892746b..f3817a2 100644 (file)
@@ -4,7 +4,7 @@
 //
 //  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.
@@ -32,31 +32,31 @@ static NSURL * URLForLocation(NSString *location) {
   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");
 }