From 6153a17a64cd074bb33a292ffd9165d10009a110 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Tue, 20 May 2003 15:54:42 +0000 Subject: [PATCH] Split up the strings to make life easier for translators. 2003-05-20 Anders Carlsson * src/metacity-dialog.c: (kill_window_question): Split up the strings to make life easier for translators. --- ChangeLog | 7 ++++++- src/metacity-dialog.c | 14 ++++++++++---- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 35c0259cc..2f2324a97 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,13 @@ +2003-05-20 Anders Carlsson + + * src/metacity-dialog.c: (kill_window_question): + Split up the strings to make life easier for translators. + 2003-05-20 Anders Carlsson * src/metacity-dialog.c: (kill_window_question): Fix the wording and HIGify the dialog. - + 2003-05-18 Havoc Pennington * src/window.c (unminimize_window_and_all_transient_parents): diff --git a/src/metacity-dialog.c b/src/metacity-dialog.c index eea4ed039..717158ca0 100644 --- a/src/metacity-dialog.c +++ b/src/metacity-dialog.c @@ -79,14 +79,20 @@ kill_window_question (const char *window_name, const char *parent_str) { GtkWidget *dialog; + char *str, *tmp; + + str = g_strdup_printf (_("The window \"%s\" is not responding."), + window_name); dialog = gtk_message_dialog_new (NULL, 0, GTK_MESSAGE_WARNING, GTK_BUTTONS_NONE, - _("The window \"%s\" is not responding.\n\n" - "Forcing this application to quit will " - "cause you to lose any unsaved changes."), - window_name); + "%s\n\n%s", + str, + _("Forcing this application to quit will " + "cause you to lose any unsaved changes.")); + g_free (str); + gtk_label_set_use_markup (GTK_LABEL (GTK_MESSAGE_DIALOG (dialog)->label), TRUE); gtk_label_set_line_wrap (GTK_LABEL (GTK_MESSAGE_DIALOG (dialog)->label), TRUE);