summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkali <kali@leap.se>2013-01-09 05:39:28 +0900
committerkali <kali@leap.se>2013-01-09 05:39:28 +0900
commit239a95a65055a5b7128894faf30938496382fbe1 (patch)
tree05ac7ff8d17448c93ea654ca1006535ff079b4cb /src
parent460dd7c20408958dda1ca8e77050e9af334b558f (diff)
fix exception i18n
Diffstat (limited to 'src')
-rw-r--r--src/leap/util/translations.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/leap/util/translations.py b/src/leap/util/translations.py
index 80daa10d..d782cfe4 100644
--- a/src/leap/util/translations.py
+++ b/src/leap/util/translations.py
@@ -51,13 +51,14 @@ def translate(*args, **kwargs):
except:
logger.error('error getting stack frame')
- if klsname:
+ if klsname and len(args) == 1:
nargs = (klsname,) + args
return qtTranslate(*nargs)
else:
- nargs = ('default', ) + args
- return qtTranslate(*nargs)
+ #nargs = ('default', ) + args
+ #import pdb4qt; pdb4qt.set_trace()
+ return qtTranslate(*args)
class LEAPTranslatable(dict):