@@ -49,15 +49,15 @@ def tr(key: str, **kws) -> str:
4949DE = {
5050 'Expecting no return value when calling function `{fun}`.' :
5151 'Kein Rückgabewert erwartet bei Aufruf der Funktion `{fun}`.' ,
52- 'Expecting no return value when calling method `{method}` of class `{cls}.' :
53- 'Kein Rückgabewert erwartet bei Aufruf der Methode `{method}` aus Klasse `{cls}`.' ,
52+ 'Expecting no return value when calling method `{method}` of class `{cls}` .' :
53+ 'Kein Rückgabewert erwartet bei Aufruf der Methode `{method}` der Klasse `{cls}`.' ,
5454 'Expecting no return value when calling constructor of record `{cls}`.' :
5555 'Kein Rückgabewert erwartet bei Aufruf des Konstruktors des Records `{cls}`.' ,
5656
5757 'Expecting return value of type `{ty}` when calling function `{fun}`.' :
5858 'Rückgabewert vom Typ `{ty}` erwartet bei Aufruf der Funktion `{fun}`.' ,
5959 'Expecting return value of type `{ty}` when calling method `{method}` of class `{cls}`.' :
60- 'Rückgabewert vom Typ `{ty}` erwartet bei Aufruf von Methode `{method}` aus Klasse `{cls}`.' ,
60+ 'Rückgabewert vom Typ `{ty}` erwartet bei Aufruf der Methode `{method}` der Klasse `{cls}`.' ,
6161 'Expecting return value of type `{ty}` when calling constructor of record `{cls}`.' :
6262 'Rückgabewert vom Typ `{ty}` erwartet bei Aufruf des Konstruktors des Records `{cls}`.' ,
6363
@@ -71,14 +71,14 @@ def tr(key: str, **kws) -> str:
7171 'Aufruf in Zeile {line} führt dazu, dass die Funktion keinen Wert zurückgibt:' ,
7272
7373 'The call of function `{fun}` expects value of type `{ty}` as {arg}.' :
74- 'Der Aufruf der Funktion `{fun}` erwartet Wert vom Typ `{ty}` als {arg}.' ,
74+ 'Der Aufruf der Funktion `{fun}` erwartet einen Wert vom Typ `{ty}` als {arg}.' ,
7575 'The call of method `{method}` of class `{cls}` expects value of type `{ty}` as {arg}.' :
76- 'Der Aufruf der Methode `{method}` aus Klasse `{cls}` erwartet Wert vom Typ `{ty}` als {arg}.' ,
76+ 'Der Aufruf der Methode `{method}` der Klasse `{cls}` erwartet einen Wert vom Typ `{ty}` als {arg}.' ,
7777 'The call of the constructor of record `{cls}` expects value of type `{ty}` as {arg}.' :
78- 'Der Aufruf des Konstruktors des Records `{cls}` erwartet Wert vom Typ `{ty}` als {arg}.' ,
78+ 'Der Aufruf des Konstruktors des Records `{cls}` erwartet einen Wert vom Typ `{ty}` als {arg}.' ,
7979
80- 'But the value given has type `{ty}`.' : 'Aber der übergebene Wert hat Typ `{ty}`.' ,
81- 'But the default value has type `{ty}`.' : 'Aber der Default-Wert hat Typ `{ty}`.' ,
80+ 'But the value given has type `{ty}`.' : 'Aber der übergebene Wert hat den Typ `{ty}`.' ,
81+ 'But the default value has type `{ty}`.' : 'Aber der Default-Wert hat den Typ `{ty}`.' ,
8282
8383 'File' : 'Datei' ,
8484 'Line' : 'Zeile' ,
@@ -93,22 +93,22 @@ def tr(key: str, **kws) -> str:
9393 'Parameter `{param}` of function `{fun}` requires a type annotation.' :
9494 'Parameter `{param}` der Funktion `{fun}` benötigt eine Typannotation.' ,
9595 'Parameter `{param}` of method `{method}` from class `{cls}` requires a type annotation.' :
96- 'Parameter `{param}` der Methode `{method}` aus Klasse `{cls}` benötigt eine Typannotation.' ,
96+ 'Parameter `{param}` der Methode `{method}` der Klasse `{cls}` benötigt eine Typannotation.' ,
9797 'Parameter `{param}` of constructor of record `{cls}` requires a type annotation.' :
9898 'Parameter `{param}` des Konstruktors des Records `{cls}` benötigt eine Typannotation.' ,
9999
100- 'Attribute `{name}` of record `{record}` required a type annotation.' :
100+ 'Attribute `{name}` of record `{record}` requires a type annotation.' :
101101 'Attribut `{name}` des Records `{record}` benötigt eine Typannotation.' ,
102102
103103 'invalid type `{ty}`' :
104104 'ungültiger Typ `{ty}`' ,
105105 'Cannot set attribute to value of type `{ty}`.' :
106- 'Das Attribute kann nicht auf einen Wert vom Typ `{ty}` gesetzt werden.' ,
106+ 'Das Attribut kann nicht auf einen Wert vom Typ `{ty}` gesetzt werden.' ,
107107 'Problematic assignment in line' : 'Fehlerhafte Zuweisung in Zeile' ,
108- 'Attribute `{attrName}` of record `{recordName}` declared with type `{ty}.` ' :
108+ 'Attribute `{attrName}` of record `{recordName}` declared with type `{ty}`. ' :
109109 'Attribut `{attrName}` des Records `{recordName}` deklariert als Typ `{ty}`.' ,
110110
111- 'argument count mismatch' : 'Anzahl der Argument passt nicht' ,
111+ 'argument count mismatch' : 'Anzahl der Argumente stimmt nicht' ,
112112 'Call in line' : 'Aufruf in Zeile' ,
113113 'Function `{fun}` takes ' : 'Funktion `{fun}` benötigt ' ,
114114 'Function `{fun}` takes at least ' : 'Funktion `{fun}` benötigt mindestens ' ,
@@ -124,12 +124,12 @@ def tr(key: str, **kws) -> str:
124124 'Default value for parameter `{paramName}` of function `{fun}` must have type `{ty}`.' :
125125 'Default-Wert des Parameters `{paramName}` der Funktion `{fun}` muss vom Typ `{ty}` sein.' ,
126126 'Default value for parameter `{paramName}` of method `{method}` in class `{cls}` must have type `{ty}`.' :
127- 'Default-Wert des Parameters `{paramName}` der Methode `{method}` aus Klasse `{cls}` muss vom Typ `{ty}` sein.' ,
127+ 'Default-Wert des Parameters `{paramName}` der Methode `{method}` der Klasse `{cls}` muss vom Typ `{ty}` sein.' ,
128128 'Default value for attribute `{paramName}` of record `{cls}` must have type `{ty}`.' :
129129 'Default-Wert des Attributs `{paramName}` des Records `{cls}` muss vom Typ `{ty}` sein.' ,
130130
131131 'Unknown attribute {attrName} for record {clsName}' :
132- 'Attribut {attrName} ist nicht bekannt für Record {clsName}' ,
132+ 'Attribut {attrName} ist nicht bekannt für den Record {clsName}' ,
133133 'Did you mean `{ty}`?' : 'Wolltest du `{ty}` schreiben?' ,
134134
135135 'unknown keyword argument' : 'unbekanntes Schlüsselwort-Argument' ,
@@ -152,13 +152,12 @@ def tr(key: str, **kws) -> str:
152152 'The impossible happened!' : 'Das Unmögliche ist passiert!' ,
153153 'Stop of execution' : 'Abbruch der Ausführung' ,
154154 '1 successful test' : '1 erfolgreicher Test' ,
155- 'all succesful' : 'alle erfolgreich' ,
156- 'and stop of execution' : 'und Abbruch der Ausführung' ,
157155 'all successful' : 'alle erfolgreich' ,
156+ 'and stop of execution' : 'und Abbruch der Ausführung' ,
158157
159158 'NOTE: running the code failed, some definitions might not be available in the interactive window!' :
160- 'ACHTUNG: der Code enthält Fehler, einige Definition sind möglicherweise in interaktiven Fenster nicht verfügbar!'
161-
159+ 'ACHTUNG: Das Ausführen des Codes ist fehlgeschlagen; einige Definitionen sind möglicherweise im interaktiven Fenster nicht verfügbar!' ,
160+ '=== WELCOME to ' : '=== WILLKOMMEN bei '
162161}
163162
164163def expectingNoReturn (cn : location .CallableName ) -> str :
@@ -167,7 +166,7 @@ def expectingNoReturn(cn: location.CallableName) -> str:
167166 return tr ('Expecting no return value when calling function `{fun}`.' ,
168167 fun = cn .name )
169168 case location .ClassMember ('method' , cls ):
170- return tr ('Expecting no return value when calling method `{method}` of class `{cls}.' ,
169+ return tr ('Expecting no return value when calling method `{method}` of class `{cls}` .' ,
171170 method = cn .name , cls = cls )
172171 case location .ClassMember ('recordConstructor' , cls ):
173172 return tr ('Expecting no return value when calling constructor of record `{cls}`.' ,
@@ -339,7 +338,7 @@ def expectingTypeAnnotation(cn: location.CallableName, param: str) -> str:
339338 raise ValueError (f'Unexpected: { cn } ' )
340339
341340def noTypeAnnotationForAttribute (attrName : str , recordName : str ) -> str :
342- return tr ('Attribute `{name}` of record `{record}` required a type annotation.' ,
341+ return tr ('Attribute `{name}` of record `{record}` requires a type annotation.' ,
343342 name = attrName , record = recordName )
344343
345344def invalidTy (ty : Any ) -> str :
@@ -349,7 +348,7 @@ def didYouMean(ty: str) -> str:
349348 return tr ('Did you mean `{ty}`?' , ty = ty )
350349
351350def recordAttrDeclTy (recordName : str , attrName : str , ty : Any ) -> str :
352- return tr ('Attribute `{attrName}` of record `{recordName}` declared with type `{ty}.` ' ,
351+ return tr ('Attribute `{attrName}` of record `{recordName}` declared with type `{ty}`. ' ,
353352 recordName = recordName , attrName = attrName , ty = ty )
354353
355354def unknownKeywordArgument (cn : location .CallableName , name : str ) -> str :
0 commit comments