diff --git a/Source/Installer/AppDelegate.h b/Source/Installer/AppDelegate.h new file mode 100644 index 00000000..a1a30d9f --- /dev/null +++ b/Source/Installer/AppDelegate.h @@ -0,0 +1,45 @@ +// +// AppDelegate.h +// +// Copyright (c) 2011-2012 The McBopomofo Project. +// +// Permission is hereby granted, free of charge, to any person +// obtaining a copy of this software and associated documentation +// files (the "Software"), to deal in the Software without +// restriction, including without limitation the rights to use, +// copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the +// Software is furnished to do so, subject to the following +// conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +// OTHER DEALINGS IN THE SOFTWARE. +// + +#import + +@interface AppDelegate : NSWindowController +{ +@protected + NSString *_installingVersion; + NSString *_currentVersion; + NSButton *_installButton; + NSButton *_cancelButton; + NSTextView *_textView; +} +- (IBAction)agreeAndInstallAction:(id)sender; +- (IBAction)cancelAction:(id)sender; + +@property (assign) IBOutlet NSButton *installButton; +@property (assign) IBOutlet NSButton *cancelButton; +@property (assign) IBOutlet NSTextView *textView; +@end diff --git a/Source/Installer/AppDelegate.m b/Source/Installer/AppDelegate.m new file mode 100644 index 00000000..26b84b73 --- /dev/null +++ b/Source/Installer/AppDelegate.m @@ -0,0 +1,120 @@ +// +// AppDelegate.m +// +// Copyright (c) 2011-2012 The McBopomofo Project. +// +// Permission is hereby granted, free of charge, to any person +// obtaining a copy of this software and associated documentation +// files (the "Software"), to deal in the Software without +// restriction, including without limitation the rights to use, +// copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the +// Software is furnished to do so, subject to the following +// conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +// OTHER DEALINGS IN THE SOFTWARE. +// + +#import "AppDelegate.h" + +static NSString *const kTargetBin = @"McBopomofo"; +static NSString *const kTargetType = @"app"; +static NSString *const kTargetBundle = @"McBopomofo.app"; +static NSString *const kDestinationPartial = @"~/Library/Input Methods/"; +static NSString *const kTargetPartialPath = @"~/Library/Input Methods/McBopomofo.app"; +static NSString *const kTargetFullBinPartialPath = @"~/Library/Input Methods/McBopomofo.app/Contents/MacOS/McBopomofo"; + +@implementation AppDelegate +@synthesize installButton = _installButton; +@synthesize cancelButton = _cancelButton; +@synthesize textView = _textView; + +- (void)dealloc +{ + [_installingVersion release]; + [_currentVersion release]; + [super dealloc]; +} + +- (void)applicationDidFinishLaunching:(NSNotification *)aNotification +{ + [[self window] center]; + [[self window] orderFront:self]; + [[NSApplication sharedApplication] activateIgnoringOtherApps:YES]; + + NSAttributedString *attrStr = [[NSAttributedString alloc] initWithRTF:[NSData dataWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"License" ofType:@"rtf"]] documentAttributes:NULL]; + + [[self.textView textStorage] setAttributedString:attrStr]; + + NSBundle *installingBundle = [NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:kTargetBin ofType:kTargetType]]; + _installingVersion = [[[installingBundle infoDictionary] objectForKey:@"CFBundleShortVersionString"] retain]; + + [[self window] setTitle:[NSString stringWithFormat:NSLocalizedString(@"%@ (for version %@)", nil), [[self window] title], _installingVersion]]; + + if ([[NSFileManager defaultManager] fileExistsAtPath:[kTargetPartialPath stringByExpandingTildeInPath]]) { + NSBundle *currentBundle = [NSBundle bundleWithPath:[kTargetPartialPath stringByExpandingTildeInPath]]; + _currentVersion = [[[currentBundle infoDictionary] objectForKey:@"CFBundleShortVersionString"] retain]; + } + + if (_currentVersion && [_currentVersion compare:_installingVersion] == NSOrderedAscending) { + [_installButton setTitle:NSLocalizedString(@"Agree and Upgrade", nil)]; + } +} + +- (IBAction)agreeAndInstallAction:(id)sender +{ + [_cancelButton setEnabled:NO]; + [_installButton setEnabled:NO]; + + if ([[NSFileManager defaultManager] fileExistsAtPath:[kTargetPartialPath stringByExpandingTildeInPath]]) { + // http://www.cocoadev.com/index.pl?MoveToTrash + NSString *sourceDir = [kDestinationPartial stringByExpandingTildeInPath]; + NSString *trashDir = [NSHomeDirectory() stringByAppendingPathComponent:@".Trash"]; + NSInteger tag; + + [[NSWorkspace sharedWorkspace] performFileOperation:NSWorkspaceRecycleOperation source:sourceDir destination:trashDir files:[NSArray arrayWithObject:kTargetBundle] tag:&tag]; + (void)tag; + + NSTask *killTask = [NSTask launchedTaskWithLaunchPath:@"/usr/bin/killall" arguments:[NSArray arrayWithObjects: @"-9", kTargetBin, nil]]; + [killTask waitUntilExit]; + } + + NSTask *cpTask = [NSTask launchedTaskWithLaunchPath:@"/bin/cp" arguments:[NSArray arrayWithObjects:@"-R", [[NSBundle mainBundle] pathForResource:kTargetBin ofType:kTargetType], [kDestinationPartial stringByExpandingTildeInPath], nil]]; + [cpTask waitUntilExit]; + if ([cpTask terminationStatus] != 0) { + NSRunAlertPanel(NSLocalizedString(@"Install Failed", nil), NSLocalizedString(@"Cannot copy the file to the destination.", nil), NSLocalizedString(@"Cancel", nil), nil, nil); + [NSApp terminate:self]; + } + + NSTask *installTask = [NSTask launchedTaskWithLaunchPath:[kTargetFullBinPartialPath stringByExpandingTildeInPath] arguments:[NSArray arrayWithObjects:@"install", nil]]; + [installTask waitUntilExit]; + if ([installTask terminationStatus] != 0) { + NSRunAlertPanel(NSLocalizedString(@"Install Failed", nil), NSLocalizedString(@"Cannot activate the input method.", nil), NSLocalizedString(@"Cancel", nil), nil, nil); + [NSApp terminate:self]; + } + + NSRunAlertPanel(NSLocalizedString(@"Installation Successful", nil), NSLocalizedString(@"McBopomofo is ready to use.", nil), NSLocalizedString(@"OK", nil), nil, nil); + [NSApp terminate:self]; +} + + +- (IBAction)cancelAction:(id)sender +{ + [NSApp terminate:self]; +} + +- (void)windowWillClose:(NSNotification *)notification +{ + [NSApp terminate:self]; +} +@end diff --git a/Source/Installer/Installer-Info.plist b/Source/Installer/Installer-Info.plist new file mode 100644 index 00000000..bca69ab2 --- /dev/null +++ b/Source/Installer/Installer-Info.plist @@ -0,0 +1,36 @@ + + + + + CFBundleDevelopmentRegion + en + LSHasLocalizedDisplayName + + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIconFile + Lettuce + CFBundleIdentifier + org.openvanilla.McBopomofo.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 0.9.4 + CFBundleVersion + 1 + CFBundleSignature + ???? + LSMinimumSystemVersion + ${MACOSX_DEPLOYMENT_TARGET} + NSHumanReadableCopyright + Copyright © 2011-2012 The OpenVanilla Project. All rights reserved. + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + diff --git a/Source/Installer/Installer-Prefix.pch b/Source/Installer/Installer-Prefix.pch new file mode 100644 index 00000000..2324995c --- /dev/null +++ b/Source/Installer/Installer-Prefix.pch @@ -0,0 +1,7 @@ +// +// Prefix header for all source files of the 'Installer' target in the 'Installer' project +// + +#ifdef __OBJC__ + #import +#endif diff --git a/Source/Installer/en.lproj/InfoPlist.strings b/Source/Installer/en.lproj/InfoPlist.strings new file mode 100644 index 00000000..820b6553 --- /dev/null +++ b/Source/Installer/en.lproj/InfoPlist.strings @@ -0,0 +1,4 @@ +/* Localized versions of Info.plist keys */ + +CFBundleName = "Install McBopomofo"; +NSHumanReadableCopyright = "Copyright © 2011-2012 The OpenVanilla Project.\nAll rights reserved."; diff --git a/Source/Installer/en.lproj/License.rtf b/Source/Installer/en.lproj/License.rtf new file mode 100644 index 00000000..197f82bc --- /dev/null +++ b/Source/Installer/en.lproj/License.rtf @@ -0,0 +1,16 @@ +{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 +{\fonttbl\f0\fnil\fcharset0 LucidaGrande;} +{\colortbl;\red255\green255\blue255;} +\margl1440\margr1440\vieww16860\viewh12620\viewkind0 +\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural + +\f0\b\fs36 \cf0 McBopomofo License Agreement +\b0\fs24 \ +\ +Copyright \'a9 2011-2012 The McBopomofo Project.\ +\ +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \'93Software\'94), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\ +\ +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\ +\ +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.} \ No newline at end of file diff --git a/Source/Installer/en.lproj/Localizable.strings b/Source/Installer/en.lproj/Localizable.strings new file mode 100644 index 00000000..97c4125d --- /dev/null +++ b/Source/Installer/en.lproj/Localizable.strings @@ -0,0 +1,27 @@ +/* No comment provided by engineer. */ +"%@ (for version %@)" = "%1$@ (for version %2$@)"; + +/* No comment provided by engineer. */ +"Agree and Upgrade" = "Agree and Upgrade"; + +/* No comment provided by engineer. */ +"Cancel" = "Cancel"; + +/* No comment provided by engineer. */ +"Cannot activate the input method." = "Cannot activate the input method."; + +/* No comment provided by engineer. */ +"Cannot copy the file to the destination." = "Cannot copy the file to the destination."; + +/* No comment provided by engineer. */ +"Install Failed" = "Install Failed"; + +/* No comment provided by engineer. */ +"Installation Successful" = "Installation Successful"; + +/* No comment provided by engineer. */ +"OK" = "OK"; + +/* No comment provided by engineer. */ +"McBopomofo is ready to use." = "McBopomofo is ready to use."; + diff --git a/Source/Installer/en.lproj/MainMenu.xib b/Source/Installer/en.lproj/MainMenu.xib new file mode 100644 index 00000000..7ad5912e --- /dev/null +++ b/Source/Installer/en.lproj/MainMenu.xib @@ -0,0 +1,995 @@ + + + + 1060 + 11E53 + 2549 + 1138.47 + 569.00 + + com.apple.InterfaceBuilder.CocoaPlugin + 2549 + + + NSButton + NSButtonCell + NSCustomObject + NSMenu + NSMenuItem + NSScrollView + NSScroller + NSTextField + NSTextFieldCell + NSTextView + NSView + NSWindowTemplate + + + com.apple.InterfaceBuilder.CocoaPlugin + + + PluginDependencyRecalculationVersion + + + + + NSApplication + + + FirstResponder + + + NSApplication + + + AMainMenu + + + + McBopomofo Installer + + 1048576 + 2147483647 + + NSImage + NSMenuCheckmark + + + NSImage + NSMenuMixedState + + submenuAction: + + McBopomofo Installer + + + + About Install McBopomofo + + 2147483647 + + + + + + YES + YES + + + 1048576 + 2147483647 + + + + + + Services + + 1048576 + 2147483647 + + + submenuAction: + + Services + + _NSServicesMenu + + + + + YES + YES + + + 1048576 + 2147483647 + + + + + + Hide Install McBopomofo + h + 1048576 + 2147483647 + + + + + + Hide Others + h + 1572864 + 2147483647 + + + + + + Show All + + 1048576 + 2147483647 + + + + + + YES + YES + + + 1048576 + 2147483647 + + + + + + Quit Install McBopomofo + q + 1048576 + 2147483647 + + + + + _NSAppleMenu + + + + + File + + 1048576 + 2147483647 + + + submenuAction: + + File + + + + Close + w + 1048576 + 2147483647 + + + + + + + + + Edit + + 1048576 + 2147483647 + + + + + + Format + + 2147483647 + + + + + + View + + 1048576 + 2147483647 + + + + + + Window + + 1048576 + 2147483647 + + + + + + Help + + 2147483647 + + + + + _NSMainMenu + + + 3 + 2 + {{335, 390}, {640, 360}} + 1954021376 + McBopomofo Installer + NSWindow + + + + + 256 + + + + 256 + + + + 2304 + + + + 2322 + {583, 14} + + + + _NS:13 + + + + + + + + + + + + 134 + + + + 583 + 1 + + + 12261 + 0 + + + 3 + MQA + + + + 6 + System + selectedTextBackgroundColor + + 3 + MC42NjY2NjY2NjY3AA + + + + 6 + System + selectedTextColor + + 3 + MAA + + + + + + + 1 + MCAwIDEAA + + + {8, -8} + 13 + + + + + + 1 + + 6 + {598, 10000000} + {223, 0} + + + + {{1, 1}, {583, 249}} + + + + _NS:11 + + + + {4, 5} + + 79691776 + + + + + + file://localhost/Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Resources/DVTIbeamCursor.tiff + + + + + 3 + MCAwAA + + + + 4 + + + + 256 + {{584, 1}, {15, 249}} + + + + _NS:84 + + _doScroller: + 1 + 0.85256409645080566 + + + + -2147483392 + {{-100, -100}, {87, 18}} + + + + _NS:33 + 1 + + _doScroller: + 1 + 0.94565218687057495 + + + {{20, 60}, {600, 251}} + + + + _NS:9 + 133138 + + + + + + + 268 + {{460, 12}, {166, 32}} + + + + _NS:9 + YES + + 67239424 + 134217728 + Agree and Install + + LucidaGrande + 13 + 1044 + + _NS:9 + + -2038284033 + 129 + + + 200 + 25 + + + + + 268 + {{330, 12}, {130, 32}} + + + + _NS:9 + YES + + 67239424 + 134217728 + Cancel + + _NS:9 + + -2038284033 + 129 + + Gw + 200 + 25 + + + + + 268 + {{17, 323}, {559, 17}} + + + + _NS:1505 + YES + + 68288064 + 272630784 + Welcome to the McBopomofo Installer! Please read the following Software Licence: + + _NS:1505 + + + 6 + System + controlColor + + + + 6 + System + controlTextColor + + + + + + + 268 + {{17, 19}, {337, 17}} + + + + _NS:1505 + YES + + 68288064 + 272630784 + By installing the software I agree to the terms above. + + LucidaGrande + 11 + 3100 + + _NS:1505 + + + + + + + {640, 360} + + + + + {{0, 0}, {1440, 878}} + {10000000000000, 10000000000000} + NO + + + AppDelegate + + + NSFontManager + + + + + + + terminate: + + + + 449 + + + + orderFrontStandardAboutPanel: + + + + 142 + + + + delegate + + + + 495 + + + + performClose: + + + + 193 + + + + hide: + + + + 367 + + + + hideOtherApplications: + + + + 368 + + + + unhideAllApplications: + + + + 370 + + + + delegate + + + + 706 + + + + window + + + + 532 + + + + textView + + + + 705 + + + + cancelAction: + + + + 707 + + + + agreeAndInstallAction: + + + + 708 + + + + installButton + + + + 709 + + + + cancelButton + + + + 710 + + + + + + 0 + + + + + + -2 + + + File's Owner + + + -1 + + + First Responder + + + -3 + + + Application + + + 29 + + + + + + + + + + + + + + 19 + + + + + + 56 + + + + + + + + 217 + + + + + + 83 + + + + + + + + 81 + + + + + + + + 73 + + + + + 57 + + + + + + + + + + + + + + + + 58 + + + + + 134 + + + + + 150 + + + + + 136 + + + + + 144 + + + + + 236 + + + + + 131 + + + + + + + + 149 + + + + + 145 + + + + + 130 + + + + + 295 + + + + + + 371 + + + + + + + + 372 + + + + + + + + + + + + 375 + + + + + + 420 + + + + + 490 + + + + + + 494 + + + + + 536 + + + + + + + + + + 539 + + + + + 538 + + + + + 537 + + + + + 575 + + + + + + + + 576 + + + + + 592 + + + + + + + + 593 + + + + + 623 + + + + + + + + 624 + + + + + 688 + + + + + + + + 689 + + + + + + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + {{380, 496}, {480, 360}} + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + + + + + 710 + + + + + AppDelegate + NSObject + + window + NSWindow + + + window + + window + NSWindow + + + + IBProjectSource + ./Classes/AppDelegate.h + + + + + 0 + IBCocoaFramework + + com.apple.InterfaceBuilder.CocoaPlugin.macosx + + + YES + 3 + + {11, 11} + {10, 3} + + + diff --git a/Source/Installer/main.m b/Source/Installer/main.m new file mode 100644 index 00000000..103bf28f --- /dev/null +++ b/Source/Installer/main.m @@ -0,0 +1,33 @@ +// +// main.m +// +// Copyright (c) 2011-2012 The McBopomofo Project. +// +// Permission is hereby granted, free of charge, to any person +// obtaining a copy of this software and associated documentation +// files (the "Software"), to deal in the Software without +// restriction, including without limitation the rights to use, +// copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the +// Software is furnished to do so, subject to the following +// conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +// OTHER DEALINGS IN THE SOFTWARE. +// + +#import + +int main(int argc, char *argv[]) +{ + return NSApplicationMain(argc, (const char **)argv); +} diff --git a/Source/Installer/zh-Hant.lproj/InfoPlist.strings b/Source/Installer/zh-Hant.lproj/InfoPlist.strings new file mode 100644 index 00000000..ec16a10d --- /dev/null +++ b/Source/Installer/zh-Hant.lproj/InfoPlist.strings @@ -0,0 +1,4 @@ +/* Localized versions of Info.plist keys */ + +CFBundleName = "安裝小麥注音"; +NSHumanReadableCopyright = "Copyright © 2011-2012 The OpenVanilla Project.\nAll rights reserved."; diff --git a/Source/Installer/zh-Hant.lproj/License.rtf b/Source/Installer/zh-Hant.lproj/License.rtf new file mode 100644 index 00000000..197f82bc --- /dev/null +++ b/Source/Installer/zh-Hant.lproj/License.rtf @@ -0,0 +1,16 @@ +{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 +{\fonttbl\f0\fnil\fcharset0 LucidaGrande;} +{\colortbl;\red255\green255\blue255;} +\margl1440\margr1440\vieww16860\viewh12620\viewkind0 +\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural + +\f0\b\fs36 \cf0 McBopomofo License Agreement +\b0\fs24 \ +\ +Copyright \'a9 2011-2012 The McBopomofo Project.\ +\ +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \'93Software\'94), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\ +\ +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\ +\ +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.} \ No newline at end of file diff --git a/Source/Installer/zh-Hant.lproj/Localizable.strings b/Source/Installer/zh-Hant.lproj/Localizable.strings new file mode 100644 index 00000000..87214d52 --- /dev/null +++ b/Source/Installer/zh-Hant.lproj/Localizable.strings @@ -0,0 +1,27 @@ +/* No comment provided by engineer. */ +"%@ (for version %@)" = "%1$@ (%2$@ 版)"; + +/* No comment provided by engineer. */ +"Agree and Upgrade" = "同意並升級"; + +/* No comment provided by engineer. */ +"Cancel" = "取消"; + +/* No comment provided by engineer. */ +"Cannot activate the input method." = "無法啟用輸入法。"; + +/* No comment provided by engineer. */ +"Cannot copy the file to the destination." = "無法將輸入法拷貝至目的地。"; + +/* No comment provided by engineer. */ +"Install Failed" = "安裝失敗"; + +/* No comment provided by engineer. */ +"Installation Successful" = "安裝成功"; + +/* No comment provided by engineer. */ +"OK" = "好"; + +/* No comment provided by engineer. */ +"McBopomofo is ready to use." = "小麥注音輸入法安裝成功"; + diff --git a/Source/Installer/zh-Hant.lproj/MainMenu.xib b/Source/Installer/zh-Hant.lproj/MainMenu.xib new file mode 100644 index 00000000..9d51ddb8 --- /dev/null +++ b/Source/Installer/zh-Hant.lproj/MainMenu.xib @@ -0,0 +1,994 @@ + + + + 1060 + 11E53 + 2549 + 1138.47 + 569.00 + + com.apple.InterfaceBuilder.CocoaPlugin + 2549 + + + NSButton + NSButtonCell + NSCustomObject + NSMenu + NSMenuItem + NSScrollView + NSScroller + NSTextField + NSTextFieldCell + NSTextView + NSView + NSWindowTemplate + + + com.apple.InterfaceBuilder.CocoaPlugin + + + PluginDependencyRecalculationVersion + + + + + NSApplication + + + FirstResponder + + + NSApplication + + + AMainMenu + + + + 安裝小麥注音 + + 1048576 + 2147483647 + + NSImage + NSMenuCheckmark + + + NSImage + NSMenuMixedState + + submenuAction: + + 安裝小麥注音 + + + + 關於小麥注音安裝程式 + + 2147483647 + + + + + + YES + YES + + + 1048576 + 2147483647 + + + + + + 服務 + + 1048576 + 2147483647 + + + submenuAction: + + 服務 + + _NSServicesMenu + + + + + YES + YES + + + 1048576 + 2147483647 + + + + + + 隱藏小麥注音安裝程式 + h + 1048576 + 2147483647 + + + + + + 隱藏其他程式 + h + 1572864 + 2147483647 + + + + + + 顯示所有程式 + + 1048576 + 2147483647 + + + + + + YES + YES + + + 1048576 + 2147483647 + + + + + + 離開小麥注音安裝程式 + q + 1048576 + 2147483647 + + + + + _NSAppleMenu + + + + + 檔案 + + 1048576 + 2147483647 + + + submenuAction: + + 檔案 + + + + 關閉 + w + 1048576 + 2147483647 + + + + + + + + + Edit + + 1048576 + 2147483647 + + + + + + Format + + 2147483647 + + + + + + View + + 1048576 + 2147483647 + + + + + + Window + + 1048576 + 2147483647 + + + + + + Help + + 2147483647 + + + + + _NSMainMenu + + + 3 + 2 + {{335, 390}, {640, 360}} + 1954021376 + 小麥注音輸入法安裝程式 + NSWindow + + + + + 256 + + + + 256 + + + + 2304 + + + + 2322 + {583, 14} + + + + _NS:13 + + + + + + + + + + + + 134 + + + + 583 + 1 + + + 12261 + 0 + + + 3 + MQA + + + + 6 + System + selectedTextBackgroundColor + + 3 + MC42NjY2NjY2NjY3AA + + + + 6 + System + selectedTextColor + + 3 + MAA + + + + + + + 1 + MCAwIDEAA + + + {8, -8} + 13 + + + + + + 1 + + 6 + {598, 10000000} + {223, 0} + + + + {{1, 1}, {583, 249}} + + + + _NS:11 + + + + {4, 5} + + 79691776 + + + + + + file://localhost/Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Resources/DVTIbeamCursor.tiff + + + + + 3 + MCAwAA + + + + 4 + + + + 256 + {{584, 1}, {15, 249}} + + + + _NS:84 + + _doScroller: + 1 + 0.85256409645080566 + + + + -2147483392 + {{-100, -100}, {87, 18}} + + + + _NS:33 + 1 + + _doScroller: + 1 + 0.94565218687057495 + + + {{20, 60}, {600, 251}} + + + + _NS:9 + 133138 + + + + + + + 268 + {{460, 12}, {166, 32}} + + + _NS:9 + YES + + 67239424 + 134217728 + 同意安裝 + + LucidaGrande + 13 + 1044 + + _NS:9 + + -2038284033 + 129 + + + 200 + 25 + + + + + 268 + {{330, 12}, {130, 32}} + + + + _NS:9 + YES + + 67239424 + 134217728 + 取消 + + _NS:9 + + -2038284033 + 129 + + Gw + 200 + 25 + + + + + 268 + {{17, 323}, {559, 17}} + + + + _NS:1505 + YES + + 68288064 + 272630784 + 歡迎您安裝「小麥注音輸入法」!在安裝之前,請您閱讀本軟體的使用授權: + + _NS:1505 + + + 6 + System + controlColor + + + + 6 + System + controlTextColor + + + + + + + 268 + {{17, 19}, {337, 17}} + + + + _NS:1505 + YES + + 68288064 + 272630784 + 點選「同意安裝」,表示您同意本軟體的使用授權。 + + LucidaGrande + 11 + 3100 + + _NS:1505 + + + + + + + {640, 360} + + + + + {{0, 0}, {1440, 878}} + {10000000000000, 10000000000000} + NO + + + AppDelegate + + + NSFontManager + + + + + + + terminate: + + + + 449 + + + + orderFrontStandardAboutPanel: + + + + 142 + + + + delegate + + + + 495 + + + + performClose: + + + + 193 + + + + hide: + + + + 367 + + + + hideOtherApplications: + + + + 368 + + + + unhideAllApplications: + + + + 370 + + + + delegate + + + + 706 + + + + window + + + + 532 + + + + textView + + + + 705 + + + + cancelAction: + + + + 707 + + + + agreeAndInstallAction: + + + + 708 + + + + installButton + + + + 709 + + + + cancelButton + + + + 710 + + + + + + 0 + + + + + + -2 + + + File's Owner + + + -1 + + + First Responder + + + -3 + + + Application + + + 29 + + + + + + + + + + + + + + 19 + + + + + + 56 + + + + + + + + 217 + + + + + + 83 + + + + + + + + 81 + + + + + + + + 73 + + + + + 57 + + + + + + + + + + + + + + + + 58 + + + + + 134 + + + + + 150 + + + + + 136 + + + + + 144 + + + + + 236 + + + + + 131 + + + + + + + + 149 + + + + + 145 + + + + + 130 + + + + + 295 + + + + + + 371 + + + + + + + + 372 + + + + + + + + + + + + 375 + + + + + + 420 + + + + + 490 + + + + + + 494 + + + + + 536 + + + + + + + + + + 539 + + + + + 538 + + + + + 537 + + + + + 575 + + + + + + + + 576 + + + + + 592 + + + + + + + + 593 + + + + + 623 + + + + + + + + 624 + + + + + 688 + + + + + + + + 689 + + + + + + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + {{380, 496}, {480, 360}} + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + + + + + 710 + + + + + AppDelegate + NSObject + + window + NSWindow + + + window + + window + NSWindow + + + + IBProjectSource + ./Classes/AppDelegate.h + + + + + 0 + IBCocoaFramework + + com.apple.InterfaceBuilder.CocoaPlugin.macosx + + + YES + 3 + + {11, 11} + {10, 3} + + + diff --git a/Source/Lettuce.xcodeproj/project.pbxproj b/Source/Lettuce.xcodeproj/project.pbxproj index 34a2dfcb..3d94bc11 100644 --- a/Source/Lettuce.xcodeproj/project.pbxproj +++ b/Source/Lettuce.xcodeproj/project.pbxproj @@ -12,6 +12,13 @@ 6A42C5E113A5584F0080A121 /* PreferencesWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6A42C5E013A5584F0080A121 /* PreferencesWindowController.m */; }; 6A43430113727AC80094187C /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6A43430313727AC80094187C /* InfoPlist.strings */; }; 6A43430413727AD50094187C /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6A43430613727AD50094187C /* MainMenu.xib */; }; + 6A6BE33615CA257A0075467A /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6A8515B9137277DB0066B1BD /* Cocoa.framework */; }; + 6A6BE33C15CA257A0075467A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6A6BE33A15CA257A0075467A /* InfoPlist.strings */; }; + 6A6BE33E15CA257A0075467A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6A6BE33D15CA257A0075467A /* main.m */; }; + 6A6BE34515CA257A0075467A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6A6BE34415CA257A0075467A /* AppDelegate.m */; }; + 6A6BE34815CA257A0075467A /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6A6BE34615CA257A0075467A /* MainMenu.xib */; }; + 6A6BE35115CA26290075467A /* License.rtf in Resources */ = {isa = PBXBuildFile; fileRef = 6A6BE34D15CA26290075467A /* License.rtf */; }; + 6A6BE35215CA26290075467A /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6A6BE34F15CA26290075467A /* Localizable.strings */; }; 6A7157FF13728A5000E39343 /* SimpleLM.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6A7157FD13728A5000E39343 /* SimpleLM.cpp */; }; 6A8515BA137277DB0066B1BD /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6A8515B9137277DB0066B1BD /* Cocoa.framework */; }; 6A8515EA137279460066B1BD /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6A8515E7137279460066B1BD /* AppDelegate.m */; }; @@ -21,6 +28,8 @@ 6A8515F213727A470066B1BD /* data.txt in Resources */ = {isa = PBXBuildFile; fileRef = 6A8515F113727A470066B1BD /* data.txt */; }; 6A89E66713F7637200DDBF09 /* UpdateNotificationController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6A89E66613F7637200DDBF09 /* UpdateNotificationController.m */; }; 6A89E66A13F7647D00DDBF09 /* UpdateNotificationController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6A89E66913F7647D00DDBF09 /* UpdateNotificationController.xib */; }; + 6AB7EFA915CA2D6B006D2F21 /* Lettuce.icns in Resources */ = {isa = PBXBuildFile; fileRef = 6ADF4DC213727F1B00A7C57B /* Lettuce.icns */; }; + 6AB7EFAD15CA2DB9006D2F21 /* McBopomofo.app in Resources */ = {isa = PBXBuildFile; fileRef = 6A8515B5137277DB0066B1BD /* McBopomofo.app */; }; 6ABE50131372864300981680 /* Mandarin.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6ABE50111372864300981680 /* Mandarin.cpp */; }; 6ABEDAF313F74D9C00A0825A /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6ABEDAF513F74D9C00A0825A /* Localizable.strings */; }; 6AC45E16152413D600C5E259 /* VTCandidateController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6AC45E0B152413D600C5E259 /* VTCandidateController.m */; }; @@ -47,6 +56,13 @@ /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ + 6AB7EFAB15CA2D78006D2F21 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 6A8515AA137277C80066B1BD /* Project object */; + proxyType = 1; + remoteGlobalIDString = 6A8515B4137277DB0066B1BD; + remoteInfo = Lettuce; + }; 6ADF4DBE13727D2B00A7C57B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 6A8515AA137277C80066B1BD /* Project object */; @@ -63,6 +79,20 @@ 6A42C5E013A5584F0080A121 /* PreferencesWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PreferencesWindowController.m; sourceTree = ""; }; 6A43430213727AC80094187C /* English */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = ""; }; 6A43430513727AD50094187C /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/MainMenu.xib; sourceTree = ""; }; + 6A6BE33415CA25790075467A /* Install McBopomofo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Install McBopomofo.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 6A6BE33915CA257A0075467A /* Installer-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Installer-Info.plist"; sourceTree = ""; }; + 6A6BE33B15CA257A0075467A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 6A6BE33D15CA257A0075467A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 6A6BE33F15CA257A0075467A /* Installer-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Installer-Prefix.pch"; sourceTree = ""; }; + 6A6BE34315CA257A0075467A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 6A6BE34415CA257A0075467A /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 6A6BE34715CA257A0075467A /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/MainMenu.xib; sourceTree = ""; }; + 6A6BE34E15CA26290075467A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = en; path = en.lproj/License.rtf; sourceTree = ""; }; + 6A6BE35015CA26290075467A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = ""; }; + 6A6BE35515CA263E0075467A /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = "zh-Hant"; path = "zh-Hant.lproj/License.rtf"; sourceTree = ""; }; + 6A6BE35615CA263E0075467A /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/Localizable.strings"; sourceTree = ""; }; + 6A6BE35715CA263E0075467A /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = "zh-Hant"; path = "zh-Hant.lproj/MainMenu.xib"; sourceTree = ""; }; + 6A6BE35B15CA265B0075467A /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/InfoPlist.strings"; sourceTree = ""; }; 6A7157FD13728A5000E39343 /* SimpleLM.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SimpleLM.cpp; sourceTree = ""; }; 6A7157FE13728A5000E39343 /* SimpleLM.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SimpleLM.h; sourceTree = ""; }; 6A71580113728CD100E39343 /* BPMFBase.txt */ = {isa = PBXFileReference; lastKnownFileType = text; name = BPMFBase.txt; path = Data/BPMFBase.txt; sourceTree = ""; }; @@ -173,6 +203,14 @@ /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ + 6A6BE33115CA25790075467A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 6A6BE33615CA257A0075467A /* Cocoa.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 6A8515B2137277DB0066B1BD /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -242,6 +280,30 @@ name = Resources; sourceTree = ""; }; + 6A6BE33715CA257A0075467A /* Installer */ = { + isa = PBXGroup; + children = ( + 6A6BE34D15CA26290075467A /* License.rtf */, + 6A6BE34F15CA26290075467A /* Localizable.strings */, + 6A6BE34315CA257A0075467A /* AppDelegate.h */, + 6A6BE34415CA257A0075467A /* AppDelegate.m */, + 6A6BE34615CA257A0075467A /* MainMenu.xib */, + 6A6BE33815CA257A0075467A /* Supporting Files */, + ); + path = Installer; + sourceTree = ""; + }; + 6A6BE33815CA257A0075467A /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 6A6BE33915CA257A0075467A /* Installer-Info.plist */, + 6A6BE33A15CA257A0075467A /* InfoPlist.strings */, + 6A6BE33D15CA257A0075467A /* main.m */, + 6A6BE33F15CA257A0075467A /* Installer-Prefix.pch */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; 6A8515A8137277C80066B1BD = { isa = PBXGroup; children = ( @@ -251,6 +313,7 @@ 6A43430713727B1B0094187C /* Lettuce */, 6A43430913727B2A0094187C /* Resources */, 6ACF37C913A7BE68008798F2 /* IconMaker */, + 6A6BE33715CA257A0075467A /* Installer */, 6A8515B8137277DB0066B1BD /* Frameworks */, 6A8515B6137277DB0066B1BD /* Products */, ); @@ -261,6 +324,7 @@ children = ( 6A8515B5137277DB0066B1BD /* McBopomofo.app */, 6ACF37C213A7BE68008798F2 /* IconMaker.app */, + 6A6BE33415CA25790075467A /* Install McBopomofo.app */, ); name = Products; sourceTree = ""; @@ -443,6 +507,24 @@ /* End PBXLegacyTarget section */ /* Begin PBXNativeTarget section */ + 6A6BE33315CA25790075467A /* Install McBopomofo */ = { + isa = PBXNativeTarget; + buildConfigurationList = 6A6BE34B15CA257A0075467A /* Build configuration list for PBXNativeTarget "Install McBopomofo" */; + buildPhases = ( + 6A6BE33015CA25790075467A /* Sources */, + 6A6BE33115CA25790075467A /* Frameworks */, + 6A6BE33215CA25790075467A /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 6AB7EFAC15CA2D78006D2F21 /* PBXTargetDependency */, + ); + name = "Install McBopomofo"; + productName = Installer; + productReference = 6A6BE33415CA25790075467A /* Install McBopomofo.app */; + productType = "com.apple.product-type.application"; + }; 6A8515B4137277DB0066B1BD /* Lettuce */ = { isa = PBXNativeTarget; buildConfigurationList = 6A8515D1137277DB0066B1BD /* Build configuration list for PBXNativeTarget "Lettuce" */; @@ -505,11 +587,25 @@ 6A8515B4137277DB0066B1BD /* Lettuce */, 6ADF4DBA13727D1000A7C57B /* Data */, 6ACF37C113A7BE68008798F2 /* IconMaker */, + 6A6BE33315CA25790075467A /* Install McBopomofo */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ + 6A6BE33215CA25790075467A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6AB7EFAD15CA2DB9006D2F21 /* McBopomofo.app in Resources */, + 6A6BE33C15CA257A0075467A /* InfoPlist.strings in Resources */, + 6A6BE34815CA257A0075467A /* MainMenu.xib in Resources */, + 6A6BE35115CA26290075467A /* License.rtf in Resources */, + 6A6BE35215CA26290075467A /* Localizable.strings in Resources */, + 6AB7EFA915CA2D6B006D2F21 /* Lettuce.icns in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 6A8515B3137277DB0066B1BD /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -571,6 +667,15 @@ /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ + 6A6BE33015CA25790075467A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6A6BE33E15CA257A0075467A /* main.m in Sources */, + 6A6BE34515CA257A0075467A /* AppDelegate.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 6A8515B1137277DB0066B1BD /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -607,6 +712,11 @@ /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ + 6AB7EFAC15CA2D78006D2F21 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 6A8515B4137277DB0066B1BD /* Lettuce */; + targetProxy = 6AB7EFAB15CA2D78006D2F21 /* PBXContainerItemProxy */; + }; 6ADF4DBF13727D2B00A7C57B /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 6ADF4DBA13727D1000A7C57B /* Data */; @@ -632,6 +742,42 @@ name = MainMenu.xib; sourceTree = ""; }; + 6A6BE33A15CA257A0075467A /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 6A6BE33B15CA257A0075467A /* en */, + 6A6BE35B15CA265B0075467A /* zh-Hant */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; + 6A6BE34615CA257A0075467A /* MainMenu.xib */ = { + isa = PBXVariantGroup; + children = ( + 6A6BE34715CA257A0075467A /* en */, + 6A6BE35715CA263E0075467A /* zh-Hant */, + ); + name = MainMenu.xib; + sourceTree = ""; + }; + 6A6BE34D15CA26290075467A /* License.rtf */ = { + isa = PBXVariantGroup; + children = ( + 6A6BE34E15CA26290075467A /* en */, + 6A6BE35515CA263E0075467A /* zh-Hant */, + ); + name = License.rtf; + sourceTree = ""; + }; + 6A6BE34F15CA26290075467A /* Localizable.strings */ = { + isa = PBXVariantGroup; + children = ( + 6A6BE35015CA26290075467A /* en */, + 6A6BE35615CA263E0075467A /* zh-Hant */, + ); + name = Localizable.strings; + sourceTree = ""; + }; 6ABEDAF513F74D9C00A0825A /* Localizable.strings */ = { isa = PBXVariantGroup; children = ( @@ -677,6 +823,63 @@ /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ + 6A6BE34915CA257A0075467A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_64_BIT)"; + CODE_SIGN_IDENTITY = ""; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_OBJC_EXCEPTIONS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Installer/Installer-Prefix.pch"; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_VERSION = com.apple.compilers.llvm.clang.1_0; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + INFOPLIST_FILE = "Installer/Installer-Info.plist"; + MACOSX_DEPLOYMENT_TARGET = 10.7; + ONLY_ACTIVE_ARCH = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = macosx; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + 6A6BE34A15CA257A0075467A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_64_BIT)"; + CODE_SIGN_IDENTITY = ""; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_ENABLE_OBJC_EXCEPTIONS = YES; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Installer/Installer-Prefix.pch"; + GCC_VERSION = com.apple.compilers.llvm.clang.1_0; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + INFOPLIST_FILE = "Installer/Installer-Info.plist"; + MACOSX_DEPLOYMENT_TARGET = 10.7; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = macosx; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; 6A8515AF137277C90066B1BD /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -694,6 +897,7 @@ buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; + CODE_SIGN_IDENTITY = ""; COPY_PHASE_STRIP = NO; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; @@ -723,6 +927,7 @@ buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; + CODE_SIGN_IDENTITY = ""; COPY_PHASE_STRIP = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; GCC_C_LANGUAGE_STANDARD = gnu99; @@ -844,6 +1049,15 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ + 6A6BE34B15CA257A0075467A /* Build configuration list for PBXNativeTarget "Install McBopomofo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6A6BE34915CA257A0075467A /* Debug */, + 6A6BE34A15CA257A0075467A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; 6A8515AD137277C90066B1BD /* Build configuration list for PBXProject "Lettuce" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/Source/McBopomofo-Info.plist b/Source/McBopomofo-Info.plist index 69bcd6fc..e63e8e10 100644 --- a/Source/McBopomofo-Info.plist +++ b/Source/McBopomofo-Info.plist @@ -23,11 +23,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 0.9.3 + 0.9.4 CFBundleSignature LTCE CFBundleVersion - 250 + 361 ComponentInputModeDict tsInputModeListKey @@ -74,7 +74,7 @@ LSMinimumSystemVersion 10.5 NSHumanReadableCopyright - Copyright © 2011 The McBopomofo Project + Copyright © 2011-2012 The OpenVanilla Project NSMainNibFile MainMenu NSPrincipalClass