소스 검색

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."
+}