Update localization

This commit is contained in:
Griatch 2021-05-29 00:48:34 +02:00
parent 7ff8cbb341
commit 8837b93dd2
18 changed files with 1304 additions and 252 deletions

View file

@ -326,8 +326,8 @@ class ScriptBase(ScriptDB, metaclass=TypeclassBase):
"""
cname = self.__class__.__name__
estring = _(
"Script %(key)s(#%(dbid)s) of type '%(cname)s': at_repeat() error '%(err)s'."
) % {"key": self.key, "dbid": self.dbid, "cname": cname, "err": e.getErrorMessage()}
"Script {key}(#{dbid}) of type '{name}': at_repeat() error '{err}'.".format(
key=self.key, dbid=self.dbid, name=cname, err=e.getErrorMessage()))
try:
self.db_obj.msg(estring)
except Exception: