From c7ee9934f1dff8281907b0d7786c086158b30188 Mon Sep 17 00:00:00 2001 From: Mike Fleetwood Date: Sun, 3 Dec 2017 10:32:26 +0000 Subject: [PATCH] Make OperationDetail no_more_children bug message translatable (#790842) To be consistent with all previous bug messages being translatable. Also only mark the bug as a warning instead of an error because the bug doesn't cause any disk drive operations to fail. Bug 790842 - Report libparted messages into operation details at the point at which they occur --- po/POTFILES.in | 1 + src/OperationDetail.cc | 14 +++++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/po/POTFILES.in b/po/POTFILES.in index 76a82a12..a89cade0 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -30,6 +30,7 @@ src/OperationCopy.cc src/OperationCheck.cc src/OperationCreate.cc src/OperationDelete.cc +src/OperationDetail.cc src/OperationFormat.cc src/OperationLabelFileSystem.cc src/OperationNamePartition.cc diff --git a/src/OperationDetail.cc b/src/OperationDetail.cc index 323a25a4..1e358650 100644 --- a/src/OperationDetail.cc +++ b/src/OperationDetail.cc @@ -143,9 +143,17 @@ void OperationDetail::add_child( const OperationDetail & operationdetail ) // a programming bug. However the best way to report it is by adding yet // another child containing the bug report, and allowing the child to be // added anyway. - add_child_implement( OperationDetail( "GParted Bug: Adding another child after no_more_children set " - "on this OperationDetail", - STATUS_ERROR, FONT_ITALIC ) ); + add_child_implement( OperationDetail( Glib::ustring( _("GParted Bug") ) + ": " + + /* TO TRANSLATORS: + * means that GParted has encountered a programming bug. More + * information about a step is being added after the step was + * marked as complete. This bug description as well as the + * information being added will be visible in the details of the + * applied operations. + */ + _("Adding more information to the results of this step after it " + "has been marked as completed"), + STATUS_WARNING, FONT_ITALIC ) ); add_child_implement( operationdetail ); }