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
This commit is contained in:
Mike Fleetwood 2017-12-03 10:32:26 +00:00 committed by Curtis Gedak
parent 675760d3af
commit c7ee9934f1
2 changed files with 12 additions and 3 deletions

View File

@ -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

View File

@ -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 );
}