5

When I use the "translator" field in bibtex (with fontspec and Italian as mainlanguage), for example in a entry like the following one:

    @Book{ apollodoro:2013,
    author                   = "Apollodoro",
    title                    = "Biblioteca",
    editor                   = "P. Scarpi",
    translator               = "M. G. Ciani",
    publisher                = "Valla Mondadori",
    location                 = "Milano",
    year                     = "2013\textsuperscript{2}",
    }

I obtain "trad. da. M. G. Ciani". For, in my opinion, the most common and correct way to translate that string is "trad. it. di M. G. Ciani", I ask you if there is a way to change the current Italian tranlation.

  • Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it with \documentclass{...}, the required \usepackage's, \begin{document}, and \end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. – Mike Renfro Mar 1 '14 at 23:28
8

The string in question here corresponds to bytranslator, whose Italian localization can be found in the file italian.lbx; you can change the default definition using \DefineBibliographyStrings:

\documentclass{article}
\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage{italian}
\usepackage{biblatex}

\makeatletter
\DefineBibliographyStrings{italian}{%
  bytranslator     = {{trad\adddot\ it\adddot\ \lbx@sfromlang\ di}}
}
\makeatother

% this section is just for the example
\usepackage{filecontents}
\begin{filecontents*}{test.bib}
@book{apollodoro:2013,
    author                   = "Apollodoro",
    title                    = "Biblioteca",
    editor                   = "P. Scarpi",
    translator               = "M. G. Ciani",
    publisher                = "Valla Mondadori",
    location                 = "Milano",
    year                     = "2013\textsuperscript{2}",
    }
\end{filecontents*}
% end of section for the example

\addbibresource{test.bib}

\begin{document}

\cite{apollodoro:2013}
\printbibliography

\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.