Initialize gettext

This commit is contained in:
Guido Günther
2021-12-03 18:57:59 +01:00
parent 9fbb974ce4
commit 964f1da305
6 changed files with 19 additions and 2 deletions

View File

@ -2,3 +2,9 @@
* Autogenerated by the Meson build system.
* Do not edit, your changes will be lost.
*/
#pragma once
#mesondefine GETTEXT_PACKAGE
#mesondefine LOCALEDIR

View File

@ -326,6 +326,10 @@ main (int argc, char **argv)
return 1;
}
textdomain (GETTEXT_PACKAGE);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
if (!gtk_init_check (&argc, &argv)) {
g_printerr ("Can't init GTK\n");
exit (1);