Parcourir la source

dictionary: Pluralize the count of terms in the script load log line

Will Storey il y a 8 ans
Parent
commit
2b8f54c2e3
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      dictionary.tcl

+ 5 - 1
dictionary.tcl

@@ -422,4 +422,8 @@ proc ::dictionary::write_db {} {
 }
 
 set ::dictionary::count [::dictionary::load]
-putlog "dictionary.tcl loaded. $::dictionary::count term(s)."
+if {$::dictionary::count == 1} {
+  putlog "dictionary.tcl loaded. $::dictionary::count term."
+} else {
+  putlog "dictionary.tcl loaded. $::dictionary::count terms."
+}