Fix #53: taskmanager translations

- Remove ENABLE_NLS usage and call xfce_textdomain directly
- This might be broken since a recent glib upgrade (?)
- We don't need to include gi18n.h, libxfce4ui.h already include it (via
  libxfce4util), this remove build time warnings
This commit is contained in:
Romain Bouvier
2022-05-30 13:04:34 +02:00
parent 2c31abf533
commit 1a36cc2959

View File

@@ -13,7 +13,6 @@
#endif #endif
#include <stdlib.h> #include <stdlib.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include <gio/gio.h> #include <gio/gio.h>
@@ -200,11 +199,8 @@ int main (int argc, char *argv[])
GApplication *app; GApplication *app;
GError *error = NULL; GError *error = NULL;
GOptionContext *opt_context; GOptionContext *opt_context;
#ifdef ENABLE_NLS
bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); xfce_textdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR, "UTF-8");
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
#endif
gtk_init (&argc, &argv); gtk_init (&argc, &argv);
g_set_application_name (_("Task Manager")); g_set_application_name (_("Task Manager"));