You modify the fixed word by doing
\addto\extraslatin{\renewcommand{\partname}{}}
Your attempt doesn't work, because \begin{document}
issues \selectlanguage{latin}
, which sets \partname
to “Pars” unless modified.
However, this is not a particularly good way to remove the word, because it wouldn't remove the space.
\documentclass[12pt,openright]{book}
\usepackage[T1]{fontenc}
\usepackage[english,main=latin]{babel}
\addto\extraslatin{\renewcommand{\partname}[1]{}}
\begin{document}
\part{Pīrāta Veterānus}
\end{document}

Compare with the result if you just use \renewcommand{\partname}{}
:

Sorry for the images with different size, but check the alignment and you'll see that in the latter picture the I is moved to the right.
The book
class only uses \partname
in the definition of \@part
. This is however not guaranteed to work with other packages such as titlesec
.
The line \usepackage{fontenc}[utf8]
is meaningless. I changed it to \usepackage[T1]{fontenc}
.
You possibly wanted to do \usepackage[utf8]{inputenc}
, but this is no longer needed on recent TeX distributions.
\partname=PARS
? :-)