flotilla_prefix = {
	type = country
	random_valid = no

	text = {
		trigger = {
			OR = {
				AND = {
					has_law = law_type:law_monarchy # "His/Her Majesty's Ship" only makes sense for monarchies
					exists = c:GBR
					this = c:GBR
				}
				AND = {
					has_law = law_type:law_monarchy # "Hans/Hennes Majestäts Skepp" only makes sense for monarchies
					exists = c:SWE
					this = c:SWE
				}
			}
		}
		localization_key = flotilla_prefix_hms_sv
	}
	text = {
		trigger = {
			has_law = law_type:law_monarchy # "Seiner Majestät Schiff" only makes sense for monarchies
			OR = {
				AND = {
					exists = c:AUS
					this = c:AUS
				}
				# AND = {
					# exists = c:KUK
					# this = c:KUK
				# }
				AND = {
					exists = c:PRU
					this = c:PRU
				}
				AND = {
					exists = c:GER
					this = c:GER
				}
			}
		}
		localization_key = flotilla_prefix_sms
	}
	text = {
		trigger = {
			has_law = law_type:law_monarchy # "Nava Majestăţii Sale" only makes sense for monarchies
			OR = {
				AND = {
					exists = c:ROM
					this = c:ROM
				}
				AND = {
					exists = c:WAL
					this = c:WAL
				}
				AND = {
					exists = c:MOL
					this = c:MOL
				}
			}
		}
		localization_key = flotilla_prefix_nms
	}
	text = {
		trigger = {
			has_law = law_type:law_monarchy
			exists = c:HAW
			this = c:HAW
		}
		localization_key = flotilla_prefix_hhms
	}
	text = {
		trigger = {
			has_law = law_type:law_monarchy # "Regia Nave" only makes sense for monarchies
			exists = c:ITA
			this = c:ITA
		}
		localization_key = flotilla_prefix_rn
	}

	# THE DUTCH
	text = {
		trigger = {
			has_law = law_type:law_monarchy # "Zijner Majesteits" only makes sense for monarchies
			ruler = {
				is_female = no # "Zijner Majesteits" is masculine
			}
			exists = c:NET
			this = c:NET
		}
		localization_key = flotilla_prefix_net_zrms
	}
	text = {
		trigger = {
			has_law = law_type:law_monarchy # "Harer Majesteits" only makes sense for monarchies
			ruler = {
				is_female = yes # "Harer Majesteits" is feminine
			}
			exists = c:NET
			this = c:NET
		}
		localization_key = flotilla_prefix_net_hrms
	}
	#

	text = {
		trigger = {
			has_law = law_type:law_monarchy # "Kongelige Danske Marine" only makes sense for monarchies
			exists = c:DEN
			this = c:DEN
		}
		localization_key = flotilla_prefix_kdm
	}
	text = {
		trigger = {
			has_law = law_type:law_monarchy # "Vassilikón Ploíon" only makes sense for monarchies
			exists = c:GRE
			this = c:GRE
		}
		localization_key = flotilla_prefix_vp
	}
	text = {
		trigger = {
			NOT = { has_law = law_type:law_monarchy } # "Türkiye Cumhuriyeti Gemisi" only applies if TUR is /not/ the Ottoman Empire
			exists = c:TUR
			this = c:TUR
		}
		localization_key = flotilla_prefix_tcg 
	}
	text = {
		trigger = {
			OR = { # "Armada de la República Mexicana" only makes sense if Mexico is a republic
				has_law = law_type:law_presidential_republic
				has_law = law_type:law_parliamentary_republic
				has_law = law_type:law_council_republic
			} 
			exists = c:MEX
			this = c:MEX
		}
		localization_key = flotilla_prefix_arm
	}
	# text = {
		# trigger = {
			# OR = { # "Armada República de Venezuela" only makes sense if Venezuela is a republic
				# has_law = law_type:law_presidential_republic
				# has_law = law_type:law_parliamentary_republic
				# has_law = law_type:law_council_republic
			# }
			# exists = c:VNZ
			# this = c:VNZ
		# }
		# localization_key = flotilla_prefix_arv
	# }
    # text = {
		# trigger = {
			# exists = c:USA
			# this = c:USA
		# }
		# localization_key = flotilla_prefix_uss
	# }
    # text = {
		# trigger = {
			# exists = c:CSA
			# this = c:CSA
		# }
		# localization_key = flotilla_prefix_css
	# }

	### generic fallback

    text = {
		trigger = {
			always = yes
		}
		localization_key = flotilla_prefix_blank # Many countries used no prefix at all
	}
}

troop_name = {
	type = building
	random_valid = no
	
	text = {
		trigger = {
			is_building_type = building_barracks
		}
		localization_key = troop_name_regular
	}
	text = {
		trigger = {
			is_building_type = building_conscription_center
		}
		localization_key = troop_name_conscript
	}
}