Get new translations if inotify says something has changed.

This commit is contained in:
Dianne Skoll
2024-12-10 15:05:48 -05:00
parent 87445f639c
commit 28e0599380

View File

@@ -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"