[wmlunits] ignore translation errors from gettext
This commit is contained in:
parent
ad92b02f8c
commit
2f713046f0
1 changed files with 2 additions and 0 deletions
|
@ -97,6 +97,8 @@ class Translation:
|
|||
# not sure why, but this happens within the
|
||||
# gettext.translation call sometimes
|
||||
self.catalog[textdomain] = self.dummy
|
||||
except ValueError:
|
||||
self.catalog[textdoman] = self.dummy
|
||||
|
||||
r = self.catalog[textdomain].ugettext(string)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue