Revision: 5343
http://skim-app.svn.sourceforge.net/skim-app/?rev=5343&view=rev
Author: hofman
Date: 2009-05-01 12:04:49 +0000 (Fri, 01 May 2009)
Log Message:
-----------
localize dropped file name
Modified Paths:
--------------
trunk/SKMainWindowController_UI.m
Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m 2009-05-01 12:02:06 UTC (rev 5342)
+++ trunk/SKMainWindowController_UI.m 2009-05-01 12:04:49 UTC (rev 5343)
@@ -310,7 +310,7 @@
PDFPage *page = [[pdfView document] pageAtIndex:idx];
NSData *pdfData = [page dataRepresentation];
NSData *tiffData = [page TIFFDataForRect:[page
boundsForBox:[pdfView displayBox]]];
- NSString *fileName = [NSString stringWithFormat:@"%@ - Page
%[email protected]", ([[[self document] displayName] stringByDeletingPathExtension] ?:
@"PDF"), [page displayLabel]];
+ NSString *fileName = [NSString
stringWithFormat:NSLocalizedString(@"%@ %C Page %@", @""), ([[[self document]
displayName] stringByDeletingPathExtension] ?: @"PDF"), '-', [page
displayLabel]];
[pboard declareTypes:[NSArray arrayWithObjects:NSPDFPboardType,
NSTIFFPboardType, NSFilesPromisePboardType, nil] owner:self];
[pboard setData:pdfData forType:NSPDFPboardType];
[pboard setData:tiffData forType:NSTIFFPboardType];
@@ -322,7 +322,7 @@
if (idx != NSNotFound) {
SKSnapshotWindowController *snapshot = [self
objectInSnapshotsAtIndex:idx];
PDFPage *page = [[pdfView document] pageAtIndex:[snapshot
pageIndex]];
- NSString *fileName = [NSString stringWithFormat:@"%@ - Page
%[email protected]", ([[[self document] displayName] stringByDeletingPathExtension] ?:
@"PDF"), [page displayLabel]];
+ NSString *fileName = [NSString
stringWithFormat:NSLocalizedString(@"%@ %C Page %@", @""), ([[[self document]
displayName] stringByDeletingPathExtension] ?: @"PDF"), '-', [page
displayLabel]];
[pboard declareTypes:[NSArray arrayWithObjects:NSTIFFPboardType,
NSFilesPromisePboardType, nil] owner:self];
[pboard setData:[[snapshot thumbnailWithSize:0.0]
TIFFRepresentation] forType:NSTIFFPboardType];
[pboard setPropertyList:[NSArray arrayWithObject:fileName]
forType:NSFilesPromisePboardType];
@@ -337,7 +337,7 @@
NSUInteger idx = [rowIndexes firstIndex];
if (idx != NSNotFound) {
PDFPage *page = [[pdfView document] pageAtIndex:idx];
- NSString *fileName = [NSString stringWithFormat:@"%@ - Page %@",
([[[self document] displayName] stringByDeletingPathExtension] ?: @"PDF"),
[page displayLabel]];
+ NSString *fileName = [NSString
stringWithFormat:NSLocalizedString(@"%@ %C Page %@", @""), ([[[self document]
displayName] stringByDeletingPathExtension] ?: @"PDF"), '-', [page
displayLabel]];
NSString *basePath = [[dropDestination path]
stringByAppendingPathComponent:fileName];
NSString *path = [basePath stringByAppendingPathExtension:@"pdf"];
NSFileManager *fm = [NSFileManager defaultManager];
@@ -353,7 +353,7 @@
if (idx != NSNotFound) {
SKSnapshotWindowController *snapshot = [self
objectInSnapshotsAtIndex:idx];
PDFPage *page = [[pdfView document] pageAtIndex:[snapshot
pageIndex]];
- NSString *fileName = [NSString stringWithFormat:@"%@ - Page %@",
([[[self document] displayName] stringByDeletingPathExtension] ?: @"PDF"),
[page displayLabel]];
+ NSString *fileName = [NSString
stringWithFormat:NSLocalizedString(@"%@ %C Page %@", @""), ([[[self document]
displayName] stringByDeletingPathExtension] ?: @"PDF"), '-', [page
displayLabel]];
NSString *basePath = [[dropDestination path]
stringByAppendingPathComponent:fileName];
NSString *path = [basePath stringByAppendingPathExtension:@"tiff"];
NSFileManager *fm = [NSFileManager defaultManager];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit