mirror of
				https://github.com/arsenetar/dupeguru.git
				synced 2025-09-11 17:58:17 +00:00 
			
		
		
		
	Added support got gettext localizations under Cocoa.
This commit is contained in:
		
							parent
							
								
									771f26ba0f
								
							
						
					
					
						commit
						6c75d3afdf
					
				
							
								
								
									
										3
									
								
								build.py
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								build.py
									
									
									
									
									
								
							| @ -113,6 +113,9 @@ def build_localizations(ui, edition): | ||||
|     loc.compile_all_po('locale') | ||||
|     loc.compile_all_po(op.join('hscommon', 'locale')) | ||||
|     loc.merge_locale_dir(op.join('hscommon', 'locale'), 'locale') | ||||
|     if op.exists(op.join('build', 'locale')): | ||||
|         shutil.rmtree(op.join('build', 'locale')) | ||||
|     shutil.copytree('locale', op.join('build', 'locale'), ignore=shutil.ignore_patterns('*.po', '*.pot')) | ||||
|     if ui == 'cocoa': | ||||
|         print("Creating lproj folders based on .po files") | ||||
|         enlproj = op.join('cocoa', 'base', 'en.lproj') | ||||
|  | ||||
| @ -4,8 +4,8 @@ | ||||
| # which should be included with this package. The terms are also available at  | ||||
| # http://www.hardcoded.net/licenses/bsd_license | ||||
| 
 | ||||
| from hscommon.trans import install_cocoa_trans | ||||
| install_cocoa_trans() | ||||
| from hscommon.trans import install_gettext_trans_under_cocoa | ||||
| install_gettext_trans_under_cocoa() | ||||
| 
 | ||||
| from hscommon.cocoa import signature | ||||
| 
 | ||||
|  | ||||
| @ -71,6 +71,7 @@ | ||||
| 		CE84C9B91423AE410050A6AD /* HSPopUpList.m in Sources */ = {isa = PBXBuildFile; fileRef = CE84C9B61423AE410050A6AD /* HSPopUpList.m */; }; | ||||
| 		CE84C9BA1423AE410050A6AD /* HSSelectableList.m in Sources */ = {isa = PBXBuildFile; fileRef = CE84C9B81423AE410050A6AD /* HSSelectableList.m */; }; | ||||
| 		CE84C9BD1423AF200050A6AD /* PrioritizeDialog.xib in Resources */ = {isa = PBXBuildFile; fileRef = CE84C9BB1423AF200050A6AD /* PrioritizeDialog.xib */; }; | ||||
| 		CEA14F431461ED63007F01A5 /* locale in Resources */ = {isa = PBXBuildFile; fileRef = CEA14F421461ED63007F01A5 /* locale */; }; | ||||
| 		CEB14D29124DFC2800FA7481 /* ResultTable.m in Sources */ = {isa = PBXBuildFile; fileRef = CEB14D28124DFC2800FA7481 /* ResultTable.m */; }; | ||||
| 		CEB5E07813225C89009F521D /* ExtraFairwareReminder.m in Sources */ = {isa = PBXBuildFile; fileRef = CEB5E07613225C89009F521D /* ExtraFairwareReminder.m */; }; | ||||
| 		CEB5E07D13225CA2009F521D /* ExtraFairwareReminder.xib in Resources */ = {isa = PBXBuildFile; fileRef = CEB5E07B13225CA2009F521D /* ExtraFairwareReminder.xib */; }; | ||||
| @ -225,6 +226,7 @@ | ||||
| 		CE84C9B71423AE410050A6AD /* HSSelectableList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HSSelectableList.h; sourceTree = "<group>"; }; | ||||
| 		CE84C9B81423AE410050A6AD /* HSSelectableList.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HSSelectableList.m; sourceTree = "<group>"; }; | ||||
| 		CE84C9BC1423AF200050A6AD /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = ../base/en.lproj/PrioritizeDialog.xib; sourceTree = "<group>"; }; | ||||
| 		CEA14F421461ED63007F01A5 /* locale */ = {isa = PBXFileReference; lastKnownFileType = folder; name = locale; path = ../../build/locale; sourceTree = "<group>"; }; | ||||
| 		CEB14D26124DFC2800FA7481 /* PyResultTable.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PyResultTable.h; path = ../base/PyResultTable.h; sourceTree = SOURCE_ROOT; }; | ||||
| 		CEB14D27124DFC2800FA7481 /* ResultTable.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ResultTable.h; path = ../base/ResultTable.h; sourceTree = SOURCE_ROOT; }; | ||||
| 		CEB14D28124DFC2800FA7481 /* ResultTable.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ResultTable.m; path = ../base/ResultTable.m; sourceTree = SOURCE_ROOT; }; | ||||
| @ -349,6 +351,7 @@ | ||||
| 		29B97317FDCFA39411CA2CEA /* Resources */ = { | ||||
| 			isa = PBXGroup; | ||||
| 			children = ( | ||||
| 				CEA14F421461ED63007F01A5 /* locale */, | ||||
| 				CE073F5409CAE1A3005C1D2F /* help */, | ||||
| 				CE381CF509915304003581CE /* dg_cocoa.plugin */, | ||||
| 				CEFC294309C89E0000D9F998 /* images */, | ||||
| @ -609,6 +612,7 @@ | ||||
| 				CE84C9BD1423AF200050A6AD /* PrioritizeDialog.xib in Resources */, | ||||
| 				CEC481F21423FBC600034F91 /* columns.strings in Resources */, | ||||
| 				CE57FB2C142B7E17005B5F83 /* message.strings in Resources */, | ||||
| 				CEA14F431461ED63007F01A5 /* locale in Resources */, | ||||
| 			); | ||||
| 			runOnlyForDeploymentPostprocessing = 0; | ||||
| 		}; | ||||
|  | ||||
| @ -4,8 +4,8 @@ | ||||
| # which should be included with this package. The terms are also available at  | ||||
| # http://www.hardcoded.net/licenses/bsd_license | ||||
| 
 | ||||
