From 63af3f72f8ca9e89d96633fd9adef93d95418524 Mon Sep 17 00:00:00 2001 From: AntonObersteiner Date: Mon, 3 Jun 2024 13:42:37 +0200 Subject: [PATCH] translate all terms --- generate.py | 43 +++++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/generate.py b/generate.py index 3d96024..bd58a39 100755 --- a/generate.py +++ b/generate.py @@ -81,14 +81,18 @@ network = Network( ), hat_den = Choice( versuch = [": ",], - prüfungszeit = [f": Prüfung am {date} um ",], + prüfungszeit = [(f": Prüfung am {date} um ", f": exam on {date}, ")], augenfarbe = [": ",], ), augenfarbe = Choice( - augen = ["grüne ", "braune ", "blaue ",], + augen = [ + ("grüne ", "green "), + ("braune ", "brown "), + ("blaue ", "blue "), + ], ), augen = FixedText( - stop = "Augen.", + stop = ("Augen.", "eyes."), ), prüfungszeit = Choice( uhr = [ @@ -109,29 +113,28 @@ network = Network( ], ), uhr = FixedText( - stop = " Uhr.", - ), - prüfungsart = Choice( #inactive - prüfung = ["schriftliche ", "mündliche "], - ), - prüfung = FixedText( #inactive - stop = "Prüfung.", - ), - prüfungsname = Choice( #inactive - prüfungsname_end = get_names("chemie.csv"), - ), - prüfungsname_end = FixedText( #incative - stop = "'.", + stop = (" Uhr.", "."), ), versuch = Choice( - nicht = ["Erstversuch ", "1. Versuch "], - bestanden = ["Erstversuch ", "1. Versuch ", "Zweitversuch ", "2. Versuch "], + nicht = [ + ("Erstversuch ", "first attempt"), + ("1. Versuch ", "1st attempt"), + ], + bestanden = [ + ("Erstversuch ", "first attempt"), + ("1. Versuch ", "1st attempt"), + ("Zweitversuch ", "second attempt"), + ("2. Versuch ", "2nd attempt"), + ], ), nicht = Choice( - bestanden = ["nicht ", ""], + bestanden = [ + ("nicht ", "not "), + "" + ], ), bestanden = FixedText( - stop = "bestanden.", + stop = ("bestanden.", "passed."), ), )