From 96affcc9fa41abe3a85d9ea9eb1826c2c88cde51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corentin=20No=C3=ABl?= Date: Mon, 14 Oct 2024 09:42:17 +0200 Subject: [PATCH] Application: Initialize translation at first --- src/Application.vala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Application.vala b/src/Application.vala index 3afb029fb..fa825d970 100644 --- a/src/Application.vala +++ b/src/Application.vala @@ -21,11 +21,6 @@ public class Installer.App : Gtk.Application { } construct { - GLib.Intl.setlocale (LocaleCategory.ALL, ""); - GLib.Intl.bindtextdomain (application_id, Build.LOCALEDIR); - GLib.Intl.bind_textdomain_codeset (application_id, "UTF-8"); - GLib.Intl.textdomain (application_id); - add_main_option_entries (INSTALLER_OPTIONS); } @@ -84,5 +79,10 @@ public class Installer.App : Gtk.Application { } public static int main (string[] args) { + GLib.Intl.setlocale (LocaleCategory.ALL, ""); + GLib.Intl.bindtextdomain (Build.GETTEXT_PACKAGE, Build.LOCALEDIR); + GLib.Intl.bind_textdomain_codeset (Build.GETTEXT_PACKAGE, "UTF-8"); + GLib.Intl.textdomain (Build.GETTEXT_PACKAGE); + return new Installer.App ().run (args); }