tbetter error message - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 7ef86d8bbba7605eabea7373203e62fdc950b84f DIR parent e7d24c31bd4965a4b9f4c86dd39cf4f887e89a9f HTML Author: ThomasV <thomasv@gitorious> Date: Fri, 19 Sep 2014 11:20:26 +0200 better error message Diffstat: M lib/qrscanner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/lib/qrscanner.py b/lib/qrscanner.py t@@ -1,4 +1,5 @@ import os +from i18n import _ try: import zbar t@@ -8,7 +9,7 @@ except ImportError: def scan_qr(config): if not zbar: - raise BaseException("The zbar package is not available.\nOn Linux, try 'sudo apt-get install python-zbar'") + raise BaseException("\n".join([_("Cannot start QR scanner."),_("The zbar package is not available."),_("On Linux, try 'sudo apt-get install python-zbar'")])) device = config.get("video_device", "default") if device == 'default': device = ''