diff options
author | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2015-01-20 23:07:19 +0300 |
---|---|---|
committer | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2015-01-20 23:07:19 +0300 |
commit | 8b32294c95bd81f2489ed78df0fbe0857f5572a2 (patch) | |
tree | bc94db4806c38ca5eb85aa1518a7cc21462c0c19 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CustomTools | |
parent | 939da071f40761332c700db87c703a5525babc88 (diff) |
[T4] Don't show command when not relevant
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CustomTools')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CustomTools/CustomToolService.cs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CustomTools/CustomToolService.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CustomTools/CustomToolService.cs index d7730156c7..dedba299ab 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CustomTools/CustomToolService.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CustomTools/CustomToolService.cs @@ -171,8 +171,18 @@ namespace MonoDevelop.Ide.CustomTools static void WriteSummaryResults (IProgressMonitor monitor, int succeeded, int warnings, int errors) { monitor.Log.WriteLine (); - monitor.Log.WriteLine (GettextCatalog.GetString ("{0} files processed total. {1} generated successfully, {2} with warnings, {3} with errors"), - succeeded + warnings + errors, succeeded, warnings, errors); + + int total = succeeded + warnings + errors; + + //this might not be correct for languages where pluralization affects the other arguments + //but gettext doesn't really have an answer for sentences with multiple plurals + monitor.Log.WriteLine ( + GettextCatalog.GetPluralString ( + "{0} file processed total. {1} generated successfully, {2} with warnings, {3} with errors", + "{0} files processed total. {1} generated successfully, {2} with warnings, {3} with errors", + total, + total, succeeded, warnings, errors) + ); //ends the root task monitor.EndTask (); |