@@ -294,7 +294,10 @@ impl SessionDefinition {
294294 "Duplicate session field '{}' in session '{}'" ,
295295 field. name, self . name
296296 ) ,
297- & format ! ( "Doppeltes Feld '{}' in Session '{}'" , field. name, self . name) ,
297+ & format ! (
298+ "Duplicate field '{}' in session '{}'" ,
299+ field. name, self . name
300+ ) ,
298301 ) ) ) ;
299302 }
300303 self . field_order . push ( field. name . clone ( ) ) ;
@@ -315,7 +318,10 @@ impl SessionDefinition {
315318 "Duplicate session field '{}' in session '{}'" ,
316319 field. name, self . name
317320 ) ,
318- & format ! ( "Doppeltes Feld '{}' in Session '{}'" , field. name, self . name) ,
321+ & format ! (
322+ "Duplicate field '{}' in session '{}'" ,
323+ field. name, self . name
324+ ) ,
319325 ) ) ) ;
320326 }
321327 self . static_field_order . push ( field. name . clone ( ) ) ;
@@ -335,10 +341,7 @@ impl SessionDefinition {
335341 if self . constructor . is_some ( ) {
336342 return Err ( InterpreterError :: Runtime ( localized (
337343 & format ! ( "Multiple constructors declared in session '{}'" , self . name) ,
338- & format ! (
339- "Mehrere Konstruktoren in Session '{}' deklariert" ,
340- self . name
341- ) ,
344+ & format ! ( "Multiple constructors declared in session '{}'" , self . name) ,
342345 ) ) ) ;
343346 }
344347 self . constructor = Some ( method) ;
@@ -353,7 +356,7 @@ impl SessionDefinition {
353356 method. name, self . name
354357 ) ,
355358 & format ! (
356- "Doppelte statische Methode '{}' in Session '{}'" ,
359+ "Duplicate static method '{}' in session '{}'" ,
357360 method. name, self . name
358361 ) ,
359362 ) ) ) ;
@@ -367,7 +370,7 @@ impl SessionDefinition {
367370 method. name, self . name
368371 ) ,
369372 & format ! (
370- "Doppelte Methode '{}' in Session '{}'" ,
373+ "Duplicate method '{}' in session '{}'" ,
371374 method. name, self . name
372375 ) ,
373376 ) ) ) ;
@@ -406,7 +409,7 @@ impl SessionDefinition {
406409 name, self . name
407410 ) ,
408411 & format ! (
409- "Statisches Feld '{}' nicht in Session '{}' gefunden " ,
412+ "Static field '{}' not found on session '{}'" ,
410413 name, self . name
411414 ) ,
412415 ) ) ) ,
@@ -1386,7 +1389,7 @@ impl Interpreter {
13861389 }
13871390 _ => Err ( InterpreterError :: Runtime ( localized (
13881391 "Invalid assignment target" ,
1389- "Ungültiges Zuweisungsziel " ,
1392+ "Invalid assignment target " ,
13901393 ) ) ) ,
13911394 } ,
13921395
@@ -1791,11 +1794,11 @@ impl Interpreter {
17911794 Value :: Session ( session) => self . instantiate_session ( session. clone ( ) , args) ,
17921795 Value :: Null => Err ( InterpreterError :: Runtime ( localized (
17931796 "Cannot call null value" ,
1794- "Null-Wert kann nicht aufgerufen werden " ,
1797+ "Cannot call null value " ,
17951798 ) ) ) ,
17961799 _ => Err ( InterpreterError :: Runtime ( localized (
17971800 "Value is not callable" ,
1798- "Wert ist nicht aufrufbar " ,
1801+ "Value is not callable " ,
17991802 ) ) ) ,
18001803 }
18011804 }
@@ -1813,7 +1816,7 @@ impl Interpreter {
18131816 args. len( )
18141817 ) ,
18151818 & format ! (
1816- "Erwartet {} Argumente, erhalten {}" ,
1819+ "Expected {} arguments, received {}" ,
18171820 function. parameters. len( ) ,
18181821 args. len( )
18191822 ) ,
@@ -1915,7 +1918,7 @@ impl Interpreter {
19151918 definition. name( )
19161919 ) ,
19171920 & format ! (
1918- "Konstruktor in Session '{}' darf nicht statisch sein " ,
1921+ "Constructor in session '{}' cannot be static " ,
19191922 definition. name( )
19201923 ) ,
19211924 ) ) ) ;
@@ -1979,7 +1982,7 @@ impl Interpreter {
19791982 args. len( )
19801983 ) ,
19811984 & format ! (
1982- "Konstruktor der Session '{}' erwartet {} Argumente, erhalten {}" ,
1985+ "Constructor for session '{}' expects {} arguments, received {}" ,
19831986 session. name( ) ,
19841987 constructor. parameters. len( ) ,
19851988 args. len( )
@@ -2000,7 +2003,7 @@ impl Interpreter {
20002003 session. name( )
20012004 ) ,
20022005 & format ! (
2003- "Session '{}' definiert keinen Konstruktor, dennoch wurden Argumente übergeben " ,
2006+ "Session '{}' does not define a constructor but arguments were provided " ,
20042007 session. name( )
20052008 ) ,
20062009 ) ) ) ;
@@ -2122,7 +2125,7 @@ impl Interpreter {
21222125 property
21232126 ) ,
21242127 & format ! (
2125- "Session-Instanz von '{}' besitzt kein Mitglied '{}'" ,
2128+ "Session instance of '{}' has no member '{}'" ,
21262129 definition. name( ) ,
21272130 property
21282131 ) ,
@@ -2161,7 +2164,7 @@ impl Interpreter {
21612164 property
21622165 ) ,
21632166 & format ! (
2164- "Session '{}' besitzt kein statisches Mitglied '{}'" ,
2167+ "Session '{}' has no static member '{}'" ,
21652168 session_rc. name( ) ,
21662169 property
21672170 ) ,
@@ -2180,10 +2183,7 @@ impl Interpreter {
21802183 }
21812184 other => Err ( InterpreterError :: Runtime ( localized (
21822185 & format ! ( "Cannot access member '{}' on value '{}'" , property, other) ,
2183- & format ! (
2184- "Mitglied '{}' kann auf Wert '{}' nicht zugegriffen werden" ,
2185- property, other
2186- ) ,
2186+ & format ! ( "Cannot access member '{}' on value '{}'" , property, other) ,
21872187 ) ) ) ,
21882188 }
21892189 }
@@ -2217,7 +2217,7 @@ impl Interpreter {
22172217 {
22182218 return Err ( InterpreterError :: Runtime ( localized (
22192219 & format ! ( "Cannot assign to method '{}'" , property) ,
2220- & format ! ( "Zuweisung zur Methode '{}' nicht möglich " , property) ,
2220+ & format ! ( "Cannot assign to method '{}'" , property) ,
22212221 ) ) ) ;
22222222 }
22232223
@@ -2229,7 +2229,7 @@ impl Interpreter {
22292229 definition. name( )
22302230 ) ,
22312231 & format ! (
2232- "Statisches Feld '{}' muss über die Session '{}' gesetzt werden " ,
2232+ "Assign static field '{}' through session '{}', not an instance " ,
22332233 property,
22342234 definition. name( )
22352235 ) ,
@@ -2243,7 +2243,7 @@ impl Interpreter {
22432243 property
22442244 ) ,
22452245 & format ! (
2246- "Session-Instanz von '{}' besitzt kein Feld '{}'" ,
2246+ "Session instance of '{}' has no field '{}'" ,
22472247 definition. name( ) ,
22482248 property
22492249 ) ,
@@ -2264,10 +2264,7 @@ impl Interpreter {
22642264 if session_rc. get_static_method_definition ( property) . is_some ( ) {
22652265 return Err ( InterpreterError :: Runtime ( localized (
22662266 & format ! ( "Cannot assign to static method '{}'" , property) ,
2267- & format ! (
2268- "Zuweisung zu statischer Methode '{}' nicht möglich" ,
2269- property
2270- ) ,
2267+ & format ! ( "Cannot assign to static method '{}'" , property) ,
22712268 ) ) ) ;
22722269 }
22732270
@@ -2278,15 +2275,15 @@ impl Interpreter {
22782275 property
22792276 ) ,
22802277 & format ! (
2281- "Session '{}' besitzt kein statisches Feld '{}'" ,
2278+ "Session '{}' has no static field '{}'" ,
22822279 session_rc. name( ) ,
22832280 property
22842281 ) ,
22852282 ) ) )
22862283 }
22872284 _ => Err ( InterpreterError :: Runtime ( localized (
22882285 "Assignment target is not a session member" ,
2289- "Zuweisungsziel ist kein Session-Mitglied " ,
2286+ "Assignment target is not a session member " ,
22902287 ) ) ) ,
22912288 }
22922289 }
@@ -2305,7 +2302,7 @@ impl Interpreter {
23052302 member_kind, member_name, session_name
23062303 ) ,
23072304 & format ! (
2308- "Zugriff auf privates {} '{}' der Session '{}' verweigert " ,
2305+ "Access denied to private {} '{}' of session '{}'" ,
23092306 member_kind, member_name, session_name
23102307 ) ,
23112308 ) ) ) ;
@@ -3218,10 +3215,7 @@ impl Interpreter {
32183215 if is_const {
32193216 return Err ( InterpreterError :: Runtime ( localized (
32203217 & format ! ( "Cannot reassign constant variable '{}'" , name) ,
3221- & format ! (
3222- "Konstante Variable '{}' kann nicht neu zugewiesen werden" ,
3223- name
3224- ) ,
3218+ & format ! ( "Cannot reassign constant variable '{}'" , name) ,
32253219 ) ) ) ;
32263220 }
32273221 Ok ( ( ) )
0 commit comments