Added Open URL panel error messages to localizable strings.

CQTexperiment
vspader 2007-05-28 14:17:47 +00:00
parent 6f023124b4
commit 321aa5782b
3 changed files with 8 additions and 2 deletions

View File

@ -17,3 +17,6 @@
"ShuffleButtonTooltip" = "Shuffle mode";
"RepeatButtonTooltip" = "Repeat mode";
"FileButtonTooltip" = "File drawer";
"InvalidURLShort" = "Invalid URL"
"InvalidURLLong" = "The URL is not valid."

View File

@ -17,3 +17,6 @@
"ShuffleButtonTooltip" = "Shuffle mode";
"RepeatButtonTooltip" = "Repeat mode";
"FileButtonTooltip" = "File drawer";
"InvalidURLShort" = "Invalid URL"
"InvalidURLLong" = "The URL is not valid."

View File

@ -204,9 +204,9 @@ static OpenURLPanel *openURLPanel = nil;
else
{
if (mIsSheet)
NSRunAlertPanel(@"Invalid URL", @"The URL is not valid.", nil, nil, nil);
NSRunAlertPanel(NSLocalizedString(@"InvalidURLShort", @""), NSLocalizedString(@"InvalidURLLong", @""), nil, nil, nil);
else
NSBeginAlertSheet(@"Invalid URL", nil, nil, nil, mPanel, nil, nil, nil, nil, @"The URL is not valid.");
NSBeginAlertSheet(NSLocalizedString(@"InvalidURLShort", @""), nil, nil, nil, mPanel, nil, nil, nil, nil, NSLocalizedString(@"InvalidURLLong", @""));
informDelegate = NO;
}