Преглед изворни кода

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

Will Storey пре 8 година
родитељ
комит
2b8f54c2e3
1 измењених фајлова са 5 додато и 1 уклоњено
  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."
+}