I am Portuguese and I need to display some Python code in my document. I am already familiar with the listing package. I am used to write in English (so I have never stumble upon this problem before), the Portuguese document class does not translate the Listings label in caption. How can I do this? At the moment I am using the Title option but I would really like to give a label to those code listings (in Portuguese).
Now I have tried to mess with the
\captionsetup
, from what I understand the command should be the followingCode: Select all
\captionsetup[listing]{name=Exemplo de código}
Thanks!