From 034b59931588e3bc5869ff7677e5307660b68feb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Fejfar?= Date: Fri, 8 Nov 2013 17:32:32 +0100 Subject: [PATCH] CB-5593 iOS: Make InAppBrowser localizable Wrapping all UI strings in NSLocalizedString macro --- src/ios/CDVInAppBrowser.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ios/CDVInAppBrowser.m b/src/ios/CDVInAppBrowser.m index 3f158ca..9839ccc 100644 --- a/src/ios/CDVInAppBrowser.m +++ b/src/ios/CDVInAppBrowser.m @@ -487,17 +487,17 @@ self.addressLabel.numberOfLines = 1; self.addressLabel.opaque = NO; self.addressLabel.shadowOffset = CGSizeMake(0.0, -1.0); - self.addressLabel.text = @"Loading..."; + self.addressLabel.text = NSLocalizedString(@"Loading...", nil); self.addressLabel.textAlignment = UITextAlignmentLeft; self.addressLabel.textColor = [UIColor colorWithWhite:1.000 alpha:1.000]; self.addressLabel.userInteractionEnabled = NO; - NSString* frontArrowString = @"►"; // create arrow from Unicode char + NSString* frontArrowString = NSLocalizedString(@"►", nil); // create arrow from Unicode char self.forwardButton = [[UIBarButtonItem alloc] initWithTitle:frontArrowString style:UIBarButtonItemStylePlain target:self action:@selector(goForward:)]; self.forwardButton.enabled = YES; self.forwardButton.imageInsets = UIEdgeInsetsZero; - NSString* backArrowString = @"◄"; // create arrow from Unicode char + NSString* backArrowString = NSLocalizedString(@"◄", nil); // create arrow from Unicode char self.backButton = [[UIBarButtonItem alloc] initWithTitle:backArrowString style:UIBarButtonItemStylePlain target:self action:@selector(goBack:)]; self.backButton.enabled = YES; self.backButton.imageInsets = UIEdgeInsetsZero; @@ -713,7 +713,7 @@ { // loading url, start spinner, update back/forward - self.addressLabel.text = @"Loading..."; + self.addressLabel.text = NSLocalizedString(@"Loading...", nil); self.backButton.enabled = theWebView.canGoBack; self.forwardButton.enabled = theWebView.canGoForward; @@ -770,7 +770,7 @@ self.forwardButton.enabled = theWebView.canGoForward; [self.spinner stopAnimating]; - self.addressLabel.text = @"Load Error"; + self.addressLabel.text = NSLocalizedString(@"Load Error", nil); [self.navigationDelegate webView:theWebView didFailLoadWithError:error]; }