From 28e05993807d59238d4cd2c2ea79fe2daf86bae7 Mon Sep 17 00:00:00 2001 From: Dianne Skoll Date: Tue, 10 Dec 2024 15:05:48 -0500 Subject: [PATCH] Get new translations if inotify says something has changed. --- scripts/tkremind.in | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/scripts/tkremind.in b/scripts/tkremind.in index 76945487..fb469f89 100644 --- a/scripts/tkremind.in +++ b/scripts/tkremind.in @@ -706,7 +706,6 @@ proc DoTranslate {} { puts $DaemonFile "TRANSLATE Full Moon" puts $DaemonFile "TRANSLATE First Quarter" puts $DaemonFile "TRANSLATE Last Quarter" - puts $DaemonFile "TRANSLATE Sunday" flush $DaemonFile } } @@ -1310,11 +1309,6 @@ proc FillCalWindow {} { set RemindErrors [unique_lines $errmsg] set_button_to_errors } - # If it looks like the translation has changed, schedule rereading - # of translated items - if {[lindex $DayNames 0] != [t "Sunday"]} { - DoTranslate - } DisplayTime } @@ -2939,7 +2933,8 @@ proc DaemonReadable { file } { if {[dict exists $obj command]} { set cmd [dict get $obj command] if {"$cmd" == "inotify"} { - FillCalWindow + # Update our translations if file has changed + DoTranslate } } puts $file "STATUS"