Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
- Change NSLocalizedString(...) calls for TTLocalizedString(...) to g…
Browse files Browse the repository at this point in the history
…et proper localization from Three20 bundle;

-	Add missing localized strings to English and French Localizable.string in Three20 bundle.

Signed-off-by: Brett Adam <bpjadam@gmail.com>
  • Loading branch information
flabrie authored and verveguy committed May 18, 2009
1 parent 1dc78c9 commit 3c78d0d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/TTWebController.m
Expand Up @@ -29,8 +29,8 @@ - (void)stopAction {

- (void)shareAction {
UIActionSheet* sheet = [[[UIActionSheet alloc] initWithTitle:@"" delegate:self
cancelButtonTitle:NSLocalizedString(@"Cancel", @"") destructiveButtonTitle:nil
otherButtonTitles:NSLocalizedString(@"Open in Safari", @""), nil] autorelease];
cancelButtonTitle:TTLocalizedString(@"Cancel", @"") destructiveButtonTitle:nil
otherButtonTitles:TTLocalizedString(@"Open in Safari", @""), nil] autorelease];
[sheet showInView:self.view];
}

Expand Down Expand Up @@ -135,7 +135,7 @@ - (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)re
}

- (void)webViewDidStartLoad:(UIWebView*)webView {
self.title = NSLocalizedString(@"Loading...", @"");
self.title = TTLocalizedString(@"Loading...", @"");
self.navigationItem.rightBarButtonItem = _activityItem;
[_toolbar replaceItemWithTag:3 withItem:_stopButton];
_backButton.enabled = [_webView canGoBack];
Expand Down
1 change: 1 addition & 0 deletions src/Three20.bundle/en.lproj/Localizable.strings
Expand Up @@ -49,3 +49,4 @@

"Yes" = "Yes";

"Open in Safari" = "Open in Safari";
1 change: 1 addition & 0 deletions src/Three20.bundle/fr.lproj/Localizable.strings
Expand Up @@ -49,3 +49,4 @@

"Yes" = "Oui";

"Open in Safari" = "Ouvrir dans Safari";

0 comments on commit 3c78d0d

Please sign in to comment.