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 <n.buchwitz@kunbus.com>
This commit is contained in:
Nicolai Buchwitz
2026-02-03 10:21:01 +01:00
committed by Sven Sager
parent c26841cf94
commit b35edac694
5 changed files with 9 additions and 9 deletions

View File

@@ -16,7 +16,7 @@ class App:
""" """
Instantiates the App class. Instantiates the App class.
:param app: piCtory Appinformationen :param app: piCtory app information
""" """
self.name = app.get("name", "") self.name = app.get("name", "")
"""Name of creating app""" """Name of creating app"""
@@ -28,7 +28,7 @@ class App:
"""Language of creating app""" """Language of creating app"""
self.savets = app.get("saveTS", None) self.savets = app.get("saveTS", None)
"""Timestamp of configuraiton""" """Timestamp of configuration"""
if self.savets is not None: if self.savets is not None:
try: try:

View File

@@ -858,7 +858,7 @@ class IOBase(object):
specified milliseconds! It is always rounded up!) specified milliseconds! It is always rounded up!)
:param edge: Edge RISING, FALLING, BOTH that must occur :param edge: Edge RISING, FALLING, BOTH that must occur
:param exitevent: <class 'thrading.Event'> for early termination :param exitevent: <class 'threading.Event'> for early termination
:param okvalue: IO value at which waiting ends immediately :param okvalue: IO value at which waiting ends immediately
:param timeout: Time in ms after which to abort :param timeout: Time in ms after which to abort
:return: <class 'int'> successful values <= 0 :return: <class 'int'> successful values <= 0

View File

@@ -853,7 +853,7 @@ class RevPiModIO(object):
# Check if function is callable # Check if function is callable
if not callable(func): 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 # Create thread if it should not block
if not blocking: if not blocking:
@@ -868,7 +868,7 @@ class RevPiModIO(object):
# Take over cycle time # Take over cycle time
old_cycletime = self._imgwriter.refresh old_cycletime = self._imgwriter.refresh
if not 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.refresh = cycletime
self._imgwriter.newdata.clear() self._imgwriter.newdata.clear()
self._imgwriter.newdata.wait(self._imgwriter._refresh) self._imgwriter.newdata.wait(self._imgwriter._refresh)
@@ -961,7 +961,7 @@ class RevPiModIO(object):
self._exit.set() self._exit.set()
self._waitexit.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(): if self._th_mainloop is not None and self._th_mainloop.is_alive():
self._th_mainloop.join(2.5) self._th_mainloop.join(2.5)
@@ -1070,7 +1070,7 @@ class RevPiModIO(object):
""" """
# Check if function is callable # Check if function is callable
if not (cleanupfunc is None or callable(cleanupfunc)): 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 self.__cleanupfunc = cleanupfunc
signal(SIGINT, self.__evt_exit) signal(SIGINT, self.__evt_exit)
signal(SIGTERM, self.__evt_exit) signal(SIGTERM, self.__evt_exit)

View File

@@ -678,7 +678,7 @@ class NetFH(Thread):
+ bytebuff + bytebuff
) )
# TODO: Bufferlänge and dann flushen? # TODO: Buffer length and then flush?
return len(bytebuff) return len(bytebuff)

View File

@@ -14,7 +14,7 @@ class Summary:
""" """
Instantiates the RevPiSummary class. Instantiates the RevPiSummary class.
:param summary: piCtory Summaryinformationen :param summary: piCtory summary information
""" """
self.inptotal = summary.get("inpTotal", -1) self.inptotal = summary.get("inpTotal", -1)
self.outtotal = summary.get("outTotal", -1) self.outtotal = summary.get("outTotal", -1)