Add i18n basic structure

Closes #3.
This commit is contained in:
Claude Paroz
2018-09-07 09:47:52 +02:00
parent d25101db4a
commit f45e4d613f
6 changed files with 37 additions and 0 deletions

View File

@@ -22,6 +22,7 @@
*
*/
#include <glib/gi18n.h>
#include <gtk/gtk.h>
#define HANDY_USE_UNSTABLE_API
@@ -85,6 +86,10 @@ main (int argc,
GtkApplication *app;
int status;
textdomain (GETTEXT_PACKAGE);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
app = gtk_application_new (APP_ID, G_APPLICATION_FLAGS_NONE);
g_set_prgname (APP_ID);
g_signal_connect (app, "activate", G_CALLBACK (show_window), NULL);