diff options
author | musiclover <musiclover382@protonmail.com> | 2022-04-03 20:22:58 +0200 |
---|---|---|
committer | musiclover <musiclover382@protonmail.com> | 2022-04-03 20:22:58 +0200 |
commit | 737bb24daceef281aba3dfefa9b161cf2a34d0a5 (patch) | |
tree | 2ea981a127abae437dc649696bb052efa3a0468e /src/ui/tasks_page.rs | |
parent | 3184c43930df7a4da9651dea33e70ecd74c044ae (diff) | |
download | Furtherance-737bb24daceef281aba3dfefa9b161cf2a34d0a5.tar.zst |
Make strings translatable in rust source code
Diffstat (limited to 'src/ui/tasks_page.rs')
-rwxr-xr-x | src/ui/tasks_page.rs | 5 |
1 files changed, 3 insertions, 2 deletions
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]) } |