We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccae3bb commit 22b5fcfCopy full SHA for 22b5fcf
quick-add/App.vala
@@ -14,9 +14,17 @@ public class QuickAdd : Adw.Application {
14
construct {
15
application_id = "io.github.alainm23.planify.quick-add";
16
flags |= ApplicationFlags.FLAGS_NONE;
17
+
18
+ Intl.setlocale (LocaleCategory.ALL, "");
19
+ string langpack_dir = Path.build_filename (Build.INSTALL_PREFIX, "share", "locale");
20
+ Intl.bindtextdomain (Build.GETTEXT_PACKAGE, langpack_dir);
21
+ Intl.bind_textdomain_codeset (Build.GETTEXT_PACKAGE, "UTF-8");
22
+ Intl.textdomain (Build.GETTEXT_PACKAGE);
23
}
24
25
protected override void activate () {
26
+ GLib.Environment.set_variable ("LANGUAGE", "fr", true);
27
28
main_window = new MainWindow (this);
29
main_window.show ();
30
0 commit comments