From ffa10b292cf417a246da1035a55322a25740626a Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Sat, 3 Mar 2012 11:40:46 +0100 Subject: Mark strings for translation --- src/indicator-printers-menu.c | 4 +++- src/indicator-printers.c | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/indicator-printers-menu.c b/src/indicator-printers-menu.c index e739a63..ef42169 100644 --- a/src/indicator-printers-menu.c +++ b/src/indicator-printers-menu.c @@ -18,6 +18,8 @@ #include "indicator-printers-menu.h" +#include + #include #include "spawn-printer-settings.h" @@ -195,7 +197,7 @@ update_printer_menuitem (IndicatorPrintersMenu *self, switch (state) { case IPP_PRINTER_STOPPED: - dbusmenu_menuitem_property_set (item, "indicator-right", "Paused"); + dbusmenu_menuitem_property_set (item, "indicator-right", _("Paused")); dbusmenu_menuitem_property_set_bool (item, "indicator-right-is-lozenge", FALSE); break; diff --git a/src/indicator-printers.c b/src/indicator-printers.c index b69c093..78f36da 100644 --- a/src/indicator-printers.c +++ b/src/indicator-printers.c @@ -22,6 +22,7 @@ #include "indicator-menu-item.h" #include "dbus-names.h" +#include #include #include @@ -287,7 +288,7 @@ indicator_printers_init (IndicatorPrinters *self) gtk_widget_show (GTK_WIDGET (image)); priv->entry.name_hint = PACKAGE_NAME; - priv->entry.accessible_desc = "Printers"; + priv->entry.accessible_desc = _("Printers"); priv->entry.menu = GTK_MENU (g_object_ref_sink (menu)); priv->entry.image = g_object_ref_sink (image); -- cgit v1.2.3 From e5d711f1ae371704de8c251b27ad52165ec55690 Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Sat, 3 Mar 2012 11:43:18 +0100 Subject: Correct the use of plurals --- src/indicator-printer-state-notifier.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/indicator-printer-state-notifier.c b/src/indicator-printer-state-notifier.c index 8261274..65eb5b0 100644 --- a/src/indicator-printer-state-notifier.c +++ b/src/indicator-printer-state-notifier.c @@ -120,16 +120,14 @@ show_alert_box (const gchar *printer, GtkWidget *image; gchar *primary_text; gchar *secondary_text; - const gchar *fmt; image = gtk_image_new_from_icon_name ("printer", GTK_ICON_SIZE_DIALOG); primary_text = g_strdup_printf (reason, printer); - if (njobs == 1) - fmt = _("You have %d job queued to print on this printer."); - else - fmt = _("You have %d jobs queued to print on this printer."); - secondary_text = g_strdup_printf (fmt, njobs); + secondary_text = g_strdup_printf (ngettext( + "You have %d job queued to print on this printer.", + "You have %d jobs queued to print on this printer.", njobs), + njobs); dialog = g_object_new (GTK_TYPE_MESSAGE_DIALOG, "title", _("Printing Problem"), -- cgit v1.2.3 From eec4fb8e1b1edf50f770b6f25f4601ffbfe37aa9 Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Tue, 6 Mar 2012 19:11:36 +0100 Subject: 0.1.4 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 033991a..f82a404 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ -AC_INIT(indicator-printers, 0.1.3) +AC_INIT(indicator-printers, 0.1.4) AC_PREREQ(2.53) AM_INIT_AUTOMAKE([]) -- cgit v1.2.3 From fefe2d16ff185395e296906f80dbc5d32bb891fd Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Tue, 6 Mar 2012 22:21:19 +0100 Subject: releasing version 0.1.4-0ubuntu1 --- debian/changelog | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index e64f2f0..86412af 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,9 +1,9 @@ -indicator-printers (0.1.4-0ubuntu1) UNRELEASED; urgency=low +indicator-printers (0.1.4-0ubuntu1) precise; urgency=low * New upstream release. - fix small i18n problems, thanks Gabor! (LP: #945547) - -- Lars Uebernickel Tue, 06 Mar 2012 22:16:29 +0100 + -- Lars Uebernickel Tue, 06 Mar 2012 22:21:12 +0100 indicator-printers (0.1.3-0ubuntu2) precise; urgency=low -- cgit v1.2.3