[file-roller] fixed message text after creating an archive
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] fixed message text after creating an archive
- Date: Sat, 19 Dec 2015 16:27:37 +0000 (UTC)
commit 1a7f1ded3b47a47ad50c8d038c4051e7cde34cf7
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sat Dec 19 16:24:31 2015 +0100
fixed message text after creating an archive
src/fr-window.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index d6c25c9..f7ca590 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -2662,10 +2662,16 @@ static void
fr_window_show_confirmation_dialog_with_open_archive (FrWindow *window)
{
GtkWidget *dialog;
+ char *basename;
+ char *message;
+
+ basename = _g_file_get_display_basename (window->priv->saving_file);
+ /* Translators: %s is a filename */
+ message = g_strdup_printf (_("\"%s\" created successfully"), basename);
dialog = _gtk_message_dialog_new (GTK_WINDOW (window),
GTK_DIALOG_MODAL,
- _("Extraction completed successfully"),
+ message,
NULL,
_GTK_LABEL_CLOSE, GTK_RESPONSE_CLOSE,
_("_Open the Archive"), DIALOG_RESPONSE_OPEN_ARCHIVE,
@@ -2674,6 +2680,9 @@ fr_window_show_confirmation_dialog_with_open_archive (FrWindow *window)
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CLOSE);
fr_window_show_confirmation_dialog (window, dialog);
+
+ g_free (message);
+ g_free (basename);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]