| from hscommon.trans import install_cocoa_trans | ||||
| install_cocoa_trans() | ||||
| from hscommon.trans import install_gettext_trans_under_cocoa | ||||
| install_gettext_trans_under_cocoa() | ||||
| 
 | ||||
| from core.scanner import ScanType | ||||
| 
 | ||||
|  | ||||
| @ -33,6 +33,7 @@ | ||||
| 		CE54EB8D1423FBA200E3383A /* columns.strings in Resources */ = {isa = PBXBuildFile; fileRef = CE54EB881423FBA200E3383A /* columns.strings */; }; | ||||
| 		CE60180812DF3EA900236FDC /* HSRecentFiles.m in Sources */ = {isa = PBXBuildFile; fileRef = CE60180712DF3EA900236FDC /* HSRecentFiles.m */; }; | ||||
| 		CE6044EC0FE6796200B71262 /* DetailsPanel.m in Sources */ = {isa = PBXBuildFile; fileRef = CE6044EB0FE6796200B71262 /* DetailsPanel.m */; }; | ||||
| 		CE63D9D31461EDC000A8CADD /* locale in Resources */ = {isa = PBXBuildFile; fileRef = CE63D9D21461EDC000A8CADD /* locale */; }; | ||||
| 		CE68EE6809ABC48000971085 /* DirectoryPanel.m in Sources */ = {isa = PBXBuildFile; fileRef = CE68EE6609ABC48000971085 /* DirectoryPanel.m */; }; | ||||
| 		CE6E0F3D1054EC62008D9390 /* dsa_pub.pem in Resources */ = {isa = PBXBuildFile; fileRef = CE6E0F3C1054EC62008D9390 /* dsa_pub.pem */; }; | ||||
| 		CE7AC9191119911200D02F6C /* progress.xib in Resources */ = {isa = PBXBuildFile; fileRef = CE7AC9161119911200D02F6C /* progress.xib */; }; | ||||
| @ -151,6 +152,7 @@ | ||||
| 		CE60180712DF3EA900236FDC /* HSRecentFiles.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = HSRecentFiles.m; path = ../../cocoalib/HSRecentFiles.m; sourceTree = SOURCE_ROOT; }; | ||||
| 		CE6044EA0FE6796200B71262 /* DetailsPanel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DetailsPanel.h; path = ../base/DetailsPanel.h; sourceTree = SOURCE_ROOT; }; | ||||
| 		CE6044EB0FE6796200B71262 /* DetailsPanel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DetailsPanel.m; path = ../base/DetailsPanel.m; sourceTree = SOURCE_ROOT; }; | ||||
| 		CE63D9D21461EDC000A8CADD /* locale */ = {isa = PBXFileReference; lastKnownFileType = folder; name = locale; path = ../../build/locale; sourceTree = "<group>"; }; | ||||
| 		CE653CEB14169F140058A022 /* zh_CN */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = zh_CN; path = ../zh_CN.lproj/about.xib; sourceTree = "<group>"; }; | ||||
| 		CE653CEC14169F140058A022 /* zh_CN */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = zh_CN; path = ../zh_CN.lproj/ErrorReportWindow.xib; sourceTree = "<group>"; }; | ||||
| 		CE653CED14169F140058A022 /* zh_CN */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = zh_CN; path = ../zh_CN.lproj/FairwareReminder.xib; sourceTree = "<group>"; }; | ||||
| @ -350,6 +352,7 @@ | ||||
| 		29B97317FDCFA39411CA2CEA /* Resources */ = { | ||||
| 			isa = PBXGroup; | ||||
| 			children = ( | ||||
| 				CE63D9D21461EDC000A8CADD /* locale */, | ||||
| 				CE073F5409CAE1A3005C1D2F /* help */, | ||||
| 				CE381CF509915304003581CE /* dg_cocoa.plugin */, | ||||
| 				CEFC294309C89E0000D9F998 /* images */, | ||||
| @ -613,6 +616,7 @@ | ||||
| 				CE7D24A91423B123002E2297 /* PrioritizeDialog.xib in Resources */, | ||||
| 				CE54EB8D1423FBA200E3383A /* columns.strings in Resources */, | ||||
| 				CE4C3D1A142B7CC000DD438A /* message.strings in Resources */, | ||||
| 				CE63D9D31461EDC000A8CADD /* locale in Resources */, | ||||
| 			); | ||||
| 			runOnlyForDeploymentPostprocessing = 0; | ||||
| 		}; | ||||
|  | ||||
| @ -4,8 +4,8 @@ | ||||
| # which should be included with this package. The terms are also available at  | ||||
| # http://www.hardcoded.net/licenses/bsd_license | ||||
| 
 | ||||
