# babel package and lstlisting caption incompatibility

I am using babel package for Turkish language and I also use listings package. A code sample for one of my listings is as follows:

\begin{lstlisting}[label=some-code,caption=Poo Class]
public class Person {

public int ID { get; set; }
public string Name { get; set; }
public string Surname { get; set; }

}
\end{lstlisting}


As header, what I am getting is this:

Listing 7.1: Poo Class

I would like it to be like this:

Kod Örneği 7.1: Poo Class

Am I asking too much?

-

## 1 Answer

Redefine \lstlistingname:

\renewcommand\lstlistingname{New name}

-
Sweet! Will be accepted as answer 6 minutes later. It doesn't allow me to do that right now ;) –  tugberk Nov 10 '11 at 20:01