I want to set the caption for referenced listings:
\documentclass{scrbook}
\usepackage{listings}
\usepackage{varioref}
\usepackage{hyperref}
\usepackage{cleveref}
\begin{document}
\crefname{lstlisting}{Quelltext}{Quelltext}
\Crefname{lstlisting}{Quelltext}{Quelltext}
Ref: \ref{test}.
Cref: \vref{test}.
\clearpage
\begin{lstlisting}[caption={Test},label={test}]
test
\end{lstlisting}
\end{document}
According to another post, I'd expect Quelltext 1 but it prints listing 1.
What is wrong?

\crefname{listing}{Quelltext}{Quelltext}works. I don't know why the package decided to uselistinginstead oflstlisting. – egreg Dec 08 '12 at 21:30