mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Made new string translatable
This commit is contained in:
parent
d481e397df
commit
bb2e684a8a
|
@ -815,7 +815,7 @@ def get_changed_groups(change: dict, separator: str) -> [str, str]:
|
|||
"""Creates strings comparing the changes between the user groups for the user"""
|
||||
def expiry_parse_time(passed_time):
|
||||
try:
|
||||
return " (until " + datetime.datetime.strptime(passed_time, "%Y-%m-%dT%H:%M:%SZ").strftime("%Y-%m-%d %H:%M:%S UTC") + ")"
|
||||
return _(" (until {date_and_time})").format(date_and_time=datetime.datetime.strptime(passed_time, "%Y-%m-%dT%H:%M:%SZ").strftime("%Y-%m-%d %H:%M:%S UTC"))
|
||||
except ValueError:
|
||||
return ""
|
||||
new_group_meta = {_(t["group"]): expiry_parse_time(t.get("expiry", "infinity")) for t in change["logparams"].get("newmetadata", [])}
|
||||
|
|
Loading…
Reference in a new issue