summaryrefslogtreecommitdiffstats
path: root/deluge/i18n
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2022-01-12 20:17:25 +0000
committerCalum Lind <calumlind+deluge@gmail.com>2022-01-12 20:19:56 +0000
commitd2390cd247291ed428e6707e19d362d499cfd3ed (patch)
tree77023a9d19c0edb8e02a5aab59ca8eaa4248942c /deluge/i18n
parentc3cd7f5e5cd133d6488f01899dbc39910fc63c6f (diff)
downloaddeluge-d2390cd247291ed428e6707e19d362d499cfd3ed.tar.gz
deluge-d2390cd247291ed428e6707e19d362d499cfd3ed.tar.bz2
deluge-d2390cd247291ed428e6707e19d362d499cfd3ed.zip
[i18n] Fix load_libintl error
Fixed libintl being undefined if no library was found
Diffstat (limited to 'deluge/i18n')
-rw-r--r--deluge/i18n/util.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/deluge/i18n/util.py b/deluge/i18n/util.py
index 3741c365c..2315e3cd8 100644
--- a/deluge/i18n/util.py
+++ b/deluge/i18n/util.py
@@ -114,6 +114,7 @@ def setup_translation():
def load_libintl(libintls):
errors = []
+ libintl = None
for library in libintls:
try:
libintl = ctypes.cdll.LoadLibrary(library)