From b35edac6941667b4ef7e4fdbaab229655a434975 Mon Sep 17 00:00:00 2001 From: Nicolai Buchwitz Date: Tue, 3 Feb 2026 10:21:01 +0100 Subject: [PATCH] fix: correct typos and complete German translations - Fix remaining untranslated German text in param descriptions - Fix typo: 'ist' -> 'is' in error messages - Fix typo: 'fist' -> 'first' in comment - Fix typo: 'configuraiton' -> 'configuration' - Fix typo: 'thrading' -> 'threading' in docstring - Translate remaining German TODO comment Signed-off-by: Nicolai Buchwitz --- src/revpimodio2/app.py | 4 ++-- src/revpimodio2/io.py | 2 +- src/revpimodio2/modio.py | 8 ++++---- src/revpimodio2/netio.py | 2 +- src/revpimodio2/summary.py | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/revpimodio2/app.py b/src/revpimodio2/app.py index 54db85b..446e9c7 100644 --- a/src/revpimodio2/app.py +++ b/src/revpimodio2/app.py @@ -16,7 +16,7 @@ class App: """ Instantiates the App class. - :param app: piCtory Appinformationen + :param app: piCtory app information """ self.name = app.get("name", "") """Name of creating app""" @@ -28,7 +28,7 @@ class App: """Language of creating app""" self.savets = app.get("saveTS", None) - """Timestamp of configuraiton""" + """Timestamp of configuration""" if self.savets is not None: try: diff --git a/src/revpimodio2/io.py b/src/revpimodio2/io.py index 632271a..5849d83 100644 --- a/src/revpimodio2/io.py +++ b/src/revpimodio2/io.py @@ -858,7 +858,7 @@ class IOBase(object): specified milliseconds! It is always rounded up!) :param edge: Edge RISING, FALLING, BOTH that must occur - :param exitevent: for early termination + :param exitevent: for early termination :param okvalue: IO value at which waiting ends immediately :param timeout: Time in ms after which to abort :return: successful values <= 0 diff --git a/src/revpimodio2/modio.py b/src/revpimodio2/modio.py index a35a137..1fd9c71 100644 --- a/src/revpimodio2/modio.py +++ b/src/revpimodio2/modio.py @@ -853,7 +853,7 @@ class RevPiModIO(object): # Check if function is callable if not callable(func): - raise RuntimeError("registered function '{0}' ist not callable".format(func)) + raise RuntimeError("registered function '{0}' is not callable".format(func)) # Create thread if it should not block if not blocking: @@ -868,7 +868,7 @@ class RevPiModIO(object): # Take over cycle time old_cycletime = self._imgwriter.refresh if not cycletime == self._imgwriter.refresh: - # Set new cycle time and wait one imgwriter cycle to sync fist cycle + # Set new cycle time and wait one imgwriter cycle to sync first cycle self._imgwriter.refresh = cycletime self._imgwriter.newdata.clear() self._imgwriter.newdata.wait(self._imgwriter._refresh) @@ -961,7 +961,7 @@ class RevPiModIO(object): self._exit.set() self._waitexit.set() - # Auf beenden von mainloop thread warten + # Wait for mainloop thread to finish if self._th_mainloop is not None and self._th_mainloop.is_alive(): self._th_mainloop.join(2.5) @@ -1070,7 +1070,7 @@ class RevPiModIO(object): """ # Check if function is callable if not (cleanupfunc is None or callable(cleanupfunc)): - raise RuntimeError("registered function '{0}' ist not callable".format(cleanupfunc)) + raise RuntimeError("registered function '{0}' is not callable".format(cleanupfunc)) self.__cleanupfunc = cleanupfunc signal(SIGINT, self.__evt_exit) signal(SIGTERM, self.__evt_exit) diff --git a/src/revpimodio2/netio.py b/src/revpimodio2/netio.py index 2d2d9a5..56253ee 100644 --- a/src/revpimodio2/netio.py +++ b/src/revpimodio2/netio.py @@ -678,7 +678,7 @@ class NetFH(Thread): + bytebuff ) - # TODO: Bufferlänge and dann flushen? + # TODO: Buffer length and then flush? return len(bytebuff) diff --git a/src/revpimodio2/summary.py b/src/revpimodio2/summary.py index bf9361b..51e34da 100644 --- a/src/revpimodio2/summary.py +++ b/src/revpimodio2/summary.py @@ -14,7 +14,7 @@ class Summary: """ Instantiates the RevPiSummary class. - :param summary: piCtory Summaryinformationen + :param summary: piCtory summary information """ self.inptotal = summary.get("inpTotal", -1) self.outtotal = summary.get("outTotal", -1)