Consider the following MWE:
\documentclass{beamer}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[spanish]{babel}
\uselanguage{Spanish}
\languagepath{Spanish}
\deftranslation[to=Spanish]{Proposition}{Proposición}
\newtheorem{proposition}[theorem]{Proposition}
\begin{document}
\begin{frame}
\begin{proposition}
Foo
\end{proposition}
\end{frame}
\end{document}
This will print the Proposition environment as Proposition
and I want it printed as Proposición
. I know I can define the new environment as \newtheorem{proposition}[theorem]{Proposición}
but I was wondering if the translation can be done automatically i.e if the language of the document is spanish
and a new theorem environment is defined as \newtheorem{proposition}[theorem]{Proposition}
then print the word Proposition
in spanish.
\propositionname
in the same way thatbabel
sets up things like\bibname
. That is, you need a language-sensitive macro to triggerbabel
's magic. – cfr Sep 18 '14 at 23:55beamer
uses its own translation-setup. That is, it does not usebabel
. If you look atbeamerbasemisc.sty
, you can find a note to the effect that the translation stuff is 'suboptimal' and thatbabel
should be used (but isn't). So forbeamer
, you might need to look at the waybeamer
does it. – cfr Sep 19 '14 at 1:47