diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-05-03 17:20:19 +0200 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-05-03 17:20:19 +0200 |
| commit | 5e44e9ecdfc95d9e63674b7ed717e967f01fbe85 (patch) | |
| tree | 0075d563b64e5060fdeb1faf0dc7c41655f34e56 /src | |
| parent | 932875c062d5c73b181924eac7086c1af0c9f99f (diff) | |
| download | abrt-5e44e9ecdfc95d9e63674b7ed717e967f01fbe85.tar.gz abrt-5e44e9ecdfc95d9e63674b7ed717e967f01fbe85.tar.xz abrt-5e44e9ecdfc95d9e63674b7ed717e967f01fbe85.zip | |
install-debuginfo: make reponse to ask_yes_no question translatable trac#147
- + minor update in cs translation to reflect this change
Diffstat (limited to 'src')
| -rwxr-xr-x | src/plugins/abrt-action-install-debuginfo.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/abrt-action-install-debuginfo.py b/src/plugins/abrt-action-install-debuginfo.py index 23ce017f..a7968488 100755 --- a/src/plugins/abrt-action-install-debuginfo.py +++ b/src/plugins/abrt-action-install-debuginfo.py @@ -56,7 +56,7 @@ def error_msg(fmt, *args): def error_msg_and_die(fmt, *args): sys.stderr.write("%s\n" % (fmt % args)) - os.exit(1) + sys.exit(1) old_stdout = -1 @@ -79,10 +79,10 @@ def ask_yes_no(prompt, retries=4): response = raw_input(prompt) except EOFError: log1("got eof, probably executed from helper, assuming - yes") - response = 'y' - if response in ('y', 'Y'): return True - if response in ('n', 'N', ''): + if response in (_("y")): # for translators -> y/Y as yes + return True + if response in ("", _("n")): # for translators -> N/n as no return False retries = retries - 1 if retries < 0: |
