From c2e3648baca0756cb4f9fd5ada5ab312d0909dc2 Mon Sep 17 00:00:00 2001 From: Ricky Kresslein Date: Sun, 24 Apr 2022 10:51:10 +0300 Subject: Fix double quotation in SK translation --- Cargo.lock | 2 +- po/sk.po | 2 +- src/ui/task_details.rs | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 927ec1f..7a22dd9 100755 --- a/Cargo.lock +++ b/Cargo.lock @@ -211,7 +211,7 @@ dependencies = [ [[package]] name = "furtherance" -version = "1.1.1" +version = "1.1.2" dependencies = [ "chrono", "dbus", diff --git a/po/sk.po b/po/sk.po index d6b0d5e..f6afc6b 100644 --- a/po/sk.po +++ b/po/sk.po @@ -55,7 +55,7 @@ msgstr "Preklady do holandčiny, brazílskej portugalčiny a francúzštiny" #: data/com.lakoliu.Furtherance.appdata.xml.in:57 msgid "Furtherance has a new icon! And lots of bug fixes and improvements." -msgstr ""Podpora má novú ikonu! A veľa opráv chýb a vylepšení." +msgstr "Podpora má novú ikonu! A veľa opráv chýb a vylepšení." #: data/com.lakoliu.Furtherance.appdata.xml.in:66 msgid "First stable release of Furtherance." diff --git a/src/ui/task_details.rs b/src/ui/task_details.rs index 47ea369..be75206 100755 --- a/src/ui/task_details.rs +++ b/src/ui/task_details.rs @@ -54,6 +54,7 @@ mod imp { pub all_boxes: RefCell>, pub all_task_ids: RefCell>, pub this_day: RefCell, + pub orig_tags: RefCell, } #[glib::object_subclass] @@ -111,6 +112,7 @@ impl FurTaskDetails { imp.task_name_label.set_text(&task_group[0].task_name); let this_day_str = DateTime::parse_from_rfc3339(&task_group[0].start_time).unwrap(); *imp.this_day.borrow_mut() = this_day_str.format("%h %d %Y").to_string(); + *imp.orig_tags.borrow_mut() = task_group[0].task_name.clone(); for task in task_group.clone() { imp.all_task_ids.borrow_mut().push(task.id); @@ -441,6 +443,9 @@ impl FurTaskDetails { }; delete }); + // TODO Need to check if all task names and tags also match the original + // and remove those that don't. + imp.all_task_ids.borrow_mut().clear(); let window = FurtheranceWindow::default(); window.reset_history_box(); -- cgit 1.4.1