Removed Preference window title.

Fixed localizable string lookup calls in preference bundle.
CQTexperiment
vspader 2007-07-08 00:13:03 +00:00
parent a6ebf04903
commit 96ca338fa3
11 changed files with 11 additions and 15 deletions

View File

@ -21,4 +21,3 @@
"InvalidURLShort" = "Invalid URL";
"InvalidURLLong" = "The URL is not valid.";
"Preferences: " = "Preferences: ";

View File

@ -21,5 +21,3 @@
"InvalidURLShort" = "Ungültige URL";
"InvalidURLLong" = "Die URL ist nicht gültig.";
"Preferences: " = "Preferences: ";

Binary file not shown.

Binary file not shown.

View File

@ -17,15 +17,15 @@
[self addObject:
[NSDictionary dictionaryWithObjectsAndKeys:
NSLocalizedString(@"Stable", @""), @"name", @"http://cogx.org/appcast/stable.xml", @"url",nil]];
NSLocalizedStringFromTableInBundle(@"Stable", nil, [NSBundle bundleForClass:[self class]], @"") , @"name", @"http://cogx.org/appcast/stable.xml", @"url",nil]];
[self addObject:
[NSDictionary dictionaryWithObjectsAndKeys:
NSLocalizedString(@"Unstable", @""), @"name", @"http://cogx.org/appcast/unstable.xml", @"url",nil]];
NSLocalizedStringFromTableInBundle(@"Unstable", nil, [NSBundle bundleForClass:[self class]], @"") , @"name", @"http://cogx.org/appcast/unstable.xml", @"url",nil]];
[self addObject:
[NSDictionary dictionaryWithObjectsAndKeys:
NSLocalizedString(@"Nightly", @""), @"name", @"http://cogx.org/appcast/nightly.xml", @"url",nil]];
NSLocalizedStringFromTableInBundle(@"Nightly", nil, [NSBundle bundleForClass:[self class]], @"") , @"name", @"http://cogx.org/appcast/nightly.xml", @"url",nil]];
}

View File

@ -13,7 +13,7 @@
- (void)awakeFromNib
{
[self setName:NSLocalizedString(@"File Drawer", @"")];
[self setName:NSLocalizedStringFromTableInBundle(@"File Drawer", nil, [NSBundle bundleForClass:[self class]], @"") ];
[self setIcon:@"file_drawer"];
[rootPathTextView setStringValue:[[[NSUserDefaultsController sharedUserDefaultsController] defaults] objectForKey:@"fileDrawerRootPath"]];

View File

@ -13,7 +13,7 @@
- (void)awakeFromNib
{
[self setName:NSLocalizedString(@"Hot Keys", @"")];
[self setName:NSLocalizedStringFromTableInBundle(@"Hot Keys", nil, [NSBundle bundleForClass:[self class]], @"") ];
[self setIcon:@"hot_keys"];
// [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(windowDidBecomeKey:) name:NSWindowDidBecomeKeyNotification object: [view window]];

View File

@ -14,7 +14,7 @@
- (void)awakeFromNib
{
NSLog(@"AWOKEN!");
[self setName:NSLocalizedString(@"Output", @"")];
[self setName:NSLocalizedStringFromTableInBundle(@"Output", nil, [NSBundle bundleForClass:[self class]], @"") ];
[self setIcon:@"output"];
}

View File

@ -38,17 +38,18 @@
- (PreferencePane *)remotePane
{
return [PreferencePane preferencePaneWithView:remoteView name:NSLocalizedString(@"Remote", @"") icon:@"apple_remote"];
NSLog(@"Localizations; %@", [[NSBundle mainBundle] localizations]);
return [PreferencePane preferencePaneWithView:remoteView name:NSLocalizedStringFromTableInBundle(@"Remote", nil, [NSBundle bundleForClass:[self class]], @"") icon:@"apple_remote"];
}
- (PreferencePane *)updatesPane
{
return [PreferencePane preferencePaneWithView:updatesView name:NSLocalizedString(@"Updates", @"") icon:@"updates"];
return [PreferencePane preferencePaneWithView:updatesView name:NSLocalizedStringFromTableInBundle(@"Updates", nil, [NSBundle bundleForClass:[self class]], @"") icon:@"updates"];
}
- (PreferencePane *)scrobblerPane
{
return [PreferencePane preferencePaneWithView:scrobblerView name:NSLocalizedString(@"Last.fm", @"") icon:@"lastfm"];
return [PreferencePane preferencePaneWithView:scrobblerView name:NSLocalizedStringFromTableInBundle(@"Last.fm", nil, [NSBundle bundleForClass:[self class]], @"") icon:@"lastfm"];
}
@end

View File

@ -339,7 +339,7 @@
[prefsWindow setShowsResizeIndicator:canResize];
if ((prefsToolbarItems && ([prefsToolbarItems count] > 1)) || alwaysShowsToolbar) {
[prefsWindow setTitle:[NSLocalizedString(@"Preferences: ", @"") stringByAppendingString:name]];
[prefsWindow setTitle:name];
}
// Update defaults

View File

@ -20,5 +20,3 @@
"InvalidURLShort" = "Ogiltig URL";
"InvalidURLLong" = "URL ej giltig.";
"Preferences: " = "Preferences: ";