From 737bb24daceef281aba3dfefa9b161cf2a34d0a5 Mon Sep 17 00:00:00 2001 From: musiclover Date: Sun, 3 Apr 2022 20:22:58 +0200 Subject: Make strings translatable in rust source code --- src/ui/tasks_page.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ui/tasks_page.rs') diff --git a/src/ui/tasks_page.rs b/src/ui/tasks_page.rs index 9f0aed3..23439eb 100755 --- a/src/ui/tasks_page.rs +++ b/src/ui/tasks_page.rs @@ -16,6 +16,7 @@ use adw::subclass::prelude::*; use adw::prelude::{PreferencesPageExt, PreferencesGroupExt}; +use gettextrs::*; use gtk::subclass::prelude::*; use gtk::{glib, prelude::*}; use chrono::{DateTime, Local, Duration}; @@ -142,9 +143,9 @@ impl FurTasksPage { for i in 0..uniq_date_list.len() { let group = FurTasksGroup::new(); if uniq_date_list[i] == today { - group.set_title("Today") + group.set_title(&gettext("Today")) } else if uniq_date_list[i] == yesterday{ - group.set_title("Yesterday") + group.set_title(&gettext("Yesterday")) } else { group.set_title(&uniq_date_list[i]) } -- cgit 1.4.1