Removed Preference window title.
Fixed localizable string lookup calls in preference bundle.CQTexperiment
parent
a6ebf04903
commit
96ca338fa3
|
@ -21,4 +21,3 @@
|
||||||
"InvalidURLShort" = "Invalid URL";
|
"InvalidURLShort" = "Invalid URL";
|
||||||
"InvalidURLLong" = "The URL is not valid.";
|
"InvalidURLLong" = "The URL is not valid.";
|
||||||
|
|
||||||
"Preferences: " = "Preferences: ";
|
|
|
@ -21,5 +21,3 @@
|
||||||
"InvalidURLShort" = "Ungültige URL";
|
"InvalidURLShort" = "Ungültige URL";
|
||||||
"InvalidURLLong" = "Die URL ist nicht gültig.";
|
"InvalidURLLong" = "Die URL ist nicht gültig.";
|
||||||
|
|
||||||
"Preferences: " = "Preferences: ";
|
|
||||||
|
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -17,15 +17,15 @@
|
||||||
|
|
||||||
[self addObject:
|
[self addObject:
|
||||||
[NSDictionary dictionaryWithObjectsAndKeys:
|
[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:
|
[self addObject:
|
||||||
[NSDictionary dictionaryWithObjectsAndKeys:
|
[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:
|
[self addObject:
|
||||||
[NSDictionary dictionaryWithObjectsAndKeys:
|
[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]];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
- (void)awakeFromNib
|
- (void)awakeFromNib
|
||||||
{
|
{
|
||||||
[self setName:NSLocalizedString(@"File Drawer", @"")];
|
[self setName:NSLocalizedStringFromTableInBundle(@"File Drawer", nil, [NSBundle bundleForClass:[self class]], @"") ];
|
||||||
[self setIcon:@"file_drawer"];
|
[self setIcon:@"file_drawer"];
|
||||||
|
|
||||||
[rootPathTextView setStringValue:[[[NSUserDefaultsController sharedUserDefaultsController] defaults] objectForKey:@"fileDrawerRootPath"]];
|
[rootPathTextView setStringValue:[[[NSUserDefaultsController sharedUserDefaultsController] defaults] objectForKey:@"fileDrawerRootPath"]];
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
- (void)awakeFromNib
|
- (void)awakeFromNib
|
||||||
{
|
{
|
||||||
[self setName:NSLocalizedString(@"Hot Keys", @"")];
|
[self setName:NSLocalizedStringFromTableInBundle(@"Hot Keys", nil, [NSBundle bundleForClass:[self class]], @"") ];
|
||||||
[self setIcon:@"hot_keys"];
|
[self setIcon:@"hot_keys"];
|
||||||
|
|
||||||
// [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(windowDidBecomeKey:) name:NSWindowDidBecomeKeyNotification object: [view window]];
|
// [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(windowDidBecomeKey:) name:NSWindowDidBecomeKeyNotification object: [view window]];
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
- (void)awakeFromNib
|
- (void)awakeFromNib
|
||||||
{
|
{
|
||||||
NSLog(@"AWOKEN!");
|
NSLog(@"AWOKEN!");
|
||||||
[self setName:NSLocalizedString(@"Output", @"")];
|
[self setName:NSLocalizedStringFromTableInBundle(@"Output", nil, [NSBundle bundleForClass:[self class]], @"") ];
|
||||||
[self setIcon:@"output"];
|
[self setIcon:@"output"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,17 +38,18 @@
|
||||||
|
|
||||||
- (PreferencePane *)remotePane
|
- (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
|
- (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
|
- (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
|
@end
|
||||||
|
|
|
@ -339,7 +339,7 @@
|
||||||
[prefsWindow setShowsResizeIndicator:canResize];
|
[prefsWindow setShowsResizeIndicator:canResize];
|
||||||
|
|
||||||
if ((prefsToolbarItems && ([prefsToolbarItems count] > 1)) || alwaysShowsToolbar) {
|
if ((prefsToolbarItems && ([prefsToolbarItems count] > 1)) || alwaysShowsToolbar) {
|
||||||
[prefsWindow setTitle:[NSLocalizedString(@"Preferences: ", @"") stringByAppendingString:name]];
|
[prefsWindow setTitle:name];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update defaults
|
// Update defaults
|
||||||
|
|
|
@ -20,5 +20,3 @@
|
||||||
|
|
||||||
"InvalidURLShort" = "Ogiltig URL";
|
"InvalidURLShort" = "Ogiltig URL";
|
||||||
"InvalidURLLong" = "URL ej giltig.";
|
"InvalidURLLong" = "URL ej giltig.";
|
||||||
|
|
||||||
"Preferences: " = "Preferences: ";
|
|
||||||
|
|
Loading…
Reference in New Issue