You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2014/01/02 19:08:30 UTC
[03/14] git commit: CB-5593 iOS: Make InAppBrowser localizable
CB-5593 iOS: Make InAppBrowser localizable
Wrapping all UI strings in NSLocalizedString macro
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/commit/034b5993
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/tree/034b5993
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/diff/034b5993
Branch: refs/heads/master
Commit: 034b59931588e3bc5869ff7677e5307660b68feb
Parents: f448ce8
Author: Tomáš Fejfar <to...@gmail.com>
Authored: Fri Nov 8 17:32:32 2013 +0100
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Fri Dec 6 09:42:22 2013 -0500
----------------------------------------------------------------------
src/ios/CDVInAppBrowser.m | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/blob/034b5993/src/ios/CDVInAppBrowser.m
----------------------------------------------------------------------
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];
}