[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
parent c3cd7f5e5c
commit d2390cd247

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)