Skip to content

Commit

Permalink
Application: Initialize translation at first
Browse files Browse the repository at this point in the history
  • Loading branch information
tintou committed Oct 14, 2024
1 parent cc3401b commit 96affcc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
}

0 comments on commit 96affcc

Please sign in to comment.