about summary refs log tree commit diff
path: root/src/ui/tasks_page.rs
diff options
context:
space:
mode:
authorlakoliu <99976966+lakoliu@users.noreply.github.com>2022-04-06 22:27:13 +0300
committerGitHub <noreply@github.com>2022-04-06 22:27:13 +0300
commit3070a42a39b45de78364c888cd28c84dca3ba7bb (patch)
treeeba0f24df78832157dc38a86904e4f3a510df905 /src/ui/tasks_page.rs
parentb816f3c91691d7dc521927cd4109861ca6d7dde8 (diff)
parent049a8088a78666816b36397b89215b1e01b7eb69 (diff)
downloadFurtherance-3070a42a39b45de78364c888cd28c84dca3ba7bb.tar.zst
Merge pull request #9 from musiclover382/i18n
Complete localization support
Diffstat (limited to 'src/ui/tasks_page.rs')
-rwxr-xr-xsrc/ui/tasks_page.rs5
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])
             }