| from hscommon.trans import install_cocoa_trans | ||||
| install_cocoa_trans() | ||||
| from hscommon.trans import install_gettext_trans_under_cocoa | ||||
| install_gettext_trans_under_cocoa() | ||||
| 
 | ||||
| from hscommon.cocoa import signature | ||||
| 
 | ||||
|  | ||||
| @ -55,6 +55,7 @@ | ||||
| 		CE9777D1141F8CB400C13FB5 /* PrioritizeDialog.xib in Resources */ = {isa = PBXBuildFile; fileRef = CE9777CF141F8CB400C13FB5 /* PrioritizeDialog.xib */; }; | ||||
| 		CE9777D5141F9D7600C13FB5 /* HSPopUpList.m in Sources */ = {isa = PBXBuildFile; fileRef = CE9777D4141F9D7600C13FB5 /* HSPopUpList.m */; }; | ||||
| 		CE9A2C011423F9FF003CA2EF /* columns.strings in Resources */ = {isa = PBXBuildFile; fileRef = CE9A2BFC1423F9FF003CA2EF /* columns.strings */; }; | ||||
| 		CEA175CA1461E8E600776591 /* locale in Resources */ = {isa = PBXBuildFile; fileRef = CEA175C91461E8E600776591 /* locale */; }; | ||||
| 		CEBE4D74111F0EE1009AAC6D /* HSWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = CEBE4D73111F0EE1009AAC6D /* HSWindowController.m */; }; | ||||
| 		CED650EA142B7DA8009BD50A /* message.strings in Resources */ = {isa = PBXBuildFile; fileRef = CED650E5142B7DA8009BD50A /* message.strings */; }; | ||||
| 		CEE7EA130FE675C80004E467 /* DetailsPanel.m in Sources */ = {isa = PBXBuildFile; fileRef = CEE7EA120FE675C80004E467 /* DetailsPanel.m */; }; | ||||
| @ -202,6 +203,7 @@ | ||||
| 		CE9A2BFE1423F9FF003CA2EF /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = ../base/en.lproj/columns.strings; sourceTree = "<group>"; }; | ||||
| 		CE9A2BFF1423F9FF003CA2EF /* fr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fr; path = ../base/fr.lproj/columns.strings; sourceTree = "<group>"; }; | ||||
| 		CE9A2C001423F9FF003CA2EF /* zh_CN */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = zh_CN; path = ../base/zh_CN.lproj/columns.strings; sourceTree = "<group>"; }; | ||||
| 		CEA175C91461E8E600776591 /* locale */ = {isa = PBXFileReference; lastKnownFileType = folder; name = locale; path = ../../build/locale; sourceTree = "<group>"; }; | ||||
| 		CEBE4D72111F0EE1009AAC6D /* HSWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HSWindowController.h; sourceTree = "<group>"; }; | ||||
| 		CEBE4D73111F0EE1009AAC6D /* HSWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HSWindowController.m; sourceTree = "<group>"; }; | ||||
| 		CECFFF1C13CDF8D0003A4518 /* de */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = de; path = ../base/de.lproj/DetailsPanel.xib; sourceTree = SOURCE_ROOT; }; | ||||
| @ -331,6 +333,7 @@ | ||||
| 		29B97317FDCFA39411CA2CEA /* Resources */ = { | ||||
| 			isa = PBXGroup; | ||||
| 			children = ( | ||||
| 				CEA175C91461E8E600776591 /* locale */, | ||||
| 				CE073F5409CAE1A3005C1D2F /* help */, | ||||
| 				CE381CF509915304003581CE /* dg_cocoa.plugin */, | ||||
| 				CEFC294309C89E0000D9F998 /* images */, | ||||
| @ -594,6 +597,7 @@ | ||||
| 				CE112F62145EF28D009C9E3E /* about.xib in Resources */, | ||||
| 				CE112F63145EF28D009C9E3E /* ErrorReportWindow.xib in Resources */, | ||||
| 				CE112F64145EF28D009C9E3E /* FairwareReminder.xib in Resources */, | ||||
| 				CEA175CA1461E8E600776591 /* locale in Resources */, | ||||
| 			); | ||||
| 			runOnlyForDeploymentPostprocessing = 0; | ||||
| 		}; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user