[wmlunits] ignore translation errors from gettext
This commit is contained in:
parent
78716d991f
commit
88a9929717
1 changed files with 2 additions and 0 deletions
|
@ -96,6 +96,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].gettext(string)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue