localized fun

CQTexperiment
vspader 2005-07-11 20:27:47 +00:00
parent c69512c567
commit dfa9bd1e0d
3 changed files with 13 additions and 14 deletions

View File

@ -51,15 +51,15 @@
{ {
// DBLog(@"AWAKe"); // DBLog(@"AWAKe");
[playButton setToolTip:@"Play"]; [playButton setToolTip:NSLocalizedString(@"PlayButtonTooltip", @"")];
[stopButton setToolTip:@"Stop"]; [stopButton setToolTip:NSLocalizedString(@"StopButtonTooltip", @"")];
[prevButton setToolTip:@"Previous"]; [prevButton setToolTip:NSLocalizedString(@"PrevButtonTooltip", @"")];
[nextButton setToolTip:@"Next"]; [nextButton setToolTip:NSLocalizedString(@"NextButtonTooltip", @"")];
[addButton setToolTip:@"Add files"]; [addButton setToolTip:NSLocalizedString(@"AddButtonTooltip", @"")];
[remButton setToolTip:@"Remove selected files"]; [remButton setToolTip:NSLocalizedString(@"RemoveButtonTooltip", @"")];
[infoButton setToolTip:@"Information on the selected file."]; [infoButton setToolTip:NSLocalizedString(@"InfoButtonTooltip", @"")];
[shuffleButton setToolTip:@"Shuffle mode"]; [shuffleButton setToolTip:NSLocalizedString(@"ShuffleButtonTooltip", @"")];
[repeatButton setToolTip:@"Repeat mode"]; [repeatButton setToolTip:NSLocalizedString(@"RepeatButtonTooltip", @"")];
NSString *filename = @"~/Library/Application Support/Cog/Default.playlist"; NSString *filename = @"~/Library/Application Support/Cog/Default.playlist";
[playlistController loadPlaylist:[filename stringByExpandingTildeInPath]]; [playlistController loadPlaylist:[filename stringByExpandingTildeInPath]];

View File

@ -265,7 +265,6 @@
8EDCBDCA0840617B00F5C7E3 /* Cog.scriptTerminology */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.scriptTerminology; path = Cog.scriptTerminology; sourceTree = "<group>"; }; 8EDCBDCA0840617B00F5C7E3 /* Cog.scriptTerminology */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.scriptTerminology; path = Cog.scriptTerminology; sourceTree = "<group>"; };
8EDCBDCC0840618900F5C7E3 /* Cog.scriptSuite */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.scriptSuite; path = Cog.scriptSuite; sourceTree = "<group>"; }; 8EDCBDCC0840618900F5C7E3 /* Cog.scriptSuite */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.scriptSuite; path = Cog.scriptSuite; sourceTree = "<group>"; };
8EE90D3808830662002238C8 /* English */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/Localizable.strings; sourceTree = "<group>"; }; 8EE90D3808830662002238C8 /* English */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/Localizable.strings; sourceTree = "<group>"; };
8EE90D5608830B0B002238C8 /* French */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = French; path = French.lproj/Localizable.strings; sourceTree = "<group>"; };
8EF6FA65082DA526006F7BE6 /* FlacFile.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = FlacFile.h; sourceTree = "<group>"; }; 8EF6FA65082DA526006F7BE6 /* FlacFile.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = FlacFile.h; sourceTree = "<group>"; };
8EF6FA66082DA526006F7BE6 /* FlacFile.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = FlacFile.m; sourceTree = "<group>"; }; 8EF6FA66082DA526006F7BE6 /* FlacFile.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = FlacFile.m; sourceTree = "<group>"; };
8EF6FA67082DA526006F7BE6 /* MonkeysFile.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = MonkeysFile.h; sourceTree = "<group>"; }; 8EF6FA67082DA526006F7BE6 /* MonkeysFile.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = MonkeysFile.h; sourceTree = "<group>"; };
@ -709,7 +708,6 @@
isa = PBXVariantGroup; isa = PBXVariantGroup;
children = ( children = (
8EE90D3808830662002238C8 /* English */, 8EE90D3808830662002238C8 /* English */,
8EE90D5608830B0B002238C8 /* French */,
); );
name = Localizable.strings; name = Localizable.strings;
sourceTree = "<group>"; sourceTree = "<group>";

View File

@ -102,7 +102,7 @@
waitingForPlay = NO; waitingForPlay = NO;
// DBLog(@"PlayEntry: %@ Sent!", [pe filename]); // DBLog(@"PlayEntry: %@ Sent!", [pe filename]);
[self sendPortMessage:kCogPlayFileMessage withString:[pe filename]]; [self sendPortMessage:kCogPlayFileMessage withString:[pe filename]];
} }
@ -220,12 +220,12 @@
if (showTimeRemaining == NO) if (showTimeRemaining == NO)
{ {
int sec = (int)(pos/1000.0); int sec = (int)(pos/1000.0);
text = [NSString stringWithFormat:@"Time Elapsed: %i:%02i", sec/60, sec%60]; text = [NSString stringWithFormat:NSLocalizedString(@"TimeElapsed", @""), sec/60, sec%60];
} }
else else
{ {
int sec = (int)(([positionSlider maxValue] - pos)/1000.0); int sec = (int)(([positionSlider maxValue] - pos)/1000.0);
text = [NSString stringWithFormat:@"Time Remaining: %i:%02i", sec/60, sec%60]; text = [NSString stringWithFormat:NSLocalizedString(@"TimeRemaining", @""), sec/60, sec%60];
} }
[timeField setStringValue:text]; [timeField setStringValue:text];
} }
@ -301,6 +301,7 @@
[positionSlider setDoubleValue:0]; [positionSlider setDoubleValue:0];
// DBLog(@"Length changed: %f", max); // DBLog(@"Length changed: %f", max);
// [lengthField setDoubleValue:max/1000.0]; // [lengthField setDoubleValue:max/1000.0];
[self updateTimeField:0.0f];
} }
else if (message == kCogPositionUpdateMessage) else if (message == kCogPositionUpdateMessage)
{ {