[i18n] Fix load_libintl error

Fixed libintl being undefined if no library was found
This commit is contained in:
Calum Lind 2022-01-12 20:17:25 +00:00
commit d2390cd247
No known key found for this signature in database
GPG key ID: 90597A687B836BA3

View file

@ -114,6 +114,7 @@ def setup_translation():
def load_libintl(libintls):
errors = []
libintl = None
for library in libintls:
try:
libintl = ctypes.cdll.LoadLibrary(library)