aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-07-18 02:31:19 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-07-18 02:31:19 +0800
commit6485e5fcf75cd73418204e444418925134e3bdab (patch)
tree7aef4e71a0877b6dc015803b89fa92932a6ff6be
parent7a069d4e58343122fad8dbe7d0474595a7e91fd1 (diff)
downloadgsoc2013-evolution-6485e5fcf75cd73418204e444418925134e3bdab.tar
gsoc2013-evolution-6485e5fcf75cd73418204e444418925134e3bdab.tar.gz
gsoc2013-evolution-6485e5fcf75cd73418204e444418925134e3bdab.tar.bz2
gsoc2013-evolution-6485e5fcf75cd73418204e444418925134e3bdab.tar.lz
gsoc2013-evolution-6485e5fcf75cd73418204e444418925134e3bdab.tar.xz
gsoc2013-evolution-6485e5fcf75cd73418204e444418925134e3bdab.tar.zst
gsoc2013-evolution-6485e5fcf75cd73418204e444418925134e3bdab.zip
Use the U_() macro to get the UTF-8 translation.
2002-07-17 Jeffrey Stedfast <fejj@ximian.com> * filter-label.c (xml_create): Use the U_() macro to get the UTF-8 translation. svn path=/trunk/; revision=17495
-rw-r--r--filter/ChangeLog5
-rw-r--r--filter/filter-label.c8
-rw-r--r--filter/libfilter-i18n.h36
3 files changed, 28 insertions, 21 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog
index 90b73fc936..59309cd4a6 100644
--- a/filter/ChangeLog
+++ b/filter/ChangeLog
@@ -1,3 +1,8 @@
+2002-07-17 Jeffrey Stedfast <fejj@ximian.com>
+
+ * filter-label.c (xml_create): Use the U_() macro to get the UTF-8
+ translation.
+
2002-07-15 Not Zed <NotZed@Ximian.com>
* filter-score.[ch]: cvs remove.
diff --git a/filter/filter-label.c b/filter/filter-label.c
index f7534a08b1..c7c44fbb0f 100644
--- a/filter/filter-label.c
+++ b/filter/filter-label.c
@@ -36,6 +36,7 @@
#include <libgnomeui/gnome-dialog-util.h>
#include <libgnomeui/gnome-file-entry.h>
#include <gal/widgets/e-unicode.h>
+#include <gal/util/e-unicode-i18n.h>
#include <bonobo/bonobo-object.h>
#include <bonobo/bonobo-generic-factory.h>
@@ -183,14 +184,15 @@ xml_create (FilterElement *fe, xmlNodePtr node)
CORBA_exception_free (&ev);
for (i=0;i<sizeof(labels)/sizeof(labels[0]);i++) {
- char *title, *btitle;
+ const char *title;
+ char *btitle;
if (db == CORBA_OBJECT_NIL
|| (title = btitle = bonobo_config_get_string(db, labels[i].path, NULL)) == NULL) {
btitle = NULL;
- title = labels[i].title;
+ title = U_(labels[i].title);
}
-
+
filter_option_add(fo, labels[i].value, title, NULL);
g_free(btitle);
}
diff --git a/filter/libfilter-i18n.h b/filter/libfilter-i18n.h
index 982ebae371..9d930d930b 100644
--- a/filter/libfilter-i18n.h
+++ b/filter/libfilter-i18n.h
@@ -5,18 +5,34 @@ char *s = N_("Assign Score");
char *s = N_("Attachments");
char *s = N_("Beep");
char *s = N_("Command");
+char *s = N_("contains");
char *s = N_("Copy to Folder");
char *s = N_("Date received");
char *s = N_("Date sent");
char *s = N_("Delete");
char *s = N_("Deleted");
+char *s = N_("does not contain");
+char *s = N_("does not end with");
+char *s = N_("does not exist");
+char *s = N_("does not sound like");
+char *s = N_("does not start with");
char *s = N_("Do Not Exist");
char *s = N_("Draft");
+char *s = N_("ends with");
char *s = N_("Execute Shell Command");
char *s = N_("Exist");
+char *s = N_("exists");
char *s = N_("Expression");
char *s = N_("Follow Up");
char *s = N_("Important");
+char *s = N_("is");
+char *s = N_("is after");
+char *s = N_("is before");
+char *s = N_("is Flagged");
+char *s = N_("is greater than");
+char *s = N_("is less than");
+char *s = N_("is not");
+char *s = N_("is not Flagged");
char *s = N_("Label");
char *s = N_("Mailing list");
char *s = N_("Message Body");
@@ -31,26 +47,10 @@ char *s = N_("Score");
char *s = N_("Sender");
char *s = N_("Set Status");
char *s = N_("Size (kB)");
+char *s = N_("sounds like");
char *s = N_("Source Account");
char *s = N_("Specific header");
+char *s = N_("starts with");
char *s = N_("Status");
char *s = N_("Stop Processing");
char *s = N_("Subject");
-char *s = N_("contains");
-char *s = N_("does not contain");
-char *s = N_("does not end with");
-char *s = N_("does not exist");
-char *s = N_("does not sound like");
-char *s = N_("does not start with");
-char *s = N_("ends with");
-char *s = N_("exists");
-char *s = N_("is Flagged");
-char *s = N_("is after");
-char *s = N_("is before");
-char *s = N_("is greater than");
-char *s = N_("is less than");
-char *s = N_("is not Flagged");
-char *s = N_("is not");
-char *s = N_("is");
-char *s = N_("sounds like");
-char *s = N_("starts with");