summaryrefslogtreecommitdiff
path: root/Cydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2009-06-17 21:11:35 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:13:15 +0000
commita95e0405841b00b6fb27e5b921d8a77e7d41d9fc (patch)
tree29a0e2c4ecc60c5f55714e1f60bd269628f95f7e /Cydia.mm
parent275d8115c11cc7a0f1fc20271a9b0e545014faf3 (diff)
Fixed a serious localization bug.
Diffstat (limited to 'Cydia.mm')
-rw-r--r--Cydia.mm12
1 files changed, 7 insertions, 5 deletions
diff --git a/Cydia.mm b/Cydia.mm
index 7863dc8..f90aa0b 100644
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -39,8 +39,8 @@
#define USE_SYSTEM_MALLOC 1
/* #include Directives {{{ */
-#import "UICaboodle.h"
-#import "UCLocalize.h"
+#import "UICaboodle/UCPlatform.h"
+#import "UICaboodle/UCLocalize.h"
#include <objc/message.h>
#include <objc/objc.h>
@@ -113,8 +113,8 @@ extern "C" {
#include <ext/hash_map>
-#import "BrowserView.h"
-#import "ResetView.h"
+#import "UICaboodle/BrowserView.h"
+#import "UICaboodle/ResetView.h"
#import "substrate.h"
/* }}} */
@@ -3728,6 +3728,8 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
}
- (NSString *) localizedStringForKey:(NSString *)key value:(NSString *)value table:(NSString *)table {
+ if (reinterpret_cast<id>(value) == [WebUndefined undefined])
+ value = nil;
if (reinterpret_cast<id>(table) == [WebUndefined undefined])
table = nil;
return [[NSBundle mainBundle] localizedStringForKey:key value:value table:table];
@@ -3769,7 +3771,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
}
- (id) initWithBook:(RVBook *)book forWidth:(float)width {
- if ((self = [super initWithBook:book]) != nil) {
+ if ((self = [super initWithBook:book forWidth:width]) != nil) {
cydia_ = [[CydiaObject alloc] initWithDelegate:indirect_];
WebView *webview([webview_ webView]);