Report the same information into saved operation details (!34)

For consistency save the 3 same lines of information into the saved
operation details.  None of the new 3 lines are subject to translation.
As this information is really for our benefit when supporting users
leaving them as English is OK.  Also "GParted" and "Libparted", as
previously used, are proper nouns so they were never changed as part of
any language translation.  See with:
    egrep -r '"(GParted|Libparted)"' po/

Closes !34 - Display more version and configuration information
This commit is contained in:
Mike Fleetwood 2019-03-30 12:22:04 +00:00 committed by Curtis Gedak
parent c626b4cea6
commit c1c20854b4
1 changed files with 10 additions and 10 deletions

View File

@ -16,15 +16,19 @@
*/
#include "Dialog_Progress.h"
#include "GParted_Core.h"
#include "OperationDetail.h"
#include "ProgressBar.h"
#include <glibmm/miscutils.h>
#include <glibmm/main.h>
#include <glibmm/ustring.h>
#include <gtkmm/stock.h>
#include <gtkmm/main.h>
#include <gtkmm/messagedialog.h>
#include <gtkmm/filechooserdialog.h>
#include <vector>
namespace GParted
{
@ -376,16 +380,12 @@ void Dialog_Progress::on_save()
<< "<meta http-equiv='Content-Type' content='text/html;charset=utf-8' />" << std::endl
<< "<title>" << _("GParted Details") << "</title>" << std::endl
<< "</head>" << std::endl
<< "<body>" << std::endl
<< "<p>" << _("GParted") << " " << VERSION
#ifdef USE_LIBPARTED_DMRAID
<< " --enable-libparted-dmraid"
#endif
#ifdef ENABLE_ONLINE_RESIZE
<< " --enable-online-resize"
#endif
<< "</p>" << std::endl
<< "<p>" << _("Libparted") << " " << signal_get_libparted_version .emit() << "</p>" << std::endl ;
<< "<body>" << std::endl;
std::vector<Glib::ustring> lines;
Utils::split(GParted_Core::get_version_and_config_string(), lines, "\n");
for (unsigned int i = 0; i < lines.size(); i++)
out << "<p>" << lines[i] << "</p>" << std::endl;
//Write out each operation
for ( unsigned int t = 0 ; t < operations .size() ; t++ )