aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-04-11 07:33:39 +0800
committerChris Lahey <clahey@src.gnome.org>2001-04-11 07:33:39 +0800
commitaccb60cbda9f52cf836fd4c9f13ec05979bf6a0a (patch)
tree550be4a395b6d7b46509c657133895f299531867
parent8350463f8446783935dee97d9dc54e7d17c277aa (diff)
downloadgsoc2013-evolution-accb60cbda9f52cf836fd4c9f13ec05979bf6a0a.tar
gsoc2013-evolution-accb60cbda9f52cf836fd4c9f13ec05979bf6a0a.tar.gz
gsoc2013-evolution-accb60cbda9f52cf836fd4c9f13ec05979bf6a0a.tar.bz2
gsoc2013-evolution-accb60cbda9f52cf836fd4c9f13ec05979bf6a0a.tar.lz
gsoc2013-evolution-accb60cbda9f52cf836fd4c9f13ec05979bf6a0a.tar.xz
gsoc2013-evolution-accb60cbda9f52cf836fd4c9f13ec05979bf6a0a.tar.zst
gsoc2013-evolution-accb60cbda9f52cf836fd4c9f13ec05979bf6a0a.zip
Translate the title as we read it.
2001-04-10 Christopher James Lahey <clahey@ximian.com> * gal-view-collection.c (load_single_file): Translate the title as we read it. svn path=/trunk/; revision=9217
-rw-r--r--widgets/menus/gal-view-collection.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/widgets/menus/gal-view-collection.c b/widgets/menus/gal-view-collection.c
index 36a0049a1f..1935688408 100644
--- a/widgets/menus/gal-view-collection.c
+++ b/widgets/menus/gal-view-collection.c
@@ -8,6 +8,8 @@
* (C) 1999, 2000 Helix Code, Inc.
*/
#include <config.h>
+
+#include <util/e-i18n.h>
#include <ctype.h>
#include <string.h>
#include <gtk/gtksignal.h>
@@ -16,6 +18,7 @@
#include <libgnome/gnome-util.h>
#include <gal/util/e-util.h>
#include <gal/util/e-xml-utils.h>
+#include <gal/widgets/e-unicode.h>
#include "gal-view-collection.h"
#define GVC_CLASS(e) ((GalViewCollectionClass *)((GtkObject *)e)->klass)
@@ -236,10 +239,11 @@ load_single_file (GalViewCollection *collection,
item->changed = FALSE;
item->built_in = !local;
item->id = e_xml_get_string_prop_by_name(node, "id");
- item->title = e_xml_get_string_prop_by_name(node, "title");
item->filename = e_xml_get_string_prop_by_name(node, "filename");
+ item->title = e_xml_get_translated_utf8_string_prop_by_name(node, "title");
item->type = e_xml_get_string_prop_by_name(node, "type");
item->collection = collection;
+
if (item->filename) {
GalViewFactory *factory;
GList *factories;