[gparted] Make OperationDetail no_more_children bug message translatable (#790842)
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Make OperationDetail no_more_children bug message translatable (#790842)
- Date: Mon, 4 Dec 2017 20:36:19 +0000 (UTC)
commit c7ee9934f1dff8281907b0d7786c086158b30188
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date: Sun Dec 3 10:32:26 2017 +0000
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 76a82a1..a89cade 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 323a25a..1e35865 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 );
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]