NSArray *classList = [ITWindowEffect effectClasses];
float entrySpeed;
float exitSpeed;
+ NSArray *screens = [NSScreen screens];
+ int screenIndex;
NSData *colorData;
exitClass = [df stringForKey:@"statusWindowVanishEffect"];
entrySpeed = [df floatForKey:@"statusWindowAppearanceSpeed"];
exitSpeed = [df floatForKey:@"statusWindowVanishSpeed"];
-
+
+ screenIndex = [df integerForKey:@"statusWindowScreenIndex"];
+ if (screenIndex >= [screens count]) {
+ screenIndex = 0;
+ }
+ [_window setScreen:[screens objectAtIndex:screenIndex]];
+
[_window setExitMode:ITTransientStatusWindowExitAfterDelay];
[_window setExitDelay:(exitDelay ? exitDelay : 4.0)];
text = [text stringByAppendingString:[@"\n" stringByAppendingString:track]];
}
if (playCount > -1) {
- text = [text stringByAppendingString:[NSString stringWithFormat:@"\nPlay Count: %i", playCount]];
+ text = [text stringByAppendingString:[NSString stringWithFormat:@"\n%@: %i", NSLocalizedString(@"playCount", @"Play Count"), playCount]];
}
if ( rating > -1 ) {
{
[_window setImage:[NSImage imageNamed:@"Shuffle"]];
[_window setSizing:(ITTransientStatusWindowSizing)[df integerForKey:@"statusWindowSizing"]];
- [_window buildTextWindowWithString:( shuffle ? @"Shuffle On" : @"Shuffle Off")];
+ [_window buildTextWindowWithString:( shuffle ? NSLocalizedString(@"shuffleOn", @"Shuffle On") : NSLocalizedString(@"shuffleOff", @"Shuffle Off"))];
[_window appear:self];
}
NSString *string = nil;
if ( mode == StatusWindowRepeatNone ) {
- string = @"Repeat Off";
+ string = NSLocalizedString(@"repeatOff", @"Repeat Off");
} else if ( mode == StatusWindowRepeatGroup ) {
- string = @"Repeat Playlist";
+ string = NSLocalizedString(@"repeatPlaylist", @"Repeat Playlist");
} else if ( mode == StatusWindowRepeatTrack ) {
- string = @"Repeat One Track";
+ string = NSLocalizedString(@"repeatOneTrack", @"Repeat One Track");;
}
[_window setImage:[NSImage imageNamed:@"Repeat"]];