Revision: 12289
http://sourceforge.net/p/skim-app/code/12289
Author: hofman
Date: 2021-04-12 22:11:08 +0000 (Mon, 12 Apr 2021)
Log Message:
-----------
Remove SKLocalization files
Modified Paths:
--------------
trunk/Skim.xcodeproj/project.pbxproj
Removed Paths:
-------------
trunk/SKLocalization.h
trunk/SKLocalization.m
Deleted: trunk/SKLocalization.h
===================================================================
--- trunk/SKLocalization.h 2021-04-12 22:10:10 UTC (rev 12288)
+++ trunk/SKLocalization.h 2021-04-12 22:11:08 UTC (rev 12289)
@@ -1,46 +0,0 @@
-//
-// SKLocalization.h
-// Skim
-//
-// Created by Christiaan Hofman on 3/13/10.
-/*
- This software is Copyright (c) 2010-2021
- Christiaan Hofman. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions
- are met:
-
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
-
- - Neither the name of Christiaan Hofman nor the names of any
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import <Cocoa/Cocoa.h>
-
-
-@interface NSObject (SKLocalization)
-
-- (void)localizeStringsFromTable:(NSString *)table;
-
-@end
Deleted: trunk/SKLocalization.m
===================================================================
--- trunk/SKLocalization.m 2021-04-12 22:10:10 UTC (rev 12288)
+++ trunk/SKLocalization.m 2021-04-12 22:11:08 UTC (rev 12289)
@@ -1,238 +0,0 @@
-//
-// SKLocalization.m
-// Skim
-//
-// Created by Christiaan Hofman on 3/13/10.
-/*
- This software is Copyright (c) 2010-2021
- Christiaan Hofman. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions
- are met:
-
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
-
- - Neither the name of Christiaan Hofman nor the names of any
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import "SKLocalization.h"
-
-static NSString *localizedStringFromTable(NSString *string, NSString *table) {
- if ([string length] == 0)
- return nil;
- // we may want to check for missing localized strings when DEBUG
- return [[NSBundle mainBundle] localizedStringForKey:string value:@""
table:table];
-}
-
-#define LOCALIZE_PROPERTY_FROM_TABLE(property, table) \
-do { \
- NSString *value = localizedStringFromTable(property, table); \
- if (value) property = value; \
-} while (0)
-
-#define localizeTitleForObjectFromTable(object, table)
LOCALIZE_PROPERTY_FROM_TABLE(object.title, table)
-#define localizeAlternateTitleForObjectFromTable(object, table)
LOCALIZE_PROPERTY_FROM_TABLE(object.alternateTitle, table)
-#define localizeStringValueForObjectFromTable(object, table)
LOCALIZE_PROPERTY_FROM_TABLE(object.stringValue, table)
-#define localizePlaceholderStringForObjectFromTable(object, table)
LOCALIZE_PROPERTY_FROM_TABLE(object.placeholderString, table)
-#define localizeLabelForObjectFromTable(object, table)
LOCALIZE_PROPERTY_FROM_TABLE(object.label, table)
-#define localizeToolTipForObjectFromTable(object, table)
LOCALIZE_PROPERTY_FROM_TABLE(object.toolTip, table)
-
-@implementation NSObject (SKLocalization)
-
-- (void)localizeStringsFromTable:(NSString *)table {}
-
-@end
-
-
-@implementation NSArray (SKLocalization)
-
-- (void)localizeStringsFromTable:(NSString *)table {
- [self makeObjectsPerformSelector:_cmd withObject:table];
-}
-
-@end
-
-
-@implementation NSButtonCell (SKLocalization)
-
-- (void)localizeStringsFromTable:(NSString *)table {
- localizeTitleForObjectFromTable(self, table);
- localizeAlternateTitleForObjectFromTable(self, table);
-}
-
-@end
-
-
-@implementation NSPopUpButtonCell (SKLocalization)
-
-- (void)localizeStringsFromTable:(NSString *)table {
- // don't call super because the title is taken from the menu
- [[self menu] localizeStringsFromTable:table];
-}
-
-@end
-
-
-@implementation NSSegmentedCell (SKLocalization)
-
-- (void)localizeStringsFromTable:(NSString *)table {
- NSUInteger i, iMax = [self segmentCount];
- NSString *string;
- for (i = 0; i < iMax; i++) {
- if ((string = localizedStringFromTable([self labelForSegment:i],
table)))
- [self setLabel:string forSegment:i];
- if ((string = localizedStringFromTable([self toolTipForSegment:i],
table)))
- [self setToolTip:string forSegment:i];
- [[self menuForSegment:i] localizeStringsFromTable:table];
- }
-}
-
-@end
-
-
-@implementation NSTextFieldCell (SKLocalization)
-
-- (void)localizeStringsFromTable:(NSString *)table {
- localizeStringValueForObjectFromTable(self, table);
- localizePlaceholderStringForObjectFromTable(self, table);
-}
-
-@end
-
-
-@implementation NSView (SKLocalization)
-
-- (void)localizeStringsFromTable:(NSString *)table {
- localizeToolTipForObjectFromTable(self, table);
- [[self subviews] localizeStringsFromTable:table];
-}
-
-@end
-
-
-@implementation NSBox (SKLocalization)
-
-- (void)localizeStringsFromTable:(NSString *)table {
- [super localizeStringsFromTable:table];
- localizeTitleForObjectFromTable(self, table);
-}
-
-@end
-
-
-@implementation NSControl (SKLocalization)
-
-- (void)localizeStringsFromTable:(NSString *)table {
- [super localizeStringsFromTable:table];
- [[self cell] localizeStringsFromTable:table];
-}
-
-@end
-
-
-@implementation NSMatrix (SKLocalization)
-
-- (void)localizeStringsFromTable:(NSString *)table {
- [super localizeStringsFromTable:table];
- NSArray *cells = [self cells];
- NSString *toolTip;
- [cells localizeStringsFromTable:table];
- for (id cell in cells) {
- if ((toolTip = localizedStringFromTable([self toolTipForCell:cell],
table)))
- [self setToolTip:toolTip forCell:cell];
- }
-}
-
-@end
-
-
-@implementation NSTabView (SKLocalization)
-
-- (void)localizeStringsFromTable:(NSString *)table {
- [super localizeStringsFromTable:table];
- [[self tabViewItems] localizeStringsFromTable:table];
-}
-
-@end
-
-
-@implementation NSTabViewItem (SKLocalization)
-
-- (void)localizeStringsFromTable:(NSString *)table {
- localizeLabelForObjectFromTable(self, table);
- [[self view] localizeStringsFromTable:table];
-}
-
-@end
-
-
-@implementation NSTableView (SKLocalization)
-
-- (void)localizeStringsFromTable:(NSString *)table {
- [super localizeStringsFromTable:table];
- [[self tableColumns] localizeStringsFromTable:table];
- [[self cornerView] localizeStringsFromTable:table];
-}
-
-@end
-
-
-@implementation NSTableColumn (SKLocalization)
-
-- (void)localizeStringsFromTable:(NSString *)table {
- [[self dataCell] localizeStringsFromTable:table];
- [[self headerCell] localizeStringsFromTable:table];
-}
-
-@end
-
-
-@implementation NSMenu (SKLocalization)
-
-- (void)localizeStringsFromTable:(NSString *)table {
- localizeTitleForObjectFromTable(self, table);
- [[self itemArray] localizeStringsFromTable:table];
-}
-
-@end
-
-
-@implementation NSMenuItem (SKLocalization)
-
-- (void)localizeStringsFromTable:(NSString *)table {
- localizeTitleForObjectFromTable(self, table);
- [[self submenu] localizeStringsFromTable:table];
-}
-
-@end
-
-
-@implementation NSWindow (SKLocalization)
-
-- (void)localizeStringsFromTable:(NSString *)table {
- localizeTitleForObjectFromTable(self, table);
- [[self contentView] localizeStringsFromTable:table];
-}
-
-@end
Modified: trunk/Skim.xcodeproj/project.pbxproj
===================================================================
--- trunk/Skim.xcodeproj/project.pbxproj 2021-04-12 22:10:10 UTC (rev
12288)
+++ trunk/Skim.xcodeproj/project.pbxproj 2021-04-12 22:11:08 UTC (rev
12289)
@@ -274,7 +274,6 @@
CEEC0A0A0DCB2594003DD9B6 /* SKMainWindowController_UI.m in
Sources */ = {isa = PBXBuildFile; fileRef = CEEC0A090DCB2594003DD9B6 /*
SKMainWindowController_UI.m */; };
CEECD61C12E9E30B00B9E35E /* NSError_SKExtensions.m in Sources
*/ = {isa = PBXBuildFile; fileRef = CEECD61B12E9E30B00B9E35E /*
NSError_SKExtensions.m */; };
CEEE7C520E7D3F2000B7B208 /* PDFAnnotationInk_SKExtensions.m in
Sources */ = {isa = PBXBuildFile; fileRef = CEEE7C510E7D3F2000B7B208 /*
PDFAnnotationInk_SKExtensions.m */; };
- CEF60CE3114C01CA0074ACC4 /* SKLocalization.m in Sources */ =
{isa = PBXBuildFile; fileRef = CEF60CE2114C01CA0074ACC4 /* SKLocalization.m */;
};
CEF60D6A114C0DA60074ACC4 /* TransitionSheet.strings in
Resources */ = {isa = PBXBuildFile; fileRef = CEF60D40114C0DA60074ACC4 /*
TransitionSheet.strings */; };
CEF60D6C114C0DA60074ACC4 /* ScaleSheet.strings in Resources */
= {isa = PBXBuildFile; fileRef = CEF60D44114C0DA60074ACC4 /* ScaleSheet.strings
*/; };
CEF60D6D114C0DA60074ACC4 /* ReleaseNotes.strings in Resources
*/ = {isa = PBXBuildFile; fileRef = CEF60D46114C0DA60074ACC4 /*
ReleaseNotes.strings */; };
@@ -1155,8 +1154,6 @@
CEEE7C500E7D3F2000B7B208 /* PDFAnnotationInk_SKExtensions.h */
= {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType =
sourcecode.c.h; path = PDFAnnotationInk_SKExtensions.h; sourceTree = "<group>";
};
CEEE7C510E7D3F2000B7B208 /* PDFAnnotationInk_SKExtensions.m */
= {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType =
sourcecode.c.objc; path = PDFAnnotationInk_SKExtensions.m; sourceTree =
"<group>"; };
CEF1D626117EFB760069E249 /* applehelp.init */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path =
applehelp.init; sourceTree = "<group>"; };
- CEF60CE1114C01CA0074ACC4 /* SKLocalization.h */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path =
SKLocalization.h; sourceTree = "<group>"; };
- CEF60CE2114C01CA0074ACC4 /* SKLocalization.m */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path
= SKLocalization.m; sourceTree = "<group>"; };
CEF60D41114C0DA60074ACC4 /* en */ = {isa = PBXFileReference;
fileEncoding = 10; lastKnownFileType = text.plist.strings; name = en; path =
en.lproj/TransitionSheet.strings; sourceTree = "<group>"; };
CEF60D45114C0DA60074ACC4 /* en */ = {isa = PBXFileReference;
fileEncoding = 10; lastKnownFileType = text.plist.strings; name = en; path =
en.lproj/ScaleSheet.strings; sourceTree = "<group>"; };
CEF60D47114C0DA60074ACC4 /* en */ = {isa = PBXFileReference;
fileEncoding = 10; lastKnownFileType = text.plist.strings; name = en; path =
en.lproj/ReleaseNotes.strings; sourceTree = "<group>"; };
@@ -2011,8 +2008,6 @@
CE455393111DA4290060CAC9 /*
SKImageToolTipContext.m */,
CE91C7942449F56600D04039 /* SKFileShare.h */,
CE91C7952449F56600D04039 /* SKFileShare.m */,
- CEF60CE1114C01CA0074ACC4 /* SKLocalization.h */,
- CEF60CE2114C01CA0074ACC4 /* SKLocalization.m */,
CE46458F0DF8140200CFD8D2 /*
SKNumberArrayFormatter.h */,
CE4645900DF8140200CFD8D2 /*
SKNumberArrayFormatter.m */,
CE121AC61180644A00951425 /* SKScriptMenu.h */,
@@ -2801,7 +2796,6 @@
CE099663112577A000EDB88F /* SKNotesPage.m in
Sources */,
CE91C7962449F56600D04039 /* SKFileShare.m in
Sources */,
CE24875C112C9651006B4FA5 /*
NSFont_SKExtensions.m in Sources */,
- CEF60CE3114C01CA0074ACC4 /* SKLocalization.m in
Sources */,
CE454B51226E33150034FD6B /*
SKHighlightingTableRowView.m in Sources */,
CEF60F28114C53B40074ACC4 /*
SKGeneralPreferences.m in Sources */,
CEF60F2C114C53DC0074ACC4 /*
SKDisplayPreferences.m in Sources */,
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit