Translation problem when creating event filter

If you create a filter with the rule name:
    "Events with a particular type"
or
    "Events with <data>"
The menu "Travel", "Academic"... are not translated

Fixes #11293
This commit is contained in:
SNoiraud 2019-08-26 22:06:54 +02:00 committed by Nick Hall
parent dd80e4b80e
commit 4b9dba0c53

View File

@ -171,7 +171,7 @@ class StandardCustomSelector:
if self.active_key in items:
parent = None
else:
parent = store.append(None, row=[None, heading, False])
parent = store.append(None, row=[None, _(heading), False])
for item in items:
store.append(parent, row=[item, self.mapping[item], True])