latex listing renaming

im working on a project and on my paper im requiered to name the listings “Auflistung” but latex keeps naming them “Abbildung”. I tried using the comand renewcommand{lstlistingname}{Auflistung} but its not working as it keeps naming the list ing “Abbildung”
this is in my preamble:

usepackage{mathptmx}
usepackage[scaled=.92]{helvet}
usepackage{courier}  
usepackage[a4paper, 
margin=2.54cm, 
marginparwidth=2.0cm, 
footskip=1.0cm]{geometry}
clubpenalty=10000 
widowpenalty=10000 
displaywidowpenalty=10000

usepackage[
    style=alphabetic,
    backend=biber,
    %backref=true
    ]{biblatex}  

bibliography{jobname.bib} 
DeclareFieldFormat*{title}{
    mkbibemph{#1}} 

usepackage{amssymb, amsmath} 
usepackage{bm}
usepackage{graphicx}
usepackage[
    breaklinks,
    hidelinks,
    pdfdisplaydoctitle,
    pdfpagemode = {UseOutlines},
    pdfpagelabels,
    ]{hyperref}            
    urlstyle{rm}  
%usepackage{apacite}
usepackage{ngerman}
usepackage{microtype}
usepackage{listings}
usepackage{float}
usepackage{caption}
usepackage{xargs}
usepackage[pdftex,dvipsnames]{xcolor}
usepackage{scrhack}

renewcommand{lstlistingname}{Auflistung}

lstset{
    language=Python, % Setzen Sie die Sprache
    basicstyle=ttfamilysmall, % Grundstil
    keywordstyle=color{blue}, % Stil für Schlüsselwörter
    commentstyle=color{gray}, % Stil für Kommentare
    stringstyle=color{red}, % Stil für Strings
    numberstyle=tinycolor{gray}, % Stil für Zeilennummern
    stepnumber=1, % Jede Zeile nummerieren
    numbersep=0pt, % Abstand zwischen Nummern und Code
    showstringspaces=false, % Leerzeichen in Strings nicht anzeigen
    tabsize=4, % Tabulatorgröße
    breaklines=true, % Zeilen umbrechen
    breakatwhitespace=false, % Zeilenumbruch nur bei Leerzeichen
    numbers=left, % Zeilennummern links anzeigen
    firstnumber=1, % Erste Zeilennummer
    numberfirstline=true, % Nummeriert die erste Zeile
}

% 
setlength {marginparwidth }{2cm}
usepackage[colorinlistoftodos,prependcaption,textsize=tiny]{todonotes}
newcommandx{unsure}[2][1=]{todo[linecolor=red,backgroundcolor=red!25,bordercolor=red,#1]{#2}}
newcommandx{change}[2][1=]{todo[linecolor=blue,backgroundcolor=blue!25,bordercolor=blue,#1]{#2}}
newcommandx{info}[2][1=]{todo[linecolor=OliveGreen,backgroundcolor=OliveGreen!25,bordercolor=OliveGreen,#1]{#2}}
newcommandx{improvement}[2][1=]{todo[linecolor=Plum,backgroundcolor=Plum!25,bordercolor=Plum,#1]{#2}}
newcommandx{thiswillnotshow}[2][1=]{todo[disable,#1]{#2}}

and this is a example of how i use the listing:

 begin{figure}[H]
        centering
        begin{minipage}{1textwidth}
    begin{lstlisting}
        def prozess(env):  
            yield env.timeout(5)     
    end{lstlisting}
    end{minipage}
    caption{Simples Beispiel wie das Timeout-Event in SimPy verwendet wird.}
    label{fig:SimPyTimeout}
    end{figure}

i really have no idea what to do so any help would be appreciated

i used renewcommand{lstlistingname}{Auflistung} but that dosen’t work

New contributor

ben b is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật