From 321aa5782becf8baabbe46e90a1916e7fbc268fd Mon Sep 17 00:00:00 2001 From: vspader Date: Mon, 28 May 2007 14:17:47 +0000 Subject: [PATCH] Added Open URL panel error messages to localizable strings. --- English.lproj/Localizable.strings | 3 +++ Localizations/English/MainProgram.strings | 3 +++ ThirdParty/OpenURLPanel/OpenURLPanel.m | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/English.lproj/Localizable.strings b/English.lproj/Localizable.strings index b6fdfb86a..476e885a5 100644 --- a/English.lproj/Localizable.strings +++ b/English.lproj/Localizable.strings @@ -17,3 +17,6 @@ "ShuffleButtonTooltip" = "Shuffle mode"; "RepeatButtonTooltip" = "Repeat mode"; "FileButtonTooltip" = "File drawer"; + +"InvalidURLShort" = "Invalid URL" +"InvalidURLLong" = "The URL is not valid." diff --git a/Localizations/English/MainProgram.strings b/Localizations/English/MainProgram.strings index b6fdfb86a..476e885a5 100644 --- a/Localizations/English/MainProgram.strings +++ b/Localizations/English/MainProgram.strings @@ -17,3 +17,6 @@ "ShuffleButtonTooltip" = "Shuffle mode"; "RepeatButtonTooltip" = "Repeat mode"; "FileButtonTooltip" = "File drawer"; + +"InvalidURLShort" = "Invalid URL" +"InvalidURLLong" = "The URL is not valid." diff --git a/ThirdParty/OpenURLPanel/OpenURLPanel.m b/ThirdParty/OpenURLPanel/OpenURLPanel.m index 7761d0938..cc5de3ec3 100755 --- a/ThirdParty/OpenURLPanel/OpenURLPanel.m +++ b/ThirdParty/OpenURLPanel/OpenURLPanel.m @@ -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; }