Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hutchinson <m.j.hutchinson@gmail.com>2015-01-20 23:07:19 +0300
committerMichael Hutchinson <m.j.hutchinson@gmail.com>2015-01-20 23:07:19 +0300
commit8b32294c95bd81f2489ed78df0fbe0857f5572a2 (patch)
treebc94db4806c38ca5eb85aa1518a7cc21462c0c19 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CustomTools
parent939da071f40761332c700db87c703a5525babc88 (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.cs14
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 ();