Getting colder with our second freeze... it's 3.31.91 release day and string freeze, upload a tarball and lock those strings 🏂

Commit ea0dfa00 authored by Eisha Chen-yen-su's avatar Eisha Chen-yen-su

App: Add the definition of the text domain

This adds the definition of the text domain used by gettext to
translate the strings of the user interface. gettext will search for
a package named "fractal" in the directory "./fractal-gtk/po". Thus
MO files containing the translations must be found in

parent 60367530
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 =;
// Set up the textdomain for gettext
setlocale(LocaleCategory::LcAll, "");
bindtextdomain("fractal", "./fractal-gtk/po");
let ui = uibuilder::UI::new();
let window: gtk::Window = ui.builder
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment