Skip to content

Commit

Permalink
Application.vala - Fix i18n (#215)
Browse files Browse the repository at this point in the history
Fixes #213 #214
  • Loading branch information
oscfdezdz authored Mar 1, 2021
1 parent 6f802c5 commit faeaff5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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 ();
Expand Down

0 comments on commit faeaff5

Please sign in to comment.