# Hyperref ignores \setdefaultlanguage from polyglossia

I use polyglossia to set my default language with \setdefaultlanguage to German. This works for the captions of tables, figures etc. I want to reference to these figures with the \autoref command of the hyperref package. But hyperref ignores the default language setting. But the reference name stays English (Table), although the caption title is showed German (Tabelle).

A minimal XeLaTeX example:

\documentclass{article}
\usepackage{xltxtra}
\usepackage{polyglossia}
\usepackage{hyperref}
\setdefaultlanguage{german}
\begin{document}
\begin{table}
\centering
\caption{Testtabelle}
\begin{tabular}{lr}
bla     & blub \\
blabla  & blubblub \\
\end{tabular}
\label{test}
\end{table}
Die Tabelle \autoref{test}.
\end{document}

I use a workaround \renewcommand{\tableautorefname}{Tabelle} to rename the reference. But of course, this is only a workaround and no real solution.

Has anybody any idea solving this issue?

-

A workaround is to pass the language as package option to hyperref:

\documentclass{article}
\usepackage{polyglossia}
\setdefaultlanguage{german}
\usepackage[german]{hyperref}
\begin{document}
\begin{table}
\centering
\caption{Testtabelle}
\begin{tabular}{lr}
bla     & blub \\
blabla  & blubblub \\
\end{tabular}
\label{test}
\end{table}
Die Tabelle \autoref{test}.
\end{document}
-
Yes, this works, too. –  kay102 Jun 21 '11 at 14:05