[gnome-settings-daemon/gnome-3-8] print-notifications: Translate printer warnings
- From: Marek Kašík <mkasik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-8] print-notifications: Translate printer warnings
- Date: Mon, 22 Jul 2013 14:13:01 +0000 (UTC)
commit ee253ffd7a9e9970e7d37d923967939e1de35077
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]