[wmlunits] made it work on python 2.5
This commit is contained in:
parent
8e10c252c8
commit
d9f06c6646
1 changed files with 3 additions and 7 deletions
|
@ -52,13 +52,9 @@ class Translation:
|
|||
textdomain, self.localedir, [self.langcode])
|
||||
except IOError:
|
||||
self.catalog[textdomain] = self.dummy
|
||||
try:
|
||||
r = self.catalog[textdomain].ugettext(string)
|
||||
except UnicodeDecodeError as e:
|
||||
print(textdomain)
|
||||
print(repr(string))
|
||||
print(type(string))
|
||||
raise
|
||||
|
||||
r = self.catalog[textdomain].ugettext(string)
|
||||
|
||||
return r
|
||||
|
||||
class GroupByRace:
|
||||
|
|
Loading…
Add table
Reference in a new issue