Bläddra i källkod

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

Will Storey 8 år sedan
förälder
incheckning
2b8f54c2e3
1 ändrade filer med 5 tillägg och 1 borttagningar
  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."
+}