diff --git a/libtransmission/utils.c b/libtransmission/utils.c index 064227cf2..f605fd008 100644 --- a/libtransmission/utils.c +++ b/libtransmission/utils.c @@ -62,33 +62,6 @@ void tr_msgInit( void ) messageLock = tr_lockNew( ); } -/* -#if defined(SYS_DARWIN) - -const char * tr_getMacLocalizedCString(CFStringRef string) -{ - //if you need to be thread safe, add proper locks around that - static CFMutableDictionaryRef mapping = NULL; - if( mapping == NULL ) - { - mapping = CFDictionaryCreateMutable(NULL, 0, &kCFTypeDictionaryKeyCallBacks, NULL); - } - - const char * result = (const char *)CFDictionaryGetValue(mapping, string); - if( result == NULL ) - { - CFStringRef localizedString = CFCopyLocalizedStringFromTable(string, CFSTR("LibraryLocalizable"), NULL); - result = (const char *)malloc(CFStringGetMaximumSizeForEncoding(CFStringGetLength(localizedString), kCFStringEncodingUTF8)); - CFStringGetCString(localizedString, (char *)result, CFStringGetLength(localizedString)+1, kCFStringEncodingUTF8); - CFDictionarySetValue(mapping, string, result); - } - - return result; -} - -#endif -*/ - FILE* tr_getLog( void ) { diff --git a/libtransmission/utils.h b/libtransmission/utils.h index 948f97619..7ba27a977 100644 --- a/libtransmission/utils.h +++ b/libtransmission/utils.h @@ -34,9 +34,6 @@ void tr_msgInit( void ); #if !defined(_) #if defined(SYS_DARWIN) - /*#include - const char * tr_getMacLocalizedCString(CFStringRef string); - #define _(a) tr_getMacLocalizedCString(CFSTR(a))*/ #define _(a) (a) #elif HAVE_LIBINTL #include diff --git a/macosx/AddWindowController.m b/macosx/AddWindowController.m index af12e9c30..18dddc48e 100644 --- a/macosx/AddWindowController.m +++ b/macosx/AddWindowController.m @@ -216,8 +216,10 @@ else fileString = NSLocalizedString(@"1 File", "Add torrent -> info"); - statusString = [NSString stringWithFormat: NSLocalizedString(@"%@, %@ (%@ selected)", "Add torrent -> info"), fileString, - statusString, [NSString stringForFileSize: [fTorrent totalSizeSelected]]]; + NSString * selectedString = [NSString stringWithFormat: NSLocalizedString(@"%@ selected", "Add torrent -> info"), + [NSString stringForFileSize: [fTorrent totalSizeSelected]]]; + + statusString = [NSString stringWithFormat: @"%@, %@ (%@)", fileString, statusString, selectedString]; } [fStatusField setStringValue: statusString]; diff --git a/macosx/English.lproj/Localizable.strings b/macosx/English.lproj/Localizable.strings index a250289a5..2547b1e22 100644 Binary files a/macosx/English.lproj/Localizable.strings and b/macosx/English.lproj/Localizable.strings differ diff --git a/macosx/English.lproj/PrefsWindow.xib b/macosx/English.lproj/PrefsWindow.xib index 0d1c48a27..cad030280 100644 --- a/macosx/English.lproj/PrefsWindow.xib +++ b/macosx/English.lproj/PrefsWindow.xib @@ -8,8 +8,8 @@ 352.00 YES - + YES @@ -857,7 +857,7 @@ YES - + @@ -998,7 +998,7 @@ YES - + @@ -1131,7 +1131,7 @@ YES - + @@ -1233,7 +1233,7 @@ YES - + @@ -1524,7 +1524,7 @@ YES - + @@ -1610,7 +1610,7 @@ YES - + @@ -1744,7 +1744,7 @@ YES - + @@ -1808,7 +1808,7 @@ YES - + @@ -2216,10 +2216,10 @@ AAABAAAAAQ YES - + - - + + @@ -2237,7 +2237,7 @@ AAABAAAAAQ NaN - + 3 @@ -2316,8 +2316,8 @@ AAABAAAAAQ - - + + @@ -2335,7 +2335,7 @@ AAABAAAAAQ NaN - + 3 @@ -2450,12 +2450,12 @@ AAABAAAAAQ 256 - {{214, 22}, {263, 17}} + {{214, 22}, {308, 17}} YES - 67239424 - 4194304 + 67239488 + 4196352 blocklist loaded/not loaded @@ -2535,7 +2535,7 @@ AAABAAAAAQ YES - + @@ -2755,12 +2755,6 @@ AAABAAAAAQ NSResponder - - YES - PEXGlobal - EncryptionPrefer - EncryptionRequire - YES @@ -6501,44 +6495,44 @@ AAABAAAAAQ {{493, 304}, {539, 244}} com.apple.InterfaceBuilder.CocoaPlugin - + {{281, 577}, {539, 315}} com.apple.InterfaceBuilder.CocoaPlugin - + com.apple.InterfaceBuilder.CocoaPlugin - + com.apple.InterfaceBuilder.CocoaPlugin - + com.apple.InterfaceBuilder.CocoaPlugin - + com.apple.InterfaceBuilder.CocoaPlugin - + com.apple.InterfaceBuilder.CocoaPlugin - + com.apple.InterfaceBuilder.CocoaPlugin - + com.apple.InterfaceBuilder.CocoaPlugin - + com.apple.InterfaceBuilder.CocoaPlugin - + com.apple.InterfaceBuilder.CocoaPlugin - + com.apple.InterfaceBuilder.CocoaPlugin - + com.apple.InterfaceBuilder.CocoaPlugin - + com.apple.InterfaceBuilder.CocoaPlugin - + com.apple.InterfaceBuilder.CocoaPlugin - + com.apple.InterfaceBuilder.CocoaPlugin - + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - + com.apple.InterfaceBuilder.CocoaPlugin - + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin