diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-02-16 21:18:56 +0100 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-02-16 21:18:56 +0100 |
commit | ba27629c4519fa09da8cbfaffe2dcff003fcfef0 (patch) | |
tree | 67aa7e8ecbb19c0c0dd4f5b1e2ea3e003684c0cd /src/indicator-printer-state-notifier.c | |
parent | 1204ca2827e64aa041b4bd36813be3d70db54802 (diff) | |
parent | 8ce897a37ffe58051684fba7478a2f076aeec57d (diff) | |
download | ayatana-indicator-printers-ba27629c4519fa09da8cbfaffe2dcff003fcfef0.tar.gz ayatana-indicator-printers-ba27629c4519fa09da8cbfaffe2dcff003fcfef0.tar.bz2 ayatana-indicator-printers-ba27629c4519fa09da8cbfaffe2dcff003fcfef0.zip |
* New upstream release.
- prepare for i18n
- make sure CUPS' dbus notification is on while the service is running
- fix build system to enable out-of-tree builds
* debian/control
- bump libindicator dependency 0.3.91
Diffstat (limited to 'src/indicator-printer-state-notifier.c')
-rw-r--r-- | src/indicator-printer-state-notifier.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/indicator-printer-state-notifier.c b/src/indicator-printer-state-notifier.c index d3668a2..8261274 100644 --- a/src/indicator-printer-state-notifier.c +++ b/src/indicator-printer-state-notifier.c @@ -18,6 +18,7 @@ #include "indicator-printer-state-notifier.h" +#include <glib/gi18n.h> #include <gtk/gtk.h> #include <cups/cups.h> #include <string.h> @@ -125,13 +126,13 @@ show_alert_box (const gchar *printer, primary_text = g_strdup_printf (reason, printer); if (njobs == 1) - fmt = "You have %d job queued to print on this printer."; + fmt = _("You have %d job queued to print on this printer."); else - fmt = "You have %d jobs queued to print on this printer."; + fmt = _("You have %d jobs queued to print on this printer."); secondary_text = g_strdup_printf (fmt, njobs); dialog = g_object_new (GTK_TYPE_MESSAGE_DIALOG, - "title", "Printing Problem", + "title", _("Printing Problem"), "icon-name", "printer", "image", image, "text", primary_text, @@ -147,7 +148,7 @@ show_alert_box (const gchar *printer, g_free (secondary_text); gtk_dialog_add_buttons (GTK_DIALOG (dialog), - "_Settings…", RESPONSE_SHOW_SYSTEM_SETTINGS, + _("_Settings…"), RESPONSE_SHOW_SYSTEM_SETTINGS, GTK_STOCK_OK, GTK_RESPONSE_OK, NULL); gtk_dialog_set_default_response (GTK_DIALOG (dialog), @@ -313,14 +314,14 @@ indicator_printer_state_notifier_init (IndicatorPrinterStateNotifier *self) priv->printer_alerts = g_hash_table_new (g_str_hash, g_str_equal); g_hash_table_insert_many ( priv->printer_alerts, - "media-low", "The printer “%s” is low on paper.", - "media-empty", "The printer “%s” is out of paper.", - "toner-low", "The printer “%s” is low on toner.", - "toner-empty", "The printer “%s” is out of toner.", - "cover-open", "A cover is open on the printer “%s”.", - "door-open", "A door is open on the printer “%s”.", - "cups-missing-filter", "The printer “%s” can’t be used, because required software is missing.", - "offline", "The printer “%s” is currently off-line.", + "media-low", _("The printer “%s” is low on paper."), + "media-empty", _("The printer “%s” is out of paper."), + "toner-low", _("The printer “%s” is low on toner."), + "toner-empty", _("The printer “%s” is out of toner."), + "cover-open", _("A cover is open on the printer “%s”."), + "door-open", _("A door is open on the printer “%s”."), + "cups-missing-filter", _("The printer “%s” can’t be used, because required software is missing."), + "offline", _("The printer “%s” is currently off-line."), NULL); } |