Prepare all .po files for updating by volunteers

This commit is contained in:
Griatch 2021-05-29 18:30:20 +02:00
parent ecf757ba7c
commit 7147e3e027
15 changed files with 9116 additions and 1773 deletions

View file

@ -48,15 +48,11 @@ class ScriptHandler(object):
next_repeat = script.time_until_next_repeat()
except Exception:
next_repeat = "?"
string += _(
"\n '%(key)s' (%(next_repeat)s/%(interval)s, %(repeats)s repeats): %(desc)s"
) % {
"key": script.key,
"next_repeat": next_repeat,
"interval": interval,
"repeats": repeats,
"desc": script.desc,
}
string += _("\n '{key}' ({next_repeat}/{interval}, {repeats} repeats): {desc}").format(
key=script.key, next_repeat=next_repeat,
interval=interval,
repeats=repeats,
desc=script.desc)
return string.strip()
def add(self, scriptclass, key=None, autostart=True):