[gcr] Patch: Remove markup from translatable strings.
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcr] Patch: Remove markup from translatable strings.
- Date: Tue, 12 Feb 2013 05:56:01 +0000 (UTC)
commit 070829975a794b02b5ac6ecd4ef7ca21a73ea384
Author: B.Prathibha <prathibhab cdac in>
Date: Sat Jan 26 10:15:36 2013 +0530
Patch: Remove markup from translatable strings.
https://bugzilla.gnome.org/show_bug.cgi?id=692536
ui/gcr-certificate-exporter.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/ui/gcr-certificate-exporter.c b/ui/gcr-certificate-exporter.c
index 196cf1d..b448034 100644
--- a/ui/gcr-certificate-exporter.c
+++ b/ui/gcr-certificate-exporter.c
@@ -214,6 +214,7 @@ on_create_file_ready (GObject *source, GAsyncResult *res, gpointer user_data)
GcrCertificateExporter *self = GCR_CERTIFICATE_EXPORTER (user_data);
GFileOutputStream *os;
GtkWidget *dialog;
+ gchar *msg;
os = g_file_create_finish (self->pv->output_file, res, &self->pv->error);
@@ -221,9 +222,12 @@ on_create_file_ready (GObject *source, GAsyncResult *res, gpointer user_data)
if (g_error_matches (self->pv->error, G_IO_ERROR, G_IO_ERROR_EXISTS)) {
g_clear_error (&self->pv->error);
+ msg = g_strdup_printf ("<b>%s</b>\n\n%s",
+ _("A file already exists with this name."),
+ _("Do you want to replace it with a new file?"));
dialog = gtk_message_dialog_new_with_markup (GTK_WINDOW (self->pv->chooser_dialog),
GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_QUESTION,
- GTK_BUTTONS_NONE, _("<b>A file already exists with this name.</b>\n\nDo you want to replace it with a new file?"));
+ GTK_BUTTONS_NONE, msg);
gtk_dialog_add_buttons (GTK_DIALOG (dialog),
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
_("_Replace"), GTK_RESPONSE_ACCEPT, NULL);
@@ -235,6 +239,7 @@ on_create_file_ready (GObject *source, GAsyncResult *res, gpointer user_data)
G_CALLBACK (on_cancel_replace_dialog),
g_object_ref (dialog), g_object_unref);
gtk_widget_show (dialog);
+ g_free(msg);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]