Revision: 12248
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=12248&view=rev
Author: amaxwell
Date: 2008-01-03 21:52:23 -0800 (Thu, 03 Jan 2008)
Log Message:
-----------
Handle single item delete, s/item/publication (status message above uses
publication)
Modified Paths:
--------------
trunk/bibdesk/BibDocument_Actions.m
Modified: trunk/bibdesk/BibDocument_Actions.m
===================================================================
--- trunk/bibdesk/BibDocument_Actions.m 2008-01-04 05:47:19 UTC (rev 12247)
+++ trunk/bibdesk/BibDocument_Actions.m 2008-01-04 05:52:23 UTC (rev 12248)
@@ -261,11 +261,16 @@
}
if ([[OFPreferenceWrapper sharedPreferenceWrapper]
boolForKey:BDSKWarnOnDeleteKey]) {
+ NSString *info;
+ if (numSelectedPubs > 1)
+ info = [NSString stringWithFormat:NSLocalizedString(@"You are
about to delete %i publications. Do you want to proceed?", @"Informative text
in alert dialog"), numSelectedPubs];
+ else
+ info = NSLocalizedString(@"You are about to delete a publication.
Do you want to proceed?", @"Informative text in alert dialog");
BDSKAlert *alert = [BDSKAlert
alertWithMessageText:NSLocalizedString(@"Warning", @"Message in alert dialog")
defaultButton:NSLocalizedString(@"OK", @"Button title")
alternateButton:nil
otherButton:NSLocalizedString(@"Cancel", @"Button title")
-
informativeTextWithFormat:NSLocalizedString(@"You are about to delete %i items.
Do you want to proceed?", @"Informative text in alert dialog"),
numSelectedPubs];
+
informativeTextWithFormat:info];
[alert setHasCheckButton:YES];
[alert setCheckValue:NO];
[alert beginSheetModalForWindow:documentWindow
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit