People here are talking about complicated, difficult solutions, like using a library to create text in multiple languages from an AST(!)
I think the moral of the post is simple: don't try to generate natural language. It won't sound natural. Just keep it basic.
"Directories scanned: %d" "Directories matched: %d" "Files matched: %d"
...will localize just fine