[gnome-settings-daemon] print-notifications: Translate printer warnings



commit 0a4d6cc6a8db332928d1fa7fd33029de3200996f
Author: Marek Kasik <mkasik redhat com>
Date:   Mon Jul 22 14:39:29 2013 +0200

    print-notifications: Translate printer warnings
    
    Mark printer warnings for translation.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=704680

 .../gsd-print-notifications-manager.c              |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/print-notifications/gsd-print-notifications-manager.c 
b/plugins/print-notifications/gsd-print-notifications-manager.c
index c191e5c..442e1f7 100644
--- a/plugins/print-notifications/gsd-print-notifications-manager.c
+++ b/plugins/print-notifications/gsd-print-notifications-manager.c
@@ -655,8 +655,8 @@ on_cups_notification (GDBusConnection *connection,
 
                                                         data = g_new0 (TimeoutData, 1);
                                                         data->printer_name = g_strdup (printer_name);
-                                                        data->primary_text = g_strdup (statuses_first[j]);
-                                                        data->secondary_text = g_strdup_printf 
(statuses_second[j], printer_name);
+                                                        data->primary_text = g_strdup ( 
_(statuses_first[j]));
+                                                        data->secondary_text = g_strdup_printf ( 
_(statuses_second[j]), printer_name);
                                                         data->manager = manager;
 
                                                         data->timeout_id = g_timeout_add_seconds 
(CONNECTING_TIMEOUT, show_notification, data);
@@ -664,9 +664,9 @@ on_cups_notification (GDBusConnection *connection,
                                                 }
                                                 else {
                                                         ReasonData *reason_data;
-                                                        gchar *second_row = g_strdup_printf 
(statuses_second[j], printer_name);
+                                                        gchar *second_row = g_strdup_printf ( 
_(statuses_second[j]), printer_name);
 
-                                                        notification = notify_notification_new 
(statuses_first[j],
+                                                        notification = notify_notification_new ( 
_(statuses_first[j]),
                                                                                                 second_row,
                                                                                                 
"printer-symbolic");
                                                         notify_notification_set_app_name (notification, 
_("Printers"));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]