 		NSLocalizedString("layout12", comment: "Layout (v12+)"),
 		NSLocalizedString("customFunction", comment: "Custom Function"),
 		NSLocalizedString("valueList", comment: "Value List"),
-		NSLocalizedString("theme", comment: "Theme")
+		NSLocalizedString("theme", comment: "Theme"),
 	]
 
 	func applicationDidFinishLaunching(_ aNotification: Notification) {

	let lastAltPath = "lastAltPath"
	let prettyPrintXml = "prettyPrintXml"

	let types = ["XMTB", "XMFD", "XMSC", "XMSS", "XMLO", "XML2", "XMFN", "XMVL", ""]
	let typeLabels = [
		NSLocalizedString("table", comment: "Table"),
		NSLocalizedString("field", comment: "Field"),

		do {
			if let path = filePath {
				let xmlStr = try String(contentsOfFile: path, encoding: String.Encoding.utf8)
				if let uti = detectOstypeFromXmlStr(xmlStr) {
					pasteboard.declareTypes([NSPasteboard.PasteboardType(rawValue: uti)], owner: nil)
					if pasteboard.setString(xmlStr as String, forType: NSPasteboard.PasteboardType(rawValue: uti)) {
						if let idx = types.index(of: uti) {
							showMsg(String(format: NSLocalizedString("copiedToClipboard", comment: "%s definition copied to the clipboard."), typeLabels[idx]))
						}
					} else {
						showMsg(NSLocalizedString("failedToSetClipboard", comment: "Failed to update the clipboard."))
					}
				}
			}
