diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-02-16 17:36:05 +0100 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-02-16 17:36:05 +0100 |
commit | da8f22976088f5272d72dc0383bb36b2f88a1f9c (patch) | |
tree | cbd446f156f1686320c3684e7fc67a6165733b6b /src/indicator-printer-state-notifier.c | |
parent | b18f3f865cb641a07b429543b2bb98305f6308aa (diff) | |
download | ayatana-indicator-printers-da8f22976088f5272d72dc0383bb36b2f88a1f9c.tar.gz ayatana-indicator-printers-da8f22976088f5272d72dc0383bb36b2f88a1f9c.tar.bz2 ayatana-indicator-printers-da8f22976088f5272d72dc0383bb36b2f88a1f9c.zip |
Mark strings translatable
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); } |