From 457d2772475b6b15d0eae396ecce23ec58370211 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Fri, 30 Apr 2004 06:23:28 +0000 Subject: use gnome_i18n_get_language_list so we get the right one (LC_MESSAGES). 2004-04-30 Not Zed * tools/killev.c (main): use gnome_i18n_get_language_list so we get the right one (LC_MESSAGES). svn path=/trunk/; revision=25702 --- tools/killev.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tools/killev.c') diff --git a/tools/killev.c b/tools/killev.c index 30c5986177..0ab1b23a90 100644 --- a/tools/killev.c +++ b/tools/killev.c @@ -34,8 +34,6 @@ #include #include -#include "e-util/e-lang-utils.h" - typedef struct { char *location; GPtrArray *names; @@ -188,6 +186,8 @@ add_matching_iid (const char *iid) int main (int argc, char **argv) { + const GList *l; + bindtextdomain (GETTEXT_PACKAGE, EVOLUTION_LOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); @@ -196,7 +196,10 @@ main (int argc, char **argv) GNOME_PROGRAM_STANDARD_PROPERTIES, NULL); - languages = e_get_language_list (); + l = gnome_i18n_get_language_list("LC_MESSAGES"); + for (languages=NULL;l;l=l->next) + languages = g_slist_append(languages, l->data); + components = g_hash_table_new (g_str_hash, g_str_equal); add_matching_repo_id ("IDL:GNOME/Evolution/Shell:" BASE_VERSION); -- cgit