[bijiben] POTFILES.in: added bjb-main-toolbar



commit f7f8cb4ff438ef7a8cee5eed07d6f34b4a2dd61f
Author: Pierre-Yves Luyten <py luyten fr>
Date:   Thu Nov 22 01:43:13 2012 +0100

    POTFILES.in: added bjb-main-toolbar

 po/POTFILES.in         |    1 +
 src/bjb-main-toolbar.c |   12 +++++++-----
 2 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index f94be44..a769426 100755
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -2,5 +2,6 @@
 data/bijiben.desktop.in
 data/bijiben.desktop.in.in
 src/bjb-editor-toolbar.c
+src/bjb-main-toolbar.c
 src/bjb-selection-toolbar.c
 [type: gettext/glade]src/resources/app-menu.ui
diff --git a/src/bjb-main-toolbar.c b/src/bjb-main-toolbar.c
index e948735..0f5f070 100644
--- a/src/bjb-main-toolbar.c
+++ b/src/bjb-main-toolbar.c
@@ -15,6 +15,8 @@
  * with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <glib/gi18n.h>
+
 #include "bjb-main-toolbar.h"
 #include "bjb-rename-note.h"
 #include "bjb-window-base.h"
@@ -167,9 +169,9 @@ update_selection_label (GdMainView *view, BjbMainToolbar *self)
   length = g_list_length (selected);
 
   if (length == 0)
-    label = g_strdup("Click on items to select them");
+    label = g_strdup(_("Click on items to select them"));
   else
-    label = g_strdup_printf ("%d selected", length);
+    label = g_strdup_printf (_("%d selected"), length);
 
   gd_main_toolbar_set_labels (self->priv->toolbar, NULL, label);
   g_free (label);
@@ -208,10 +210,10 @@ update_label_for_standard (BjbMainToolbar *self)
   gchar *label ;
   
   if (needle && g_strcmp0 (needle, "") !=0)
-    label = g_strdup_printf ("Results for %s", needle);
+    label = g_strdup_printf (_("Results for %s"), needle);
 
   else
-    label = g_strdup ("New and recent");
+    label = g_strdup (_("New and recent"));
 
   gd_main_toolbar_set_labels (priv->toolbar, label, NULL);
   g_free (label);
@@ -230,7 +232,7 @@ populate_bar_for_standard(BjbMainToolbar *self)
   /* New Note */
   priv->new = gd_main_toolbar_add_button(priv->toolbar,
                                          NULL,
-                                         "New",
+                                         _("New"),
                                          TRUE);
 
   g_signal_connect(priv->new,"clicked",



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