         switch self {
         case .empty:
             return NSLocalizedString("Name can’t be empty.", comment: "")
-            
         case .containSlash:
             return NSLocalizedString("You can’t use a name that contains “/”.", comment: "")
-            
         case .startWithDot:
             return NSLocalizedString("You can’t use a name that begins with a dot “.”.", comment: "")
-            
         case .duplicated(let name):
             return String(format: NSLocalizedString("The name “%@” is already taken.", comment: ""), name)
         }

struct SettingFileError: LocalizedError {
    
    enum ErrorKind {
        case deletionFailed
        case importFailed
        case noSourceFile
    }
    
    let kind: ErrorKind
    let name: String
    let error: NSError?
    
    
    var errorDescription: String? {

        switch self.type {
        case .syntaxStyle:
            return String(format: NSLocalizedString("A new style named “%@” will be installed, but a custom style with the same name already exists.", comment: ""), self.name)
        case .theme:
            return String(format: NSLocalizedString("A new theme named “%@” will be installed, but a custom theme with the same name already exists.", comment: ""), self.name)
        case .replacement:
            return String(format: NSLocalizedString("A new replacement definition named “%@” will be installed, but a definition with the same name already exists.", comment: ""), self.name)
        }
