summary refs log tree commit diff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index d906a66..d7dd0a1 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -4,6 +4,13 @@ static GLIB_LOGGER: glib::GlibLogger = glib::GlibLogger::new(
 );
 
 fn main() {
+    gettextrs::bindtextdomain(
+        env!("CARGO_PKG_NAME"),
+        env!("LOCALEDIR")
+    ).expect("failed to bind text domain");
+    gettextrs::bind_textdomain_codeset(env!("CARGO_PKG_NAME"), "UTF-8").unwrap();
+    gettextrs::textdomain(env!("CARGO_PKG_NAME")).unwrap();
+
     log::set_logger(&GLIB_LOGGER).unwrap();
     log::set_max_level(log::LevelFilter::Debug);