From 239a95a65055a5b7128894faf30938496382fbe1 Mon Sep 17 00:00:00 2001 From: kali Date: Wed, 9 Jan 2013 05:39:28 +0900 Subject: fix exception i18n --- src/leap/util/translations.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/leap') 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): -- cgit v1.2.3