aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-window-commands.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2007-03-21 01:23:58 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2007-03-21 01:23:58 +0800
commitcba3097cad7443810117bded371a2e3088a33d12 (patch)
treeb4bf9ba6b6c9b5433c8ac2614694d7bf76d87ff0 /shell/e-shell-window-commands.c
parent2313e47dab3e8151743138892277b08cf78034cc (diff)
downloadgsoc2013-evolution-cba3097cad7443810117bded371a2e3088a33d12.tar.gz
gsoc2013-evolution-cba3097cad7443810117bded371a2e3088a33d12.tar.zst
gsoc2013-evolution-cba3097cad7443810117bded371a2e3088a33d12.zip
** Fixes bug #419524
2007-03-20 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #419524 * Include <glib/gi18n.h> instead of <libgnome/gnome-i18n.h>. * e-util/e-xml-utils.c (e_xml_get_child_by_name_by_lang_list): * mail/em-migrate.c (emm_setup_initial): * shell/e-component-registry.c (query_components): * shell/e-shell-settings-dialog.c (load_pages): * shell/e-shell-window-commands.c (command_quick_reference): * tools/killev.c (main): Use g_get_language_names() instead of gnome_i18n_get_language_list(). * e-util/e-util.c: Remove e_gettext(). * e-util/Makefile.am: Remove e-i18n.h. svn path=/trunk/; revision=33319
Diffstat (limited to 'shell/e-shell-window-commands.c')
-rw-r--r--shell/e-shell-window-commands.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/shell/e-shell-window-commands.c b/shell/e-shell-window-commands.c
index 75749c41a4..010e229775 100644
--- a/shell/e-shell-window-commands.c
+++ b/shell/e-shell-window-commands.c
@@ -28,7 +28,7 @@
#include <glib/gprintf.h>
#include <libgnome/gnome-exec.h>
-#include <libgnome/gnome-i18n.h>
+#include <glib/gi18n.h>
#include <libgnome/gnome-url.h>
#include <libgnomevfs/gnome-vfs-mime-handlers.h>
@@ -611,10 +611,11 @@ command_quick_reference (BonoboUIComponent *uih,
{
char *quickref;
GnomeVFSMimeApplication *app;
- const GList *lang_list = gnome_i18n_get_language_list ("LC_MESSAGES");
+ const gchar * const *language_names;
- for (; lang_list != NULL; lang_list = lang_list->next) {
- const char *lang = lang_list->data;
+ language_names = g_get_language_names ();
+ while (*language_names != NULL) {
+ const gchar *lang = *language_names++;
/* This has to be a valid language AND a language with
* no encoding postfix. The language will come up without