[almanah] Localized the tags feature
- From: Álvaro Peña <alvaropg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [almanah] Localized the tags feature
- Date: Wed, 4 Sep 2013 16:32:16 +0000 (UTC)
commit 63209c10286a1e62fa002a79ef22b486eb459e70
Author: Álvaro Peña <alvaropg gmail com>
Date: Wed Sep 4 18:18:40 2013 +0200
Localized the tags feature
src/widgets/entry-tags-area.c | 4 +++-
src/widgets/tag-entry.c | 5 ++---
2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/widgets/entry-tags-area.c b/src/widgets/entry-tags-area.c
index a51170a..b56e366 100644
--- a/src/widgets/entry-tags-area.c
+++ b/src/widgets/entry-tags-area.c
@@ -17,6 +17,8 @@
* along with Almanah. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <glib/gi18n.h>
+
#include "entry-tags-area.h"
#include "entry.h"
#include "tag.h"
@@ -95,7 +97,7 @@ almanah_entry_tags_area_init (AlmanahEntryTagsArea *self)
/* The tag entry widget */
self->priv->tag_entry = g_object_new (ALMANAH_TYPE_TAG_ENTRY, NULL);
- gtk_entry_set_text (GTK_ENTRY (self->priv->tag_entry), "add tag");
+ gtk_entry_set_text (GTK_ENTRY (self->priv->tag_entry), _("add tag"));
gtk_container_add (GTK_CONTAINER (self), GTK_WIDGET (self->priv->tag_entry));
g_signal_connect (self->priv->tag_entry, "activate", G_CALLBACK (tag_entry_activate_cb), self);
}
diff --git a/src/widgets/tag-entry.c b/src/widgets/tag-entry.c
index 6b18e98..307b6b7 100644
--- a/src/widgets/tag-entry.c
+++ b/src/widgets/tag-entry.c
@@ -17,6 +17,7 @@
* along with Almanah. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <glib/gi18n.h>
#include <gtk/gtk.h>
#include "tag-entry.h"
@@ -78,8 +79,6 @@ almanah_tag_entry_init (AlmanahTagEntry *self)
gtk_entry_completion_set_text_column (completion, 0);
gtk_entry_set_completion (GTK_ENTRY (self), completion);
g_signal_connect (completion, "match-selected", G_CALLBACK (almanah_tag_entry_match_selected), self);
-
- gtk_entry_set_has_frame (GTK_ENTRY (self), FALSE);
}
static void
@@ -160,7 +159,7 @@ almanah_tag_entry_get_preferred_width (GtkWidget *widget, gint *minimum, gint *n
gboolean
almanah_tag_entry_focus_out_event (GtkWidget *self, GdkEventFocus *event)
{
- gtk_entry_set_text (GTK_ENTRY (self), "add tag");
+ gtk_entry_set_text (GTK_ENTRY (self), _("add tag"));
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]