#### SPANISH CUSTOM LOCALIZATION
#### Por Jaime Ortega
#
### I. PERSONAJES, HOMBRE O MUJER
#
### TERMINACIONES
###################
## ES_XA (luchador/luchadora ; Permite S, sin espacio delante)
## ES_XAOpp (luchadora/luchador Permite S, sin espacio delante)
## ES_OA (loco/loca ; Permite S, sin espacio delante)
## ES_OAOpp (loca/loco ; Permite S, sin espacio delante)
## ES_EEsa (conde/condesa ; sin espacio delante)
## ES_EsEsa (marqués, maarquesa ; sin espacio delante)
## ES_InIna (parlanchín/parlanchina ; Sin espacio delante)
## ES_OnOnesa (barón/baronesa ; Permite S, sin espacio delante)
## ES_TaTisa (poeta/poetisa ; Permite S, sin espacio delante)
## ES_TeTisa (sacerdote/sacerdotisa ; Permite S, sin espacio delante)
## ES_AnAna (rufián/rufiana; Permite S, sin espacio delante)
## ES_DorTriz (enmperador/emperatriz ; Permite S, sin espacio delante)
## ES_InoIna (lechuguino/lechuguina ; Sin espacio delante)
## ES_LLla (doncel/doncella ; Permite S, sin espacio delante)
## ES_NnoNna (extraño/extraña ; Permite S, sin espacio delante)
## ES_OnOna (simplón/simplona ; Permite S, sin espacio delante)
## ES_XIssa (sebastocrátor/sebastocrátorissa ; Sin espacio delante)
## ES_EA (este/esta ; Sin espacio delante)
## ES_EAOpp (esta/este; Sin espacio delante)
## ES_UxOgaresa (dux/ogaresa ; Sin espacio delante)
## ES_OsAs (vasallos/vasallas, todos/todas ; Plural)
## ES_EsSas (duques/duquesas, barones/baronesas ; Plural)
## ES_SesSas (marqueses/marquesas ; Plural)
#
###################
##### ARTICLES ####
###################
## ES_AlAla (al/a la ; Sin espacio delante) 
## ES_DelDela (del/de la ; Sin espacio delante)
## ES_LoLa (lo/la ; Sin espacio delante)
## ES_LoLaOpp (la/lo ; Sin espacio delante)
## ES_RleRla (callarle/callarla ; Sin espacio delante)
## ES_RleRlaOpp (callarla/callarle ; Sin espacio delante)
## ES_LeLa (le/la  ; Sin espacio delante)
## ES_LeLaOpp (le/la  ; Sin espacio delante)
## ES_ElLa (el/la  ; Sin espacio delante)
## ES_ElElla (él/ella ; Sin espacio delante)
#
###################
####### NOMBRESS ######
###################
## ES_SennorSennora (señor/señora)
## ES_CaballeroDama (caballero/dama)
## ES_EsposoEsposa (esposo/esposa)
## ES_EsposoEsposaOpp (esposa/esposo)
## ES_HeroeHeroina (héroe/heroína)
## ES_ConsorConcub (concubino/concubina)
## ES_ConsorConcubOpp (concubina/concubino)
## ES_ReyReina (rey/reina)
## ES_HijoHija (hijo/hija)
## ES_SirvienteSirvienta (sirviente/sirvienta)
#
###################################
## II. REEMPLAZO DE COMANDOS EN INGLÉS
###################################
## ES_FaithGenderedAdj - GetFaith.GetAdjective\GetFaith.GetAdherentName (scope: CHARACTER)
#
###################################
## II. ARTICULOS DELANTE DE COMANDOS #
###################################
## ES_only_el_GetTitledFirstName delante de TitledFirstName, TitleAsName
## ES_only_del_GetTitledFirstName delante de TitledFirstName, TitleAsName
## ES_only_al_GetTitledFirstName delante de TitledFirstName, TitleAsName
## ES_only_el_GetShortUIName delante de GetShortUIName, GetUIName
## ES_only_de_GetShortUIName delante de GetShortUIName, GetUIName
## ES_only_a_GetShortUIName delante de GetShortUIName, GetUIName
#
###################################################################
###################################################################
#
#ES_XA = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_XA_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_XA_male
#		fallback = yes
#	}
#}
#
#ES_XAOpp = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_XAOpp_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_XAOpp_male
#		fallback = yes
#	}
#}
#
#ES_OnOnesa = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_OnOnesa_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_OnOnesa_male
#		fallback = yes
#	}
#}
#
#ES_AlAla = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_AlAla_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_AlAla_male
#		fallback = yes
#	}
#}
#
#ES_LeLa = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_LeLa_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_LeLa_male
#		fallback = yes
#	}
#}
#
#ES_LeLaOpp = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_LeLaOpp_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_LeLaOpp_male
#		fallback = yes
#	}
#}
#
#ES_OAOpp = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_OAOpp_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_OAOpp_male
#		fallback = yes
#	}
#}
#
#
#ES_DelDela = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_DelDela_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_DelDela_male
#		fallback = yes
#	}
#}
#
#ES_OA = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_OA_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_OA_male
#		fallback = yes
#	}
#}
#
#ES_OsAs = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_OsAs_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_OsAs_male
#		fallback = yes
#	}
#}
#
#ES_EEsa = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_EEsa_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_EEsa_male
#		fallback = yes
#	}
#}
#
#ES_EsEsa = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_EsEsa_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_EsEsa_male
#		fallback = yes
#	}
#}
#
#ES_EsSas = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_EsSas_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_EsSas_male
#		fallback = yes
#	}
#}
#
#ES_InIna = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_InIna_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_InIna_male
#		fallback = yes
#	}
#}
#
#ES_TaTisa = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_TaTisa_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_TaTisa_male
#		fallback = yes
#	}
#}
#
#ES_TeTisa = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_TeTisa_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_TeTisa_male
#		fallback = yes
#	}
#}
#
#ES_AnAna = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_AnAna_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_AnAna_male
#		fallback = yes
#	}
#}
#
#ES_DorTriz = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_DorTriz_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_DorTriz_male
#		fallback = yes
#	}
#}
#
#ES_InoIna = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_InoIna_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_InoIna_male
#		fallback = yes
#	}
#}
#
#ES_ElLa = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_ElLa_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_ElLa_male
#		fallback = yes
#	}
#}
#
#ES_RleRla = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_RleRla_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_RleRla_male
#		fallback = yes
#	}
#}
#
#ES_RleRlaOpp = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_RleRlaOpp_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_RleRlaOpp_male
#		fallback = yes
#	}
#}
#
#ES_LLla = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_LLla_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_LLla_male
#		fallback = yes
#	}
#}
#
#ES_ElElla = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_ElElla_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_ElElla_male
#		fallback = yes
#	}
#}
#
#ES_NnoNna = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_NnoNna_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_NnoNna_male
#		fallback = yes
#	}
#}
#
#ES_LoLa = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_LoLa_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_LoLa_male
#		fallback = yes
#	}
#}
#
#ES_LoLaOpp = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_LoLaOpp_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_LoLaOpp_male
#		fallback = yes
#	}
#}
#
#ES_OnOna = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_OnOna_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_OnOna_male
#		fallback = yes
#	}
#}
#
#ES_XIssa = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_XIssa_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_XIssa_male
#		fallback = yes
#	}
#}
#
#ES_EA = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_EA_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_EA_male
#		fallback = yes
#	}
#}
#
#ES_EAOpp = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_EAOpp_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_EAOpp_male
#		fallback = yes
#	}
#}
#
#ES_UxOgaresa = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_UxOgaresa_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_UxOgaresa_male
#		fallback = yes
#	}
#}
#
#ES_SesSas = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_SesSas_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_SesSas_male
#		fallback = yes
#	}
#}
#
#ES_SennorSennora = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_SennorSennora_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_SennorSennora_male
#		fallback = yes
#	}
#}
#
#ES_CaballeroDama = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_CaballeroDama_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_CaballeroDama_male
#		fallback = yes
#	}
#}
#
#ES_HeroeHeroina = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_HeroeHeroina_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_HeroeHeroina_male
#		fallback = yes
#	}
#}
#
#ES_EsposoEsposa = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_EsposoEsposa_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_EsposoEsposa_male
#		fallback = yes
#	}
#}
#
#ES_EsposoEsposaOpp = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_EsposoEsposaOpp_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_EsposoEsposaOpp_male
#		fallback = yes
#	}
#}
#
#ES_ConsorConcub = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_ConsorConcub_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_ConsorConcub_male
#		fallback = yes
#	}
#}
#
#ES_ConsorConcubOpp = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_ConsorConcubOpp_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_ConsorConcubOpp_male
#		fallback = yes
#	}
#}
#
#ES_ReyReina = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_ReyReina_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_ReyReina_male
#		fallback = yes
#	}
#}
#
#ES_HijoHija = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_HijoHija_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_HijoHija_male
#		fallback = yes
#	}
#}
#
#ES_SirvienteSirvienta = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = {
#					exists = this
#					NOT = { exists = scope:second }
#				}
#				this = { is_female = yes }
#			}
#			trigger_if = {
#				limit = {
#					exists = this
#					exists = scope:second
#				}
#				this = { is_female = yes }
#				scope:second = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_SirvienteSirvienta_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_SirvienteSirvienta_male
#		fallback = yes
#	}
#}
#
#ES_ElLa_Relation = {
#	type = character
#	log_loc_errors = no
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_motherwife
#		trigger = {
#			scope:second = {
#				OR = {
#					this = root.mother
#					this = root.mother.mother
#					this = root.father.mother
#				}
#				any_spouse = { this = root }
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_sisterwife
#		trigger = {
#			scope:second = {
#				any_sibling = { this = root }
#				is_female = yes
#				any_spouse = { this = root }
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_daughterwife
#		trigger = {
#			scope:second = {
#				OR = {
#					any_parent = { this = root }
#					any_parent = { any_parent = { this = root } }
#				}
#				is_female = yes
#				any_spouse = { this = root }
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_fatherhusband
#		trigger = {
#			scope:second = {
#				OR = {
#					this = root.father
#					this = root.father.father
#					this = root.mother.father
#				}
#				any_spouse = { this = root }
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_brotherhusband
#		trigger = {
#			scope:second = {
#				any_sibling = { this = root }
#				is_female = no
#				any_spouse = { this = root }
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_sonhusband
#		trigger = {
#			scope:second = {
#				OR = {
#					any_parent = { this = root }
#					any_parent = {
#						even_if_dead = yes
#						any_parent = {
#							this = root
#						}
#					}
#				}
#				is_female = no
#				any_spouse = { this = root }
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_wife
#		trigger = {
#			scope:second = {
#				is_female = yes
#				any_spouse = {
#					even_if_dead = yes
#					this = root
#				}
#				is_alive = yes
#				is_concubine = no
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_husband
#		trigger = {
#			scope:second = {
#				is_male = yes
#				any_spouse = {
#					even_if_dead = yes
#					this = root
#				}
#				is_alive = yes
#				is_concubine = no
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_wife_departed
#		trigger = {
#			scope:second = {
#				is_female = yes
#				any_spouse = {
#					even_if_dead = yes
#					this = root
#				}
#				is_alive = no
#				is_concubine = no
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_husband_departed
#		trigger = {
#			scope:second = {
#				is_male = yes
#				any_spouse = {
#					even_if_dead = yes
#					this = root
#				}
#				is_alive = no
#				is_concubine = no
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_concubine_female
#		trigger = {
#			scope:second = {
#				is_female = yes
#				any_consort = { this = root }
#				is_concubine = yes
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_concubine_male
#		trigger = {
#			scope:second = {
#				is_male = yes
#				any_consort = { this = root }
#				is_concubine = yes
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_mother
#		trigger = {
#			scope:second = {
#				is_female = yes
#				any_child = {
#					this = root
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_father
#		trigger = {
#			scope:second = {
#				is_female = no
#				any_child = {
#					this = root
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_grandmother
#		trigger = {
#			scope:second = {
#				is_female = yes
#				is_grandparent_of = root
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_great_grandmother
#		trigger = {
#			scope:second = {
#				is_female = yes
#				is_great_grandparent_of = root
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_grandfather
#		trigger = {
#			scope:second = {
#				is_male = yes
#				is_grandparent_of = root
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_great_grandfather
#		trigger = {
#			scope:second = {
#				is_male = yes
#				is_great_grandparent_of = root
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_heir_daughter
#		trigger = {
#			player_heir ?= scope:second
#			scope:second = {
#				is_female = yes
#				is_child_of = root
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_heir_son
#		trigger = {
#			player_heir ?= scope:second
#			scope:second = {
#				is_male = yes
#				is_child_of = root
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_daughter
#		trigger = {
#			scope:second = {
#				is_female = yes
#				is_child_of = root
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_son
#		trigger = {
#			scope:second = {
#				is_female = no
#				is_child_of = root
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_religious_head
#		trigger = {
#			faith.religious_head = scope:second
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_granddaughter
#		trigger = {
#			scope:second = {
#				is_female = yes
#				is_grandchild_of = root
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_grandson
#		trigger = {
#			scope:second = {
#				is_female = no
#				is_grandchild_of = root
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_greatgranddaughter
#		trigger = {
#			scope:second = {
#				is_female = yes
#				is_great_grandchild_of = root
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_greatgrandson
#		trigger = {
#			scope:second = {
#				is_female = no
#				is_great_grandchild_of = root
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_half_sister
#		trigger = {
#			scope:second = {
#				is_female = yes
#				any_sibling = {
#					this = root
#				}
#				OR = {
#					AND = {
#						mother ?= { any_child = { this != root } }
#					}
#					AND = {
#						father ?= { any_child = { this != root } }
#					}
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_half_brother
#		trigger = {
#			scope:second = {
#				is_female = no
#				any_sibling = {
#					this = root
#				}
#				OR = {
#					AND = {
#						mother ?= { any_child = { this != root } }
#					}
#					AND = {
#						father ?= { any_child = { this != root } }
#					}
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_daughter_in_law
#		trigger = {
#			scope:second = {
#				is_female = yes
#				any_spouse = {
#					is_child_of = root
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_son_in_law
#		trigger = {
#			scope:second = {
#				is_female = no
#				any_spouse = {
#					is_child_of = root
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_sister_rival
#		trigger = {
#			scope:second = {
#				has_relation_rival = root
#				is_female = yes
#				any_sibling = {
#					this = root
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_brother_rival
#		trigger = {
#			scope:second = {
#				has_relation_rival = root
#				is_female = no
#				any_sibling = {
#					this = root
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_sister_friend
#		trigger = {
#			scope:second = {
#				is_female = yes
#				any_relation = {
#					type = friend
#					this = root
#				}
#				any_sibling = {
#					this = root
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_brother_friend
#		trigger = {
#			scope:second = {
#				is_female = no
#				any_relation = {
#					type = friend
#					this = root
#				}
#				any_sibling = {
#					this = root
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_sister_bully
#		trigger = {
#			scope:second = {
#				is_female = yes
#				any_relation = {
#					type = victim
#					this = root
#				}
#				any_sibling = {
#					this = root
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_brother_bully
#		trigger = {
#			scope:second = {
#				is_female = no
#				any_relation = {
#					type = victim
#					this = root
#				}
#				any_sibling = {
#					this = root
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_sister_victim
#		trigger = {
#			scope:second = {
#				is_female = yes
#				any_relation = {
#					type = bully
#					this = root
#				}
#				any_sibling = {
#					this = root
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_brother_victim
#		trigger = {
#			scope:second = {
#				is_female = no
#				any_relation = {
#					type = bully
#					this = root
#				}
#				any_sibling = {
#					this = root
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_sister
#		trigger = {
#			scope:second = {
#				is_female = yes
#				is_sibling_of = root
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_brother
#		trigger = {
#			scope:second = {
#				is_female = no
#				is_sibling_of = root
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_niece
#		trigger = {
#			scope:second = {
#				is_female = yes
#				is_sibling_child_of_root_trigger = yes
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_nephew
#		trigger = {
#			scope:second = {
#				is_female = no
#				is_sibling_child_of_root_trigger = yes
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_aunt
#		trigger = {
#			scope:second = {
#				is_female = yes
#				is_parent_sibling_of_root_trigger = yes
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_uncle
#		trigger = {
#			scope:second = {
#				is_female = no
#				is_parent_sibling_of_root_trigger = yes
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_cousin
#		trigger = {
#			scope:second = {
#				is_cousin_of_root_trigger = yes
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_stepdaughter
#		trigger = {
#			scope:second = {
#				is_female = yes
#				any_parent = {
#					any_spouse = {
#						this = root
#						NOT = { is_parent_of = scope:second }
#					}
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_stepson
#		trigger = {
#			scope:second = {
#				is_male = yes
#				any_parent = {
#					any_spouse = {
#						this = root
#						NOT = { is_parent_of = scope:second }
#					}
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_stepsister
#		trigger = {
#			scope:second = {
#				is_female = yes
#				any_parent = {
#					any_spouse = {
#						any_child = {
#							this = root
#							NOT = { is_sibling_of = scope:second }
#						}
#					}
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_stepbrother
#		trigger = {
#			scope:second = {
#				is_male = yes
#				any_parent = {
#					any_spouse = {
#						any_child = {
#							this = root
#							NOT = { is_sibling_of = scope:second }
#						}
#					}
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_stepmother
#		trigger = {
#			scope:second = {
#				is_female = yes
#				any_spouse = {
#					any_child = {
#						this = root
#						NOT = { is_child_of = scope:second }
#					}
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_stepfather
#		trigger = {
#			scope:second = {
#				is_male = yes
#				any_spouse = {
#					any_child = {
#						this = root
#						NOT = { is_child_of = scope:second }
#					}
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_liege_female_lover
#		trigger = {
#			scope:second = {
#				has_relation_lover = root
#				is_female = yes
#				any_vassal_or_below = {
#					this = root
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_liege_male_lover
#		trigger = {
#			scope:second = {
#				has_relation_lover = root
#				is_female = no
#				any_vassal_or_below = {
#					this = root
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_lover_female
#		trigger = {
#			scope:second = {
#				any_relation = {
#					type = lover
#					this = root
#				}
#				is_female = yes
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_lover_male
#		trigger = {
#			scope:second = {
#				any_relation = {
#					type = lover
#					this = root
#				}
#				is_female = no
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_friend_female
#		trigger = {
#			scope:second = {
#				has_relation_friend = root
#				is_female = yes
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_friend_male
#		trigger = {
#			scope:second = {
#				has_relation_friend = root
#				is_female = no
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_liege_female_rival
#		trigger = {
#			scope:second = {
#				has_relation_rival = root
#				is_female = yes
#				any_vassal_or_below = {
#					this = root
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_liege_male_rival
#		trigger = {
#			scope:second = {
#				has_relation_rival = root
#				is_female = no
#				any_vassal_or_below = {
#					this = root
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_vassal_female_rival
#		trigger = {
#			scope:second = {
#				is_female = yes
#				has_relation_rival = root				
#			}
#			any_vassal_or_below = {
#				this = scope:second
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_vassal_male_rival
#		trigger = {
#			scope:second = {
#				is_female = no
#				has_relation_rival = root				
#			}
#			any_vassal_or_below = {
#				this = scope:second
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_rival_female
#		trigger = {
#			scope:second = {
#				any_relation = {
#					type = rival
#					this = root
#				}
#				is_female = yes
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_rival_male
#		trigger = {
#			scope:second = {
#				any_relation = {
#					type = rival
#					this = root
#				}
#				is_female = no
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_crush
#		trigger = {
#			any_relation = {
#				type = crush
#				this = scope:second
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_bully
#		trigger = {
#			scope:second = {
#				any_relation = {
#					type = victim
#					this = root
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_victim
#		trigger = {
#			scope:second = {
#				any_relation = {
#					type = bully
#					this = root
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_ward
#		trigger = {
#			scope:second = {
#				any_relation = {
#					type = guardian
#					this = root
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_guardian
#		trigger = {
#			scope:second = {
#				any_relation = {
#					type = ward
#					this = root
#				}
#			}
#		}
#	}
#
#	text = { #intrigue-mentor
#		localization_key = CustomLoc_ES_ElLa_Relation_mentor
#		trigger = {
#			scope:second = {
#				any_relation = {
#					type = intrigue_student
#					this = root
#				}
#			}
#		}
#	}
#
#	text = { #intrigue-mentor
#		localization_key = CustomLoc_ES_ElLa_Relation_student
#		trigger = {
#			scope:second = {
#				any_relation = {
#					type = intrigue_mentor
#					this = root
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_mentor
#		trigger = {
#			scope:second = {
#				any_relation = {
#					type = student
#					this = root
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_student
#		trigger = {
#			scope:second = {
#				any_relation = {
#					type = mentor
#					this = root
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_sisterinlaw
#		trigger = {
#			scope:second = {
#				is_female = yes
#				any_sibling = {
#					any_spouse = {
#						this = root
#					}
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_brotherinlaw
#		trigger = {
#			scope:second = {
#				is_female = no
#				any_sibling = {
#					any_spouse = {
#						this = root
#					}
#				}
#			}
#		}
#	}
#
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_liege_female
#		trigger = {
#			scope:second = {
#				is_female = yes
#				OR = {
#					any_vassal_or_below = {
#						this = root
#					}
#					any_courtier = {
#						this = root
#					}
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_liege_male
#		trigger = {
#			scope:second = {
#				is_female = no
#				OR = {
#					any_vassal_or_below = {
#						this = root
#					}
#					any_courtier = {
#						this = root
#					}
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_councillor_female
#		trigger = {
#			scope:second = {
#				is_female = yes			
#				is_councillor_of = root
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_councillor_male
#		trigger = {
#			scope:second = {
#				is_female = no				
#				is_councillor_of = root
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_court_physician_female
#		trigger = {
#			scope:second = { is_female = yes }
#			has_court_position = court_physician_court_position
#			is_court_position_employer = {
#		        court_position = court_physician_court_position
#		        who = root
#		    }
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_court_physician_female
#		trigger = {
#			scope:second = { is_male = yes }
#			has_court_position = court_physician_court_position
#			is_court_position_employer = {
#		        court_position = court_physician_court_position
#		        who = root
#		    }
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_vassal_female
#		trigger = {
#			scope:second = {
#				is_female = yes			
#			}
#			any_vassal_or_below = {
#				this = scope:second
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_vassal_male
#		trigger = {
#			scope:second = {
#				is_female = no				
#			}
#			any_vassal_or_below = {
#				this = scope:second
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_knight
#		trigger = {
#			scope:second = { is_knight_of = root }
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_kinswoman
#		trigger = {
#			scope:second = { is_female = yes }
#			scope:second.dynasty = root.dynasty
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_kinsman
#		trigger = {
#			scope:second = { is_male = yes }
#			scope:second.dynasty = root.dynasty
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_courtier_female
#		trigger = {
#			scope:second = {
#				is_courtier_of = root
#				is_female = yes
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_courtier_male
#		trigger = {
#			scope:second = {
#				is_courtier_of = root
#				is_male = yes
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_peasant_affair_female
#		trigger = {
#			any_owned_story = {
#				type = story_peasant_affair
#				var:peasant_character = {
#					this = scope:second
#					is_female = yes
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_peasant_affair_male
#		trigger = {
#			any_owned_story = {
#				type = story_peasant_affair
#				var:peasant_character = {
#					this = scope:second
#					is_male = yes
#				}
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_agent
#		trigger = {
#			any_scheme = {
#				scheme_is_character_agent = scope:second
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_host_female
#		trigger = {
#			host ?= scope:second
#			scope:second = { is_female = yes }
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_host_male
#		trigger = {
#			host ?= scope:second
#			scope:second = { is_male = yes }
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_guest_female
#		trigger = {
#			scope:second = {
#				is_female = yes
#				host ?= root
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_guest_female
#		trigger = {
#			scope:second = {
#				is_male = yes
#				host ?= root
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_acquaintance_female
#		trigger = {
#			scope:second = {
#				is_female = yes
#			}
#		}
#	}
#
#	text = {
#		localization_key = CustomLoc_ES_ElLa_Relation_acquaintance_male
#		trigger = {
#			scope:second = {
#				is_male = yes
#			}
#		}
#	}
#}
#
#ES_FaithGenderedAdj = { 
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			trigger_if = {
#				limit = { 
#					exists = this
#				}
#				this = { is_female = yes }
#			}
#		}
#		localization_key = CustomLoc_ES_FaithGenderedAdj_female
#	}
#	text = {
#		localization_key = CustomLoc_ES_FaithGenderedAdj_male
#		fallback = yes
#	}
#}
#
#ES_only_el_GetTitledFirstName = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = { # Príncipe
#			is_female = no
#			primary_title.tier <= tier_kingdom
#			OR = {
#				government_has_flag = government_is_feudal
#				government_has_flag = government_is_clan
#			}
#			OR = {
#				AND = {
#					exists = mother.primary_title
#					mother.primary_title.tier >= tier_kingdom
#				}
#				AND = {
#					exists = father.primary_title
#					father.primary_title.tier >= tier_kingdom
#				}
#			}
#		}
#		localization_key = CustomLoc_ES_el
#	}
#	text = {
#		trigger = { # Princesa
#			is_female = yes
#			primary_title.tier <= tier_kingdom
#			OR = {
#				government_has_flag = government_is_feudal
#				government_has_flag = government_is_clan
#			}
#			OR = {
#				AND = {
#					exists = mother.primary_title
#					mother.primary_title.tier >= tier_kingdom
#				}
#				AND = {
#					exists = father.primary_title
#					father.primary_title.tier >= tier_kingdom
#				}
#			}
#		}
#		localization_key = CustomLoc_ES_la
#	}
#	text = {
#		trigger = { # Reina madre
#			is_female = yes
#			government_has_flag = government_is_feudal
#			any_child = { primary_title.tier = tier_kingdom }
#			primary_title.tier < tier_kingdom
#		}
#		localization_key = CustomLoc_ES_la
#	}
#	text = {
#		trigger = {
#			OR = {
#				AND = { # emperor (Emperador), emperor_female (Emperatriz)
#					holds_landed_title = yes
#					primary_title.tier = tier_empire
#					NOT = {
#						culture = { has_cultural_pillar = heritage_central_germanic } # Kaiser
#						culture = { has_name_list = name_list_greek } # Basileus
#						has_title = title:d_shiite # Califa
#						has_title = title:d_sunni # Califa
#						has_title = title:k_papal_state
#						has_title = title:k_orthodox
#						has_title = title:d_iconoclast
#						has_title = title:d_conversos
#						has_title = title:d_karaism
#						has_title = title:d_haymanot
#						has_title = title:d_malabarism
#						has_title = title:d_samaritan
#						has_title = title:d_kabarism
#						has_title = title:d_mazdayasna
#						has_title = title:d_zurvanism
#						has_title = title:d_gayomarthianism
#						has_title = title:d_khurmazta
#						has_title = title:d_mazdakism
#						has_title = title:d_khurramism
#						has_title = title:d_urartuism
#					}
#				}
#				AND = { # duke_theocracy_male_paganism_religion (Arcipreste), duke_theocracy_female_paganism_religion (Archisacerdotisa)
#					holds_landed_title = yes
#					primary_title.tier = tier_duchy
#					government_has_flag = government_is_theocracy
#					religion = religion:paganism_religion
#					religion = religion:taoism_religion
#					religion = religion:bon_religion
#					religion = religion:folkgerman_religion
#					religion = religion:tengrism_religion
#					religion = religion:west_african_religion
#					religion = religion:west_african_bori_religion
#					religion = religion:west_african_roog_religion
#					religion = religion:zunism_religion
#				}
#				AND = { # king_feudal_male_uyghur (Idiqut), king_feudal_female_uyghur (Idiqut)
#					holds_landed_title = yes
#					primary_title.tier = tier_kingdom
#					culture = { has_name_list = name_list_uyghur }
#					OR = {
#						government_has_flag = government_is_feudal
#						government_has_flag = government_is_clan
#						government_has_flag = government_is_tribal
#					}
#				}
#				AND = { # prince_male_iberian_group (Infante), prince_female_iberian_group (Infanta)
#					age < 16
#					holds_landed_title = yes
#					primary_title.tier >= tier_kingdom
#					culture = { has_cultural_pillar = heritage_iberian }
#					government_has_flag = government_is_feudal
#				}
#				AND = { # duke_feudal_male_sogdian (Ikhshide)
#					is_female = no
#					culture = { has_name_list = name_list_sogdian }
#					holds_landed_title = yes
#					primary_title.tier = tier_duchy
#					OR = {
#						government_has_flag = government_is_feudal
#						government_has_flag = government_is_clan
#					}
#				}
#				AND = {
#					is_female = no
#					holds_landed_title = yes
#					primary_title.tier = tier_county
#					OR = {
#						AND = { # count_feudal_male_english (Earl)
#							government_has_flag = government_is_feudal
#							primary_title = { target_is_de_jure_liege_or_above = title:e_britannia }
#						}
#						AND = { # count_feudal_male_e_britannia (Earl)
#							OR = {
#								government_has_flag = government_is_feudal
#								government_has_flag = government_is_tribal
#							}
#							culture = { has_name_list = name_list_english }
#							culture = { has_name_list = name_list_anglo_saxon }
#							culture = { has_name_list = name_list_scottish }
#						}
#					}
#				}
#				AND = { # count_theocracy_male_ismaili (Ayatolá), count_theocracy_female_ismaili (Ayatolá)
#					holds_landed_title = yes
#					primary_title.tier = tier_county
#					government_has_flag = government_is_theocracy
#					faith = faith:ismaili
#				}
#				AND = { # baron_theocracy_male_zoroastrianism_religion (Ervad), baron_theocracy_female_zoroastrianism_religion (Ervad)
#					holds_landed_title = yes
#					primary_title.tier = tier_barony
#					government_has_flag = government_is_theocracy
#					religion = religion:zoroastrianism_religion
#				}
#				AND = { # baron_theocracy_male_west_african_bori_religion (Adjingi)
#					holds_landed_title = yes
#					primary_title.tier = tier_barony
#					government_has_flag = government_is_theocracy
#					religion = religion:west_african_bori_religion
#				}
#				AND = { # baron_feudal_male_iranian_group (Argbadh)
#					holds_landed_title = yes
#					primary_title.tier = tier_barony
#					OR = {
#						government_has_flag = government_is_feudal
#						government_has_flag = government_is_clan
#					}
#					culture = { has_cultural_pillar = heritage_iranian }
#				}
#				primary_title = title:k_austria # archduke (Archiduque), archduchess (Archiduquesa)
#			}
#		}
#		localization_key = CustomLoc_ES_el
#	}
#	text = {
#		trigger = {
#			is_female = no
#			OR = {
#				primary_title.tier >= tier_barony
#				any_spouse = { primary_title.tier >= tier_barony }
#			}
#		}
#		localization_key = CustomLoc_ES_la
#	}
#	text = {
#		trigger = {
#			is_female = yes
#			OR = {
#				primary_title.tier >= tier_barony
#				any_spouse = { primary_title.tier >= tier_barony }
#			}
#		}
#		localization_key = CustomLoc_ES_la
#	}
#	text = {
#		localization_key = ""
#		fallback = yes
#	}
#}
#
#ES_only_del_GetTitledFirstName = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = { # Príncipe
#			is_female = no
#			primary_title.tier <= tier_kingdom
#			OR = {
#				government_has_flag = government_is_feudal
#				government_has_flag = government_is_clan
#			}
#			OR = {
#				AND = {
#					exists = mother.primary_title
#					mother.primary_title.tier >= tier_kingdom
#				}
#				AND = {
#					exists = father.primary_title
#					father.primary_title.tier >= tier_kingdom
#				}
#			}
#		}
#		localization_key = CustomLoc_ES_del
#	}
#	text = {
#		trigger = { # Princesa
#			is_female = yes
#			primary_title.tier <= tier_kingdom
#			OR = {
#				government_has_flag = government_is_feudal
#				government_has_flag = government_is_clan
#			}
#			OR = {
#				AND = {
#					exists = mother.primary_title
#					mother.primary_title.tier >= tier_kingdom
#				}
#				AND = {
#					exists = father.primary_title
#					father.primary_title.tier >= tier_kingdom
#				}
#			}
#		}
#		localization_key = CustomLoc_ES_dela
#	}
#	text = {
#		trigger = { # Reina madre
#			is_female = yes
#			government_has_flag = government_is_feudal
#			any_child = { primary_title.tier = tier_kingdom }
#			primary_title.tier < tier_kingdom
#		}
#		localization_key = CustomLoc_ES_dela
#	}
#	text = {
#		trigger = {
#			OR = {
#				AND = { # emperor (Emperador), emperor_female (Emperatriz)
#					holds_landed_title = yes
#					primary_title.tier = tier_empire
#					NOT = {
#						culture = { has_cultural_pillar = heritage_central_germanic } # Kaiser
#						culture = { has_name_list = name_list_greek } # Basileus
#						has_title = title:d_shiite # Califa
#						has_title = title:d_sunni # Califa
#						has_title = title:k_papal_state
#						has_title = title:k_orthodox
#						has_title = title:d_iconoclast
#						has_title = title:d_conversos
#						has_title = title:d_karaism
#						has_title = title:d_haymanot
#						has_title = title:d_malabarism
#						has_title = title:d_samaritan
#						has_title = title:d_kabarism
#						has_title = title:d_mazdayasna
#						has_title = title:d_zurvanism
#						has_title = title:d_gayomarthianism
#						has_title = title:d_khurmazta
#						has_title = title:d_mazdakism
#						has_title = title:d_khurramism
#						has_title = title:d_urartuism
#					}
#				}
#				AND = { # duke_theocracy_male_paganism_religion (Arcipreste), duke_theocracy_female_paganism_religion (Archisacerdotisa)
#					holds_landed_title = yes
#					primary_title.tier = tier_duchy
#					government_has_flag = government_is_theocracy
#					religion = religion:paganism_religion
#					religion = religion:taoism_religion
#					religion = religion:bon_religion
#					religion = religion:folkgerman_religion
#					religion = religion:tengrism_religion
#					religion = religion:west_african_religion
#					religion = religion:west_african_bori_religion
#					religion = religion:west_african_roog_religion
#					religion = religion:zunism_religion
#				}
#				AND = { # king_feudal_male_uyghur (Idiqut), king_feudal_female_uyghur (Idiqut)
#					holds_landed_title = yes
#					primary_title.tier = tier_kingdom
#					culture = { has_name_list = name_list_uyghur }
#					OR = {
#						government_has_flag = government_is_feudal
#						government_has_flag = government_is_clan
#						government_has_flag = government_is_tribal
#					}
#				}
#				AND = { # prince_male_iberian_group (Infante), prince_female_iberian_group (Infanta)
#					age < 16
#					holds_landed_title = yes
#					primary_title.tier >= tier_kingdom
#					culture = { has_cultural_pillar = heritage_iberian }
#					government_has_flag = government_is_feudal
#				}
#				AND = { # duke_feudal_male_sogdian (Ikhshide)
#					is_female = no
#					culture = { has_name_list = name_list_sogdian }
#					holds_landed_title = yes
#					primary_title.tier = tier_duchy
#					OR = {
#						government_has_flag = government_is_feudal
#						government_has_flag = government_is_clan
#					}
#				}
#				AND = {
#					is_female = no
#					holds_landed_title = yes
#					primary_title.tier = tier_county
#					OR = {
#						AND = { # count_feudal_male_english (Earl)
#							government_has_flag = government_is_feudal
#							primary_title = { target_is_de_jure_liege_or_above = title:e_britannia }
#						}
#						AND = { # count_feudal_male_e_britannia (Earl)
#							OR = {
#								government_has_flag = government_is_feudal
#								government_has_flag = government_is_tribal
#							}
#							culture = { has_name_list = name_list_english }
#							culture = { has_name_list = name_list_anglo_saxon }
#							culture = { has_name_list = name_list_scottish }
#						}
#					}
#				}
#				AND = { # count_theocracy_male_ismaili (Ayatolá), count_theocracy_female_ismaili (Ayatolá)
#					holds_landed_title = yes
#					primary_title.tier = tier_county
#					government_has_flag = government_is_theocracy
#					faith = faith:ismaili
#				}
#				AND = { # baron_theocracy_male_zoroastrianism_religion (Ervad), baron_theocracy_female_zoroastrianism_religion (Ervad)
#					holds_landed_title = yes
#					primary_title.tier = tier_barony
#					government_has_flag = government_is_theocracy
#					religion = religion:zoroastrianism_religion
#				}
#				AND = { # baron_theocracy_male_west_african_bori_religion (Adjingi)
#					holds_landed_title = yes
#					primary_title.tier = tier_barony
#					government_has_flag = government_is_theocracy
#					religion = religion:west_african_bori_religion
#				}
#				AND = { # baron_feudal_male_iranian_group (Argbadh)
#					holds_landed_title = yes
#					primary_title.tier = tier_barony
#					OR = {
#						government_has_flag = government_is_feudal
#						government_has_flag = government_is_clan
#					}
#					culture = { has_cultural_pillar = heritage_iranian }
#				}
#				primary_title = title:k_austria # archduke (Archiduque), archduchess (Archiduquesa)
#			}
#		}
#		localization_key = CustomLoc_ES_del
#	}
#	text = {
#		trigger = {
#			is_female = no
#			OR = {
#				primary_title.tier >= tier_barony
#				any_spouse = { primary_title.tier >= tier_barony }
#			}
#		}
#		localization_key = CustomLoc_ES_del
#	}
#	text = {
#		trigger = {
#			is_female = yes
#			OR = {
#				primary_title.tier >= tier_barony
#				any_spouse = { primary_title.tier >= tier_barony }
#			}
#		}
#		localization_key = CustomLoc_ES_dela
#	}
#	text = {
#		localization_key = CustomLoc_ES_del
#		fallback = yes
#	}
#}
#
#ES_only_al_GetTitledFirstName = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = { # Príncipe
#			is_female = no
#			primary_title.tier <= tier_kingdom
#			OR = {
#				government_has_flag = government_is_feudal
#				government_has_flag = government_is_clan
#			}
#			OR = {
#				AND = {
#					exists = mother.primary_title
#					mother.primary_title.tier >= tier_kingdom
#				}
#				AND = {
#					exists = father.primary_title
#					father.primary_title.tier >= tier_kingdom
#				}
#			}
#		}
#		localization_key = CustomLoc_ES_al
#	}
#	text = {
#		trigger = { # Princesa
#			is_female = yes
#			primary_title.tier <= tier_kingdom
#			OR = {
#				government_has_flag = government_is_feudal
#				government_has_flag = government_is_clan
#			}
#			OR = {
#				AND = {
#					exists = mother.primary_title
#					mother.primary_title.tier >= tier_kingdom
#				}
#				AND = {
#					exists = father.primary_title
#					father.primary_title.tier >= tier_kingdom
#				}
#			}
#		}
#		localization_key = CustomLoc_ES_ala
#	}
#	text = {
#		trigger = { # Reina madre
#			is_female = yes
#			government_has_flag = government_is_feudal
#			any_child = { primary_title.tier = tier_kingdom }
#			primary_title.tier < tier_kingdom
#		}
#		localization_key = CustomLoc_ES_ala
#	}
#	text = {
#		trigger = {
#			OR = {
#				AND = { # emperor (Emperador), emperor_female (Emperatriz)
#					holds_landed_title = yes
#					primary_title.tier = tier_empire
#					NOT = {
#						culture = { has_cultural_pillar = heritage_central_germanic } # Kaiser
#						culture = { has_name_list = name_list_greek } # Basileus
#						has_title = title:d_shiite # Califa
#						has_title = title:d_sunni # Califa
#						has_title = title:k_papal_state
#						has_title = title:k_orthodox
#						has_title = title:d_iconoclast
#						has_title = title:d_conversos
#						has_title = title:d_karaism
#						has_title = title:d_haymanot
#						has_title = title:d_malabarism
#						has_title = title:d_samaritan
#						has_title = title:d_kabarism
#						has_title = title:d_mazdayasna
#						has_title = title:d_zurvanism
#						has_title = title:d_gayomarthianism
#						has_title = title:d_khurmazta
#						has_title = title:d_mazdakism
#						has_title = title:d_khurramism
#						has_title = title:d_urartuism
#					}
#				}
#				AND = { # duke_theocracy_male_paganism_religion (Arcipreste), duke_theocracy_female_paganism_religion (Archisacerdotisa)
#					holds_landed_title = yes
#					primary_title.tier = tier_duchy
#					government_has_flag = government_is_theocracy
#					religion = religion:paganism_religion
#					religion = religion:taoism_religion
#					religion = religion:bon_religion
#					religion = religion:folkgerman_religion
#					religion = religion:tengrism_religion
#					religion = religion:west_african_religion
#					religion = religion:west_african_bori_religion
#					religion = religion:west_african_roog_religion
#					religion = religion:zunism_religion
#				}
#				AND = { # king_feudal_male_uyghur (Idiqut), king_feudal_female_uyghur (Idiqut)
#					holds_landed_title = yes
#					primary_title.tier = tier_kingdom
#					culture = { has_name_list = name_list_uyghur }
#					OR = {
#						government_has_flag = government_is_feudal
#						government_has_flag = government_is_clan
#						government_has_flag = government_is_tribal
#					}
#				}
#				AND = { # prince_male_iberian_group (Infante), prince_female_iberian_group (Infanta)
#					age < 16
#					holds_landed_title = yes
#					primary_title.tier >= tier_kingdom
#					culture = { has_cultural_pillar = heritage_iberian }
#					government_has_flag = government_is_feudal
#				}
#				AND = { # duke_feudal_male_sogdian (Ikhshide)
#					is_female = no
#					culture = { has_name_list = name_list_sogdian }
#					holds_landed_title = yes
#					primary_title.tier = tier_duchy
#					OR = {
#						government_has_flag = government_is_feudal
#						government_has_flag = government_is_clan
#					}
#				}
#				AND = {
#					is_female = no
#					holds_landed_title = yes
#					primary_title.tier = tier_county
#					OR = {
#						AND = { # count_feudal_male_english (Earl)
#							government_has_flag = government_is_feudal
#							primary_title = { target_is_de_jure_liege_or_above = title:e_britannia }
#						}
#						AND = { # count_feudal_male_e_britannia (Earl)
#							OR = {
#								government_has_flag = government_is_feudal
#								government_has_flag = government_is_tribal
#							}
#							culture = { has_name_list = name_list_english }
#							culture = { has_name_list = name_list_anglo_saxon }
#							culture = { has_name_list = name_list_scottish }
#						}
#					}
#				}
#				AND = { # count_theocracy_male_ismaili (Ayatolá), count_theocracy_female_ismaili (Ayatolá)
#					holds_landed_title = yes
#					primary_title.tier = tier_county
#					government_has_flag = government_is_theocracy
#					faith = faith:ismaili
#				}
#				AND = { # baron_theocracy_male_zoroastrianism_religion (Ervad), baron_theocracy_female_zoroastrianism_religion (Ervad)
#					holds_landed_title = yes
#					primary_title.tier = tier_barony
#					government_has_flag = government_is_theocracy
#					religion = religion:zoroastrianism_religion
#				}
#				AND = { # baron_theocracy_male_west_african_bori_religion (Adjingi)
#					holds_landed_title = yes
#					primary_title.tier = tier_barony
#					government_has_flag = government_is_theocracy
#					religion = religion:west_african_bori_religion
#				}
#				AND = { # baron_feudal_male_iranian_group (Argbadh)
#					holds_landed_title = yes
#					primary_title.tier = tier_barony
#					OR = {
#						government_has_flag = government_is_feudal
#						government_has_flag = government_is_clan
#					}
#					culture = { has_cultural_pillar = heritage_iranian }
#				}
#				primary_title = title:k_austria # archduke (Archiduque), archduchess (Archiduquesa)
#			}
#		}
#		localization_key = CustomLoc_ES_al
#	}
#	text = {
#		trigger = {
#			is_female = no
#			OR = {
#				primary_title.tier >= tier_barony
#				any_spouse = { primary_title.tier >= tier_barony }
#			}
#		}
#		localization_key = CustomLoc_ES_al
#	}
#	text = {
#		trigger = {
#			is_female = yes
#			OR = {
#				primary_title.tier >= tier_barony
#				any_spouse = { primary_title.tier >= tier_barony }
#			}
#		}
#		localization_key = CustomLoc_ES_ala
#	}
#	text = {
#		localization_key = CustomLoc_ES_al
#		fallback = yes
#	}
#}
#
#ES_only_el_GetShortUIName = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			is_local_player = yes
#		}
#		localization_key = ""
#	}
#	text = {
#		trigger = { # Príncipe
#			is_female = no
#			primary_title.tier <= tier_kingdom
#			OR = {
#				government_has_flag = government_is_feudal
#				government_has_flag = government_is_clan
#			}
#			OR = {
#				AND = {
#					exists = mother.primary_title
#					mother.primary_title.tier >= tier_kingdom
#				}
#				AND = {
#					exists = father.primary_title
#					father.primary_title.tier >= tier_kingdom
#				}
#			}
#		}
#		localization_key = CustomLoc_ES_el
#	}
#	text = {
#		trigger = { # Princesa
#			is_female = yes
#			primary_title.tier <= tier_kingdom
#			OR = {
#				government_has_flag = government_is_feudal
#				government_has_flag = government_is_clan
#			}
#			OR = {
#				AND = {
#					exists = mother.primary_title
#					mother.primary_title.tier >= tier_kingdom
#				}
#				AND = {
#					exists = father.primary_title
#					father.primary_title.tier >= tier_kingdom
#				}
#			}
#		}
#		localization_key = CustomLoc_ES_la
#	}
#	text = {
#		trigger = { # Reina madre
#			is_female = yes
#			government_has_flag = government_is_feudal
#			any_child = { primary_title.tier = tier_kingdom }
#			primary_title.tier < tier_kingdom
#		}
#		localization_key = CustomLoc_ES_la
#	}
#	text = {
#		trigger = {
#			OR = {
#				AND = { # emperor (Emperador), emperor_female (Emperatriz)
#					holds_landed_title = yes
#					primary_title.tier = tier_empire
#					NOT = {
#						culture = { has_cultural_pillar = heritage_central_germanic } # Kaiser
#						culture = { has_name_list = name_list_greek } # Basileus
#						has_title = title:d_shiite # Califa
#						has_title = title:d_sunni # Califa
#						has_title = title:k_papal_state
#						has_title = title:k_orthodox
#						has_title = title:d_iconoclast
#						has_title = title:d_conversos
#						has_title = title:d_karaism
#						has_title = title:d_haymanot
#						has_title = title:d_malabarism
#						has_title = title:d_samaritan
#						has_title = title:d_kabarism
#						has_title = title:d_mazdayasna
#						has_title = title:d_zurvanism
#						has_title = title:d_gayomarthianism
#						has_title = title:d_khurmazta
#						has_title = title:d_mazdakism
#						has_title = title:d_khurramism
#						has_title = title:d_urartuism
#					}
#				}
#				AND = { # duke_theocracy_male_paganism_religion (Arcipreste), duke_theocracy_female_paganism_religion (Archisacerdotisa)
#					holds_landed_title = yes
#					primary_title.tier = tier_duchy
#					government_has_flag = government_is_theocracy
#					religion = religion:paganism_religion
#					religion = religion:taoism_religion
#					religion = religion:bon_religion
#					religion = religion:folkgerman_religion
#					religion = religion:tengrism_religion
#					religion = religion:west_african_religion
#					religion = religion:west_african_bori_religion
#					religion = religion:west_african_roog_religion
#					religion = religion:zunism_religion
#				}
#				AND = { # king_feudal_male_uyghur (Idiqut), king_feudal_female_uyghur (Idiqut)
#					holds_landed_title = yes
#					primary_title.tier = tier_kingdom
#					culture = { has_name_list = name_list_uyghur }
#					OR = {
#						government_has_flag = government_is_feudal
#						government_has_flag = government_is_clan
#						government_has_flag = government_is_tribal
#					}
#				}
#				AND = { # prince_male_iberian_group (Infante), prince_female_iberian_group (Infante)
#					age < 16
#					holds_landed_title = yes
#					primary_title.tier >= tier_kingdom
#					culture = { has_cultural_pillar = heritage_iberian }
#					government_has_flag = government_is_feudal
#				}
#				AND = { # duke_feudal_male_sogdian (Ikhshide)
#					is_female = no
#					culture = { has_name_list = name_list_sogdian }
#					holds_landed_title = yes
#					primary_title.tier = tier_duchy
#					OR = {
#						government_has_flag = government_is_feudal
#						government_has_flag = government_is_clan
#					}
#				}
#				AND = {
#					is_female = no
#					holds_landed_title = yes
#					primary_title.tier = tier_county
#					OR = {
#						AND = { # count_feudal_male_english (Earl)
#							government_has_flag = government_is_feudal
#							primary_title = { target_is_de_jure_liege_or_above = title:e_britannia }
#						}
#						AND = { # count_feudal_male_e_britannia (Earl)
#							OR = {
#								government_has_flag = government_is_feudal
#								government_has_flag = government_is_tribal
#							}
#							culture = { has_name_list = name_list_english }
#							culture = { has_name_list = name_list_anglo_saxon }
#							culture = { has_name_list = name_list_scottish }
#						}
#					}
#				}
#				AND = { # count_theocracy_male_ismaili (Ayatolá), count_theocracy_female_ismaili (Ayatolá)
#					holds_landed_title = yes
#					primary_title.tier = tier_county
#					government_has_flag = government_is_theocracy
#					faith = faith:ismaili
#				}
#				AND = { # baron_theocracy_male_zoroastrianism_religion (Ervad), baron_theocracy_female_zoroastrianism_religion (Ervad)
#					holds_landed_title = yes
#					primary_title.tier = tier_barony
#					government_has_flag = government_is_theocracy
#					religion = religion:zoroastrianism_religion
#				}
#				AND = { # baron_theocracy_male_west_african_bori_religion (Adjingi)
#					holds_landed_title = yes
#					primary_title.tier = tier_barony
#					government_has_flag = government_is_theocracy
#					religion = religion:west_african_bori_religion
#				}
#				AND = { # baron_feudal_male_iranian_group (Argbadh)
#					holds_landed_title = yes
#					primary_title.tier = tier_barony
#					OR = {
#						government_has_flag = government_is_feudal
#						government_has_flag = government_is_clan
#					}
#					culture = { has_cultural_pillar = heritage_iranian }
#				}
#				primary_title = title:k_austria # archduke (Archiduque), archduchess (Archiduquesa)
#			}
#		}
#		localization_key = CustomLoc_ES_el
#	}
#	text = {
#		trigger = {
#			is_female = no
#			OR = {
#				primary_title.tier >= tier_barony
#				any_spouse = { primary_title.tier >= tier_barony }
#			}
#		}
#		localization_key = CustomLoc_ES_el
#	}
#	text = {
#		trigger = {
#			is_female = yes
#			OR = {
#				primary_title.tier >= tier_barony
#				any_spouse = { primary_title.tier >= tier_barony }
#			}
#		}
#		localization_key = CustomLoc_ES_la
#	}
#	text = {
#		localization_key = ""
#		fallback = yes
#	}
#}
#
#ES_only_de_GetShortUIName = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			is_local_player = yes
#		}
#		localization_key = CustomLoc_ES_del
#	}
#	text = {
#		trigger = { # Príncipe
#			is_female = no
#			primary_title.tier <= tier_kingdom
#			OR = {
#				government_has_flag = government_is_feudal
#				government_has_flag = government_is_clan
#			}
#			OR = {
#				AND = {
#					exists = mother.primary_title
#					mother.primary_title.tier >= tier_kingdom
#				}
#				AND = {
#					exists = father.primary_title
#					father.primary_title.tier >= tier_kingdom
#				}
#			}
#		}
#		localization_key = CustomLoc_ES_del
#	}
#	text = {
#		trigger = { # Princesa
#			is_female = yes
#			primary_title.tier <= tier_kingdom
#			OR = {
#				government_has_flag = government_is_feudal
#				government_has_flag = government_is_clan
#			}
#			OR = {
#				AND = {
#					exists = mother.primary_title
#					mother.primary_title.tier >= tier_kingdom
#				}
#				AND = {
#					exists = father.primary_title
#					father.primary_title.tier >= tier_kingdom
#				}
#			}
#		}
#		localization_key = CustomLoc_ES_dela
#	}
#	text = {
#		trigger = { # Reina madre
#			is_female = yes
#			government_has_flag = government_is_feudal
#			any_child = { primary_title.tier = tier_kingdom }
#			primary_title.tier < tier_kingdom
#		}
#		localization_key = CustomLoc_ES_dela
#	}
#	text = {
#		trigger = {
#			OR = {
#				AND = { # emperor (Emperador), emperor_female (Emperatriz)
#					holds_landed_title = yes
#					primary_title.tier = tier_empire
#					NOT = {
#						culture = { has_cultural_pillar = heritage_central_germanic } # Kaiser
#						culture = { has_name_list = name_list_greek } # Basileus
#						has_title = title:d_shiite # Califa
#						has_title = title:d_sunni # Califa
#						has_title = title:k_papal_state
#						has_title = title:k_orthodox
#						has_title = title:d_iconoclast
#						has_title = title:d_conversos
#						has_title = title:d_karaism
#						has_title = title:d_haymanot
#						has_title = title:d_malabarism
#						has_title = title:d_samaritan
#						has_title = title:d_kabarism
#						has_title = title:d_mazdayasna
#						has_title = title:d_zurvanism
#						has_title = title:d_gayomarthianism
#						has_title = title:d_khurmazta
#						has_title = title:d_mazdakism
#						has_title = title:d_khurramism
#						has_title = title:d_urartuism
#					}
#				}
#				AND = { # duke_theocracy_male_paganism_religion (Arcipreste), duke_theocracy_female_paganism_religion (Archisacerdotisa)
#					holds_landed_title = yes
#					primary_title.tier = tier_duchy
#					government_has_flag = government_is_theocracy
#					religion = religion:paganism_religion
#					religion = religion:taoism_religion
#					religion = religion:bon_religion
#					religion = religion:folkgerman_religion
#					religion = religion:tengrism_religion
#					religion = religion:west_african_religion
#					religion = religion:west_african_bori_religion
#					religion = religion:west_african_roog_religion
#					religion = religion:zunism_religion
#				}
#				AND = { # king_feudal_male_uyghur (Idiqut), king_feudal_female_uyghur (Idiqut)
#					holds_landed_title = yes
#					primary_title.tier = tier_kingdom
#					culture = { has_name_list = name_list_uyghur }
#					OR = {
#						government_has_flag = government_is_feudal
#						government_has_flag = government_is_clan
#						government_has_flag = government_is_tribal
#					}
#				}
#				AND = { # prince_male_iberian_group (Infante), prince_female_iberian_group (Infante)
#					age < 16
#					holds_landed_title = yes
#					primary_title.tier >= tier_kingdom
#					culture = { has_cultural_pillar = heritage_iberian }
#					government_has_flag = government_is_feudal
#				}
#				AND = { # duke_feudal_male_sogdian (Ikhshide)
#					is_female = no
#					culture = { has_name_list = name_list_sogdian }
#					holds_landed_title = yes
#					primary_title.tier = tier_duchy
#					OR = {
#						government_has_flag = government_is_feudal
#						government_has_flag = government_is_clan
#					}
#				}
#				AND = {
#					is_female = no
#					holds_landed_title = yes
#					primary_title.tier = tier_county
#					OR = {
#						AND = { # count_feudal_male_english (Earl)
#							government_has_flag = government_is_feudal
#							primary_title = { target_is_de_jure_liege_or_above = title:e_britannia }
#						}
#						AND = { # count_feudal_male_e_britannia (Earl)
#							OR = {
#								government_has_flag = government_is_feudal
#								government_has_flag = government_is_tribal
#							}
#							culture = { has_name_list = name_list_english }
#							culture = { has_name_list = name_list_anglo_saxon }
#							culture = { has_name_list = name_list_scottish }
#						}
#					}
#				}
#				AND = { # count_theocracy_male_ismaili (Ayatolá), count_theocracy_female_ismaili (Ayatolá)
#					holds_landed_title = yes
#					primary_title.tier = tier_county
#					government_has_flag = government_is_theocracy
#					faith = faith:ismaili
#				}
#				AND = { # baron_theocracy_male_zoroastrianism_religion (Ervad), baron_theocracy_female_zoroastrianism_religion (Ervad)
#					holds_landed_title = yes
#					primary_title.tier = tier_barony
#					government_has_flag = government_is_theocracy
#					religion = religion:zoroastrianism_religion
#				}
#				AND = { # baron_theocracy_male_west_african_bori_religion (Adjingi)
#					holds_landed_title = yes
#					primary_title.tier = tier_barony
#					government_has_flag = government_is_theocracy
#					religion = religion:west_african_bori_religion
#				}
#				AND = { # baron_feudal_male_iranian_group (Argbadh)
#					holds_landed_title = yes
#					primary_title.tier = tier_barony
#					OR = {
#						government_has_flag = government_is_feudal
#						government_has_flag = government_is_clan
#					}
#					culture = { has_cultural_pillar = heritage_iranian }
#				}
#				primary_title = title:k_austria # archduke (Archiduque), archduchess (Archiduquesa)
#			}
#		}
#		localization_key = CustomLoc_ES_del
#	}
#	text = {
#		trigger = {
#			is_female = no
#			OR = {
#				primary_title.tier >= tier_barony
#				any_spouse = { primary_title.tier >= tier_barony }
#			}
#		}
#		localization_key = CustomLoc_ES_del
#	}
#	text = {
#		trigger = {
#			is_female = yes
#			OR = {
#				primary_title.tier >= tier_barony
#				any_spouse = { primary_title.tier >= tier_barony }
#			}
#		}
#		localization_key = CustomLoc_ES_dela
#	}
#	text = {
#		localization_key = CustomLoc_ES_del
#		fallback = yes
#	}
#}
#
#ES_only_a_GetShortUIName = {
#	type = character
#	log_loc_errors = no
#	text = {
#		trigger = {
#			is_local_player = yes
#		}
#		localization_key = CustomLoc_ES_al
#	}
#	text = {
#		trigger = { # Príncipe
#			is_female = no
#			primary_title.tier <= tier_kingdom
#			OR = {
#				government_has_flag = government_is_feudal
#				government_has_flag = government_is_clan
#			}
#			OR = {
#				AND = {
#					exists = mother.primary_title
#					mother.primary_title.tier >= tier_kingdom
#				}
#				AND = {
#					exists = father.primary_title
#					father.primary_title.tier >= tier_kingdom
#				}
#			}
#		}
#		localization_key = CustomLoc_ES_al
#	}
#	text = {
#		trigger = { # Princesa
#			is_female = yes
#			primary_title.tier <= tier_kingdom
#			OR = {
#				government_has_flag = government_is_feudal
#				government_has_flag = government_is_clan
#			}
#			OR = {
#				AND = {
#					exists = mother.primary_title
#					mother.primary_title.tier >= tier_kingdom
#				}
#				AND = {
#					exists = father.primary_title
#					father.primary_title.tier >= tier_kingdom
#				}
#			}
#		}
#		localization_key = CustomLoc_ES_ala
#	}
#	text = {
#		trigger = { # Reina madre
#			is_female = yes
#			government_has_flag = government_is_feudal
#			any_child = { primary_title.tier = tier_kingdom }
#			primary_title.tier < tier_kingdom
#		}
#		localization_key = CustomLoc_ES_ala
#	}
#	text = {
#		trigger = {
#			OR = {
#				AND = { # emperor (Emperador), emperor_female (Emperatriz)
#					holds_landed_title = yes
#					primary_title.tier = tier_empire
#					NOT = {
#						culture = { has_cultural_pillar = heritage_central_germanic } # Kaiser
#						culture = { has_name_list = name_list_greek } # Basileus
#						has_title = title:d_shiite # Califa
#						has_title = title:d_sunni # Califa
#						has_title = title:k_papal_state
#						has_title = title:k_orthodox
#						has_title = title:d_iconoclast
#						has_title = title:d_conversos
#						has_title = title:d_karaism
#						has_title = title:d_haymanot
#						has_title = title:d_malabarism
#						has_title = title:d_samaritan
#						has_title = title:d_kabarism
#						has_title = title:d_mazdayasna
#						has_title = title:d_zurvanism
#						has_title = title:d_gayomarthianism
#						has_title = title:d_khurmazta
#						has_title = title:d_mazdakism
#						has_title = title:d_khurramism
#						has_title = title:d_urartuism
#					}
#				}
#				AND = { # duke_theocracy_male_paganism_religion (Arcipreste), duke_theocracy_female_paganism_religion (Archisacerdotisa)
#					holds_landed_title = yes
#					primary_title.tier = tier_duchy
#					government_has_flag = government_is_theocracy
#					religion = religion:paganism_religion
#					religion = religion:taoism_religion
#					religion = religion:bon_religion
#					religion = religion:folkgerman_religion
#					religion = religion:tengrism_religion
#					religion = religion:west_african_religion
#					religion = religion:west_african_bori_religion
#					religion = religion:west_african_roog_religion
#					religion = religion:zunism_religion
#				}
#				AND = { # king_feudal_male_uyghur (Idiqut), king_feudal_female_uyghur (Idiqut)
#					holds_landed_title = yes
#					primary_title.tier = tier_kingdom
#					culture = { has_name_list = name_list_uyghur }
#					OR = {
#						government_has_flag = government_is_feudal
#						government_has_flag = government_is_clan
#						government_has_flag = government_is_tribal
#					}
#				}
#				AND = { # prince_male_iberian_group (Infante), prince_female_iberian_group (Infante)
#					age < 16
#					holds_landed_title = yes
#					primary_title.tier >= tier_kingdom
#					culture = { has_cultural_pillar = heritage_iberian }
#					government_has_flag = government_is_feudal
#				}
#				AND = { # duke_feudal_male_sogdian (Ikhshide)
#					is_female = no
#					culture = { has_name_list = name_list_sogdian }
#					holds_landed_title = yes
#					primary_title.tier = tier_duchy
#					OR = {
#						government_has_flag = government_is_feudal
#						government_has_flag = government_is_clan
#					}
#				}
#				AND = {
#					is_female = no
#					holds_landed_title = yes
#					primary_title.tier = tier_county
#					OR = {
#						AND = { # count_feudal_male_english (Earl)
#							government_has_flag = government_is_feudal
#							primary_title = { target_is_de_jure_liege_or_above = title:e_britannia }
#						}
#						AND = { # count_feudal_male_e_britannia (Earl)
#							OR = {
#								government_has_flag = government_is_feudal
#								government_has_flag = government_is_tribal
#							}
#							culture = { has_name_list = name_list_english }
#							culture = { has_name_list = name_list_anglo_saxon }
#							culture = { has_name_list = name_list_scottish }
#						}
#					}
#				}
#				AND = { # count_theocracy_male_ismaili (Ayatolá), count_theocracy_female_ismaili (Ayatolá)
#					holds_landed_title = yes
#					primary_title.tier = tier_county
#					government_has_flag = government_is_theocracy
#					faith = faith:ismaili
#				}
#				AND = { # baron_theocracy_male_zoroastrianism_religion (Ervad), baron_theocracy_female_zoroastrianism_religion (Ervad)
#					holds_landed_title = yes
#					primary_title.tier = tier_barony
#					government_has_flag = government_is_theocracy
#					religion = religion:zoroastrianism_religion
#				}
#				AND = { # baron_theocracy_male_west_african_bori_religion (Adjingi)
#					holds_landed_title = yes
#					primary_title.tier = tier_barony
#					government_has_flag = government_is_theocracy
#					religion = religion:west_african_bori_religion
#				}
#				AND = { # baron_feudal_male_iranian_group (Argbadh)
#					holds_landed_title = yes
#					primary_title.tier = tier_barony
#					OR = {
#						government_has_flag = government_is_feudal
#						government_has_flag = government_is_clan
#					}
#					culture = { has_cultural_pillar = heritage_iranian }
#				}
#				primary_title = title:k_austria # archduke (Archiduque), archduchess (Archiduquesa)
#			}
#		}
#		localization_key = CustomLoc_ES_al
#	}
#	text = {
#		trigger = {
#			is_female = no
#			OR = {
#				primary_title.tier >= tier_barony
#				any_spouse = { primary_title.tier >= tier_barony }
#			}
#		}
#		localization_key = CustomLoc_ES_al
#	}
#	text = {
#		trigger = {
#			is_female = yes
#			OR = {
#				primary_title.tier >= tier_barony
#				any_spouse = { primary_title.tier >= tier_barony }
#			}
#		}
#		localization_key = CustomLoc_ES_ala
#	}
#	text = {
#		localization_key = CustomLoc_ES_al
#		fallback = yes
#	}
#}
#