scan archive UI improvements, phase 1
[zxing.git] / iphone / Classes / OpenUrlAction.m
index 5891008..8941611 100644 (file)
@@ -4,7 +4,7 @@
 //
 //  Created by Christian Brunschen on 28/05/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.
 }
 
 - (NSString *)title {
-  return [NSString stringWithFormat:@"Open %@", self.URL];
+  return [NSString localizedStringWithFormat:NSLocalizedString(@"Open %@", @"action title"), self.URL];
 }
 
 - (NSString *)alertTitle {
-  return @"Open URL";
+  return NSLocalizedString(@"Open URL", @"alert title");
 }
 
 - (NSString *)alertMessage {
-  return [NSString stringWithFormat:@"Open URL <%@>?", self.URL];
+  return [NSString localizedStringWithFormat:NSLocalizedString(@"Open URL <%@>?", @"alert message"), self.URL];
 }
 
 - (NSString *)alertButtonTitle {
-  return @"Open";
+  return NSLocalizedString(@"Open", @"alert button title");
 }
 
 - (void)performActionWithController:(UIViewController *)controller {
   UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:nil 
                                                       message:[self alertMessage] 
                                                      delegate:self 
-                                            cancelButtonTitle:@"Cancel" 
+                                            cancelButtonTitle:NSLocalizedString(@"Cancel", @"cancel button title") 
                                             otherButtonTitles:[self alertButtonTitle], nil];
   [alertView show];
   [alertView release];