From 1c89992b2af18acb457819b94f50fee247620d28 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sat, 12 Jun 2010 15:20:57 +0000 Subject: - Implement the Wil shipley/Golden % Braeburn localisation method for .xibs; add a build stage to Release/Dist builds which generates .strings files for each nib, and swizzle nib loading to automatically translate strings based on any localised .strings files - Fix the genstring stage of the build script and move it to Release/Dist builds only - Update Localizable.strings to match latest code --- sequel-pro.xcodeproj/project.pbxproj | 138 +++++++++++++++++++++++++++++++++++ 1 file changed, 138 insertions(+) (limited to 'sequel-pro.xcodeproj/project.pbxproj') diff --git a/sequel-pro.xcodeproj/project.pbxproj b/sequel-pro.xcodeproj/project.pbxproj index 31d604a1..4bcb6da3 100644 --- a/sequel-pro.xcodeproj/project.pbxproj +++ b/sequel-pro.xcodeproj/project.pbxproj @@ -227,6 +227,8 @@ 58B9077E11BD9B64000826E5 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 58B9077D11BD9B64000826E5 /* Carbon.framework */; }; 58B907CA11BDA541000826E5 /* PSMTabBar.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 58B906E611BD989A000826E5 /* PSMTabBar.framework */; }; 58B907FB11BDA5A9000826E5 /* PSMTabBar.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 58B906E611BD989A000826E5 /* PSMTabBar.framework */; }; + 58B9097B11C3A4A2000826E5 /* xibLocalizationPostprocessor.m in Sources */ = {isa = PBXBuildFile; fileRef = 58B9095B11C3A3EC000826E5 /* xibLocalizationPostprocessor.m */; }; + 58B909A511C3B919000826E5 /* DMLocalizedNibBundle.m in Sources */ = {isa = PBXBuildFile; fileRef = 58B909A411C3B919000826E5 /* DMLocalizedNibBundle.m */; }; 58BC5E56103898140058C2E6 /* MCPStreamingResult.h in Headers */ = {isa = PBXBuildFile; fileRef = 583B779710386B0200B21F7E /* MCPStreamingResult.h */; settings = {ATTRIBUTES = (Public, ); }; }; 58BC5E571038983E0058C2E6 /* MCPResultPlus.h in Headers */ = {isa = PBXBuildFile; fileRef = 17B7B5D1101603B200F057DE /* MCPResultPlus.h */; settings = {ATTRIBUTES = (Public, ); }; }; 58C34F5310B86CAE00D37E14 /* NSNotificationAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 58C34F5210B86CAE00D37E14 /* NSNotificationAdditions.m */; }; @@ -361,6 +363,13 @@ remoteGlobalIDString = 58B906E511BD989A000826E5; remoteInfo = PSMTabBar; }; + 58B9096F11C3A462000826E5 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 2A37F4A9FDCFA73011CA2CEA /* Project object */; + proxyType = 1; + remoteGlobalIDString = 58B9096011C3A42B000826E5; + remoteInfo = xibLocalizationPostprocessor; + }; 58CDB34A0FCE144000F8ACA3 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 2A37F4A9FDCFA73011CA2CEA /* Project object */; @@ -770,6 +779,9 @@ 58B9073911BD9B34000826E5 /* PSMUnifiedTabStyle.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PSMUnifiedTabStyle.m; sourceTree = ""; }; 58B9077D11BD9B64000826E5 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Carbon.framework; path = System/Library/Frameworks/Carbon.framework; sourceTree = SDKROOT; }; 58B9088711BDB7AA000826E5 /* PSMTabBar-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "PSMTabBar-Info.plist"; sourceTree = ""; }; + 58B9095B11C3A3EC000826E5 /* xibLocalizationPostprocessor.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = xibLocalizationPostprocessor.m; sourceTree = ""; }; + 58B9096111C3A42B000826E5 /* xibLocalizationPostprocessor */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = xibLocalizationPostprocessor; sourceTree = BUILT_PRODUCTS_DIR; }; + 58B909A411C3B919000826E5 /* DMLocalizedNibBundle.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DMLocalizedNibBundle.m; sourceTree = ""; }; 58C34F5110B86CAE00D37E14 /* NSNotificationAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NSNotificationAdditions.h; sourceTree = ""; }; 58C34F5210B86CAE00D37E14 /* NSNotificationAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NSNotificationAdditions.m; sourceTree = ""; }; 58C3506410B9A56C00D37E14 /* button_left.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = button_left.png; sourceTree = ""; }; @@ -930,6 +942,13 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 58B9095F11C3A42B000826E5 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; 58CDB3340FCE13C900F8ACA3 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -1510,6 +1529,7 @@ 17E641710EF01F5C001BC333 /* GUI */, 17E641720EF01F6B001BC333 /* SSHTunnel */, B57747D60F7A8990003B34F9 /* Category Additions */, + 58B909A111C3B8EC000826E5 /* Localization */, 58DA884E103E1597000B98DF /* Debugging & Support */, ); name = Other; @@ -1698,6 +1718,7 @@ 58CDB3360FCE13C900F8ACA3 /* SequelProTunnelAssistant */, 17B7B5621016012700F057DE /* MCPKit.framework */, 58B906E611BD989A000826E5 /* PSMTabBar.framework */, + 58B9096111C3A42B000826E5 /* xibLocalizationPostprocessor */, ); name = Products; sourceTree = ""; @@ -1868,6 +1889,15 @@ path = Styles; sourceTree = ""; }; + 58B909A111C3B8EC000826E5 /* Localization */ = { + isa = PBXGroup; + children = ( + 58B909A411C3B919000826E5 /* DMLocalizedNibBundle.m */, + 58B9095B11C3A3EC000826E5 /* xibLocalizationPostprocessor.m */, + ); + name = Localization; + sourceTree = ""; + }; 58DA884E103E1597000B98DF /* Debugging & Support */ = { isa = PBXGroup; children = ( @@ -2026,6 +2056,22 @@ productReference = 58B906E611BD989A000826E5 /* PSMTabBar.framework */; productType = "com.apple.product-type.framework"; }; + 58B9096011C3A42B000826E5 /* xibLocalizationPostprocessor */ = { + isa = PBXNativeTarget; + buildConfigurationList = 58B9096A11C3A431000826E5 /* Build configuration list for PBXNativeTarget "xibLocalizationPostprocessor" */; + buildPhases = ( + 58B9095E11C3A42B000826E5 /* Sources */, + 58B9095F11C3A42B000826E5 /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = xibLocalizationPostprocessor; + productName = xibLocalizationPostprocessor; + productReference = 58B9096111C3A42B000826E5 /* xibLocalizationPostprocessor */; + productType = "com.apple.product-type.tool"; + }; 58CDB3350FCE13C900F8ACA3 /* SequelProTunnelAssistant */ = { isa = PBXNativeTarget; buildConfigurationList = 58CDB33F0FCE13E300F8ACA3 /* Build configuration list for PBXNativeTarget "SequelProTunnelAssistant" */; @@ -2058,6 +2104,7 @@ 17B7B59B1016039200F057DE /* PBXTargetDependency */, 58B907CD11BDA552000826E5 /* PBXTargetDependency */, 58CDB34B0FCE144000F8ACA3 /* PBXTargetDependency */, + 58B9097011C3A462000826E5 /* PBXTargetDependency */, ); name = "Sequel Pro"; productInstallPath = "$(HOME)/Applications"; @@ -2082,6 +2129,7 @@ 58CDB3350FCE13C900F8ACA3 /* SequelProTunnelAssistant */, 17B7B5611016012700F057DE /* MCPKit */, 58B906E511BD989A000826E5 /* PSMTabBar */, + 58B9096011C3A42B000826E5 /* xibLocalizationPostprocessor */, ); }; /* End PBXProject section */ @@ -2319,6 +2367,14 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 58B9095E11C3A42B000826E5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 58B9097B11C3A4A2000826E5 /* xibLocalizationPostprocessor.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 58CDB3330FCE13C900F8ACA3 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -2435,6 +2491,7 @@ 173C839311AAD32A00B8B084 /* SPPDFExporterDelegate.m in Sources */, 173C839411AAD32A00B8B084 /* SPSQLExporterDelegate.m in Sources */, 173C839511AAD32A00B8B084 /* SPXMLExporterDelegate.m in Sources */, + 58B909A511C3B919000826E5 /* DMLocalizedNibBundle.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -2456,6 +2513,11 @@ target = 58B906E511BD989A000826E5 /* PSMTabBar */; targetProxy = 58B907CC11BDA552000826E5 /* PBXContainerItemProxy */; }; + 58B9097011C3A462000826E5 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 58B9096011C3A42B000826E5 /* xibLocalizationPostprocessor */; + targetProxy = 58B9096F11C3A462000826E5 /* PBXContainerItemProxy */; + }; 58CDB34B0FCE144000F8ACA3 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 58CDB3350FCE13C900F8ACA3 /* SequelProTunnelAssistant */; @@ -3017,6 +3079,72 @@ }; name = Distribution; }; + 58B9096311C3A42C000826E5 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + COPY_PHASE_STRIP = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_FIX_AND_CONTINUE = YES; + GCC_MODEL_TUNING = G5; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h"; + INSTALL_PATH = /usr/local/bin; + OTHER_LDFLAGS = ( + "-framework", + Foundation, + "-framework", + AppKit, + ); + PREBINDING = NO; + PRODUCT_NAME = xibLocalizationPostprocessor; + }; + name = Debug; + }; + 58B9096411C3A42C000826E5 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + COPY_PHASE_STRIP = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_MODEL_TUNING = G5; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h"; + INSTALL_PATH = /usr/local/bin; + OTHER_LDFLAGS = ( + "-framework", + Foundation, + "-framework", + AppKit, + ); + PREBINDING = NO; + PRODUCT_NAME = xibLocalizationPostprocessor; + ZERO_LINK = NO; + }; + name = Release; + }; + 58B9096511C3A42C000826E5 /* Distribution */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + GCC_ENABLE_FIX_AND_CONTINUE = YES; + GCC_MODEL_TUNING = G5; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h"; + INSTALL_PATH = /usr/local/bin; + OTHER_LDFLAGS = ( + "-framework", + Foundation, + "-framework", + AppKit, + ); + PREBINDING = NO; + PRODUCT_NAME = xibLocalizationPostprocessor; + }; + name = Distribution; + }; 58CDB3380FCE13CB00F8ACA3 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -3275,6 +3403,16 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + 58B9096A11C3A431000826E5 /* Build configuration list for PBXNativeTarget "xibLocalizationPostprocessor" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 58B9096311C3A42C000826E5 /* Debug */, + 58B9096411C3A42C000826E5 /* Release */, + 58B9096511C3A42C000826E5 /* Distribution */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; 58CDB33F0FCE13E300F8ACA3 /* Build configuration list for PBXNativeTarget "SequelProTunnelAssistant" */ = { isa = XCConfigurationList; buildConfigurations = ( -- cgit v1.2.3