Fix gettext not supporting Pathlib yet
This commit is contained in:
parent
a04637105d
commit
488f3c55aa
|
@ -150,7 +150,7 @@ if os.name == 'nt':
|
||||||
# Search for the translation in all locale dirs
|
# Search for the translation in all locale dirs
|
||||||
for dir_ in iter_locale_dirs():
|
for dir_ in iter_locale_dirs():
|
||||||
try:
|
try:
|
||||||
_translation = gettext.translation(DOMAIN, dir_)
|
_translation = gettext.translation(DOMAIN, str(dir_))
|
||||||
_ = _translation.gettext
|
_ = _translation.gettext
|
||||||
except OSError:
|
except OSError:
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue