IberiaSacredLanguage = {
	type = character
	
	text = {
		trigger = { OR = { faith.religion = religion:protestant_religion faith.religion = religion:catholic_religion faith.religion = religion:eastern_orthodox_religion } }
		localization_key = language_latin_name #Latin
	}
	
	text = {
		trigger = { faith.religion = religion:judaism_religion }
		localization_key = IberiaSacredLanguage_hebrew #Hebrew
	}
	
	text = {
		trigger = { faith.religion = religion:islam_religion }
		localization_key = language_arabic_name #Arabic
	}
}

IberiaRomanceLanguage = {
	type = character
	
	text = {
		trigger = {	OR = { faith.religion = religion:protestant_religion faith.religion = religion:catholic_religion faith.religion = religion:eastern_orthodox_religion } }
		localization_key = IberiaRomanceLanguage_castilian #Castilian
	}
	
	#text = { # I couldn't find evidence of a unique Jewish dialect until after the expulsion of the jews in 1492, when Ladino was coined - AN
	#	trigger = { religion = religion:judaism_religion }
	#	localization_key = IberiaRomanceLanguage_sephardi #Sephardi
	#}
	
	text = {
		trigger = { faith.religion = religion:islam_religion }
		localization_key = IberiaRomanceLanguage_mozarabic #Mozarabic #TO_DO_CD: This should be an actual language for our Mozarabs, but would require a culture creation - AN
	}
}

#Key to pick out liturgical language of the faith of a province or character - if one exists
#Uses "Archaic-[spoken language]" as fallback
#Specific Fallbacks exists for:
#Catholic
#Orthodox
#Nestorian
#Judaism
#Islam
#Buddhism
#Hinduism
#Tibetan
#Taoism
#Jainism
#Zoroastrianism
#Greco-Roman

GetFaithSacredLanguage = {
	type = all
	
	text = {
		trigger = {
			OR = {
				religion = religion:catholic_religion
			}
		}
		localization_key = language_latin_name #Latin
	}

#	text = {
#		trigger = { faith = faith:armenian_apostolic }
#		localization_key = language_armenian_name #Armenian
#	}

	text = {
		trigger = {
				religion = religion:eastern_orthodox_religion
		}
		localization_key = language_greek_name #Greek
	}
	
	text = { 
		trigger = { religion = religion:judaism_religion }
		localization_key = language_israelite_name #Hebrew
	}
	
	text = {
		trigger = { religion = religion:islam_religion }
		localization_key = language_arabic_name #Arabic
	}
	
	text = {
		trigger = { religion = religion:zoroastrianism_religion }
		localization_key = language_avestan_name #Avestan
	}

	text = {
		trigger = { faith = faith:theravada }
		localization_key = language_pali_name #Pali
	}

#	text = {
#		trigger = {
#			OR = {
#				faith = faith:lamaism
#				religion = religion:bon_religion
#				AND = {
#					faith = faith:vajrayana
#					culture = {
#						has_cultural_pillar = heritage_tibetan
#					}
#				}
#			}
#		}
#		localization_key = language_classical_tibetan_name #Classical Tibetan
#	}

	text = {
		trigger = {
			religion = religion:taoism_religion
		}
		localization_key = language_chinese_name
	}

	text = { #Could also be Vedic & Old Tamil
		trigger = {
			OR = {
				religion = religion:hinduism_religion
				religion = religion:buddhism_religion
				religion = religion:jainism_religion
			}
		}
		localization_key = language_sanskrit_name #Sanskrit
	}

	text = {
		trigger = {
			always = yes
		}
		fallback = yes
		localization_key = fallback_liturgical_province_language #Archaic-X - based on culture instead of Faith.
	}
}


GetFaithSacredLanguageCharacter = {
	type = character
	
	text = {
		trigger = {
			religion = religion:catholic_religion
		}
		localization_key = language_latin_name #Latin
	}

#	text = {
#		trigger = { faith = faith:armenian_apostolic }
#		localization_key = language_armenian_name #Armenian
#	}

	text = {
		trigger = {
			religion = religion:eastern_orthodox_religion
		}
		localization_key = language_greek_name #Greek
	}
	
	text = { 
		trigger = { religion = religion:judaism_religion }
		localization_key = language_israelite_name #Hebrew
	}
	
	text = {
		trigger = { religion = religion:islam_religion }
		localization_key = language_arabic_name #Arabic
	}
	
	text = {
		trigger = { religion = religion:zoroastrianism_religion }
		localization_key = language_avestan_name #Avestan
	}

	text = {
		trigger = { faith = faith:theravada }
		localization_key = language_pali_name #Pali
	}

#	text = {
#		trigger = {
#			OR = {
#				faith = faith:lamaism
#				religion = religion:bon_religion
#				AND = {
#					faith = faith:vajrayana
#					culture = {
#						has_cultural_pillar = heritage_tibetan
#					}
#				}
#			}
#		}
#		localization_key = language_classical_tibetan_name #Classical Tibetan
#	}

	text = {
		trigger = {
			religion = religion:taoism_religion
		}
		localization_key = language_chinese_name
	}

	text = { #Could also be Vedic & Old Tamil
		trigger = {
			OR = {
				religion = religion:hinduism_religion
				religion = religion:buddhism_religion
				religion = religion:jainism_religion
			}
		}
		localization_key = language_sanskrit_name #Sanskrit
	}
	text = {
		trigger = {
			always = yes
		}
		fallback = yes
		localization_key = fallback_liturgical_character_language #Archaic-X - based on culture instead of Faith.
	}
}
