From faeaff5d9a113d022f6405eb1a217770e2395d5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20Fern=C3=A1ndez=20D=C3=ADaz?= Date: Mon, 1 Mar 2021 16:08:36 +0000 Subject: [PATCH] Application.vala - Fix i18n (#215) Fixes #213 #214 --- src/Application.vala | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Application.vala b/src/Application.vala index 9277aa35..0d0ff3f6 100644 --- a/src/Application.vala +++ b/src/Application.vala @@ -32,6 +32,12 @@ namespace Notejot { gsettings = new GLib.Settings ("io.github.lainsce.Notejot"); } + construct { + Intl.setlocale (LocaleCategory.ALL, ""); + Intl.bindtextdomain (Config.GETTEXT_PACKAGE, Config.GNOMELOCALEDIR); + Intl.textdomain (Config.GETTEXT_PACKAGE); + } + protected override void activate () { if (win != null) { win.present ();