diff --git a/fractal-gtk/src/app/mod.rs b/fractal-gtk/src/app/mod.rs index 559aaf6e..69a0e6d4 100644 --- a/fractal-gtk/src/app/mod.rs +++ b/fractal-gtk/src/app/mod.rs @@ -1,7 +1,9 @@ extern crate gtk; extern crate gdk; +extern crate gettextrs; use self::gtk::prelude::*; +use self::gettextrs::{setlocale, LocaleCategory, bindtextdomain, textdomain}; use std::env; use std::sync::{Arc, Mutex}; use std::sync::mpsc::channel; @@ -79,6 +81,12 @@ impl App { let bk = Backend::new(tx); let apptx = bk.run(); + // Set up the textdomain for gettext + setlocale(LocaleCategory::LcAll, ""); + bindtextdomain("fractal", "./fractal-gtk/po"); + textdomain("fractal"); + + let ui = uibuilder::UI::new(); let window: gtk::Window = ui.builder .get_object("main_window")