summaryrefslogtreecommitdiff
path: root/components/websearch
diff options
context:
space:
mode:
authorKjartan Maraas <kmaraas@online.no>2000-05-03 20:52:57 +0000
committerKjartan Maraas <kmaraas@src.gnome.org>2000-05-03 20:52:57 +0000
commit3777cd86212aca767315d65eeb1afc7dfae47398 (patch)
tree02f44ab2eab46846968bea9889fcdf2237c8694e /components/websearch
parent724073d799d2485a91db2172d3bc5481ee487419 (diff)
downloadnautilus-3777cd86212aca767315d65eeb1afc7dfae47398.tar.gz
Added -DGNOMELOCALEDIR Added bindtextdomain() and textdomain() to
2000-05-03 Kjartan Maraas <kmaraas@online.no> * components/html/Makefile.am: Added -DGNOMELOCALEDIR * components/html/ntl-web-browser.c: Added bindtextdomain() and textdomain() to initialize the i18n support. * components/music/Makefile.am: Same as above. * components/music/main.c: Same as above. * components/music/nautilus-music-view.c: Marked strings. * components/notes/Makefile.am: Same as above. * components/notes/ntl-notes.c: Same as above. * components/rpmview/Makefile.am: Same as above. * components/rpmview/main.c: Same here too. * components/rpmview/nautilus-rpm-view.c: Marked strings. * components/sample/nautilus-sample-content-view.c: Same here too. * components/websearch/Makefile.am: Same as above. * components/websearch/ntl-web-search.c: Again.
Diffstat (limited to 'components/websearch')
-rw-r--r--components/websearch/Makefile.am9
-rw-r--r--components/websearch/ntl-web-search.c6
2 files changed, 13 insertions, 2 deletions
diff --git a/components/websearch/Makefile.am b/components/websearch/Makefile.am
index 02c191dea..39e69af08 100644
--- a/components/websearch/Makefile.am
+++ b/components/websearch/Makefile.am
@@ -1,6 +1,13 @@
bin_PROGRAMS=ntl-web-search
-INCLUDES=-I$(top_srcdir) -I$(top_builddir) $(GNOMEUI_CFLAGS) $(GCONF_CFLAGS) $(BONOBO_CFLAGS) $(WERROR)
+INCLUDES=\
+ -I$(top_srcdir) \
+ -I$(top_builddir) \
+ -DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
+ $(GNOMEUI_CFLAGS) \
+ $(GCONF_CFLAGS) \
+ $(BONOBO_CFLAGS) \
+ $(WERROR)
LDADD=\
$(top_builddir)/nautilus-widgets/libnautilus-widgets.la \
diff --git a/components/websearch/ntl-web-search.c b/components/websearch/ntl-web-search.c
index cf9d8254e..c8666dec1 100644
--- a/components/websearch/ntl-web-search.c
+++ b/components/websearch/ntl-web-search.c
@@ -225,7 +225,7 @@ make_obj(BonoboGenericFactory *Factory, const char *goad_id, gpointer closure)
info = nautilus_clipboard_info_new ();
nautilus_clipboard_info_set_view_frame (info, hview->view);
nautilus_clipboard_info_set_clipboard_owner (info, GTK_WIDGET (hview->ent_params));
- nautilus_clipboard_info_set_component_name (info, "WebSearch");
+ nautilus_clipboard_info_set_component_name (info, _("WebSearch"));
gtk_signal_connect (GTK_OBJECT (hview->ent_params), "focus_in_event",
GTK_SIGNAL_FUNC (nautilus_component_merge_bonobo_items_cb), info);
gtk_signal_connect (GTK_OBJECT (hview->ent_params), "focus_out_event",
@@ -245,6 +245,10 @@ int main(int argc, char *argv[])
BonoboGenericFactory *factory;
CORBA_ORB orb;
+ /* Initialize gettext support */
+ bindtextdomain (PACKAGE, GNOMELOCALEDIR);
+ textdomain (PACKAGE);
+
gnome_init_with_popt_table("ntl-web-search", VERSION,
argc, argv,
oaf_popt_options, 0, NULL);