diff options
| author | Karel Klic <kklic@redhat.com> | 2009-11-19 10:14:27 +0100 |
|---|---|---|
| committer | Karel Klic <kklic@redhat.com> | 2009-11-19 10:14:27 +0100 |
| commit | bd60681c8227bc31ef0991e98a9a3e849032c924 (patch) | |
| tree | 5d4f3cf03d54ecb30ab863c7cc349bfcd232346c /lib/Plugins/TicketUploader.cpp | |
| parent | 0ecc573a8ba79bca8e37809c41f92f0b629149e8 (diff) | |
| parent | 83aea71df4761ec10c0d947055e65102bcace489 (diff) | |
| download | abrt-bd60681c8227bc31ef0991e98a9a3e849032c924.tar.gz abrt-bd60681c8227bc31ef0991e98a9a3e849032c924.tar.xz abrt-bd60681c8227bc31ef0991e98a9a3e849032c924.zip | |
Merge branch 'master' of ssh://git.fedorahosted.org/git/abrt
Diffstat (limited to 'lib/Plugins/TicketUploader.cpp')
| -rw-r--r-- | lib/Plugins/TicketUploader.cpp | 49 |
1 files changed, 34 insertions, 15 deletions
diff --git a/lib/Plugins/TicketUploader.cpp b/lib/Plugins/TicketUploader.cpp index 76bda40..847efdc 100644 --- a/lib/Plugins/TicketUploader.cpp +++ b/lib/Plugins/TicketUploader.cpp @@ -295,28 +295,47 @@ string CTicketUploader::Report(const map_crash_report_t& pCrashReport, } // generate a reciept telling md5sum and encryption key - ostringstream msgbuf; + // note: do not internationalize these strings! + string msg; if (have_ticket_name) - msgbuf << _("Please copy this into ticket: ") << ticket_name << endl; + { + msg += "Please copy this into ticket: "; + msg += ticket_name; + msg += '\n'; + } else - msgbuf << _("Please send this to your technical support: ") << endl; + { + msg += "Please send this to your technical support:\n"; + } if (do_upload) - msgbuf << _("RHUPLOAD: This report was sent to ") + upload_url << endl; + { + msg += "RHUPLOAD: This report was sent to "; + msg += upload_url; + msg += '\n'; + } else - msgbuf << _("RHUPLOAD: This report was copied into /tmp/: ") << endl; + { + msg += "RHUPLOAD: This report was copied into /tmp/:\n"; + } if (have_ticket_name) - msgbuf << _("TICKET: ") << ticket_name << endl; - msgbuf << _("FILE: ") << outfile_basename << endl; - msgbuf << _("MD5SUM: ") << endl; - msgbuf << md5sum; + { + msg += "TICKET: "; + msg += ticket_name; + msg += '\n'; + } + msg += "FILE: "; + msg += outfile_basename; + msg += "\nMD5SUM:\n"; + msg += md5sum; if (do_encrypt) { - msgbuf << _("KEY: aes-128-cbc") << endl; - msgbuf << key; + msg += "KEY: aes-128-cbc\n"; + msg += key; } - msgbuf << _("END: ") << endl; + msg += "END:\n"; - error_msg("%s", msgbuf.str().c_str()); + /* warn the client: */ + error_msg("%s", msg.c_str()); string ret; if (do_upload) @@ -400,7 +419,7 @@ PLUGIN_INFO(REPORTER, CTicketUploader, "TicketUploader", "0.0.1", - "input ticket# and customer name from user, send report to FTP", + "Asks ticket# and customer name from user, sends report to FTP", "gavin@redhat.com", - "https://fedorahosted.org/abtr/wiki", + "https://fedorahosted.org/abrt/wiki", PLUGINS_LIB_DIR"/TicketUploader.GTKBuilder"); |
