Author: jacobilsoe
Date: 2006-09-24 12:29:31 -0400 (Sun, 24 Sep 2006)
New Revision: 65865
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/SearchResultPad.cs
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Search/SearchReplaceInFilesManager.cs
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Search/SearchReplaceManager.cs
Log:
2006-09-24 Jacob Ils?\195?\184 Christensen <[EMAIL PROTECTED]>
* MonoDevelop.Ide.Gui.Pads/SearchResultPad.cs:
* MonoDevelop.Ide.Gui.Search/SearchReplaceManager.cs:
* MonoDevelop.Ide.Gui.Search/SearchReplaceInFilesManager.cs:
Fixed some pluralization issues.
Modified: trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog 2006-09-24
16:25:12 UTC (rev 65864)
+++ trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog 2006-09-24
16:29:31 UTC (rev 65865)
@@ -1,3 +1,10 @@
+2006-09-24 Jacob Ilsø Christensen <[EMAIL PROTECTED]>
+
+ * MonoDevelop.Ide.Gui.Pads/SearchResultPad.cs:
+ * MonoDevelop.Ide.Gui.Search/SearchReplaceManager.cs:
+ * MonoDevelop.Ide.Gui.Search/SearchReplaceInFilesManager.cs:
+ Fixed some pluralization issues.
+
2006-09-21 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* MonoDevelop.Ide.Gui.Pads/OpenTaskView.cs: Track API changes.
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/SearchResultPad.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/SearchResultPad.cs
2006-09-24 16:25:12 UTC (rev 65864)
+++
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/SearchResultPad.cs
2006-09-24 16:29:31 UTC (rev 65865)
@@ -298,7 +298,7 @@
store.AppendValues (stock, line, column, text,
fileName, path, file, false, (int) Pango.Weight.Bold, file != null);
}
- status.Text = " " + statusText + " - " + matchCount +
GettextCatalog.GetString (" matches");
+ status.Text = " " + statusText + " - " +
string.Format(GettextCatalog.GetPluralString("{0} match", "{0} matches",
matchCount), matchCount);
}
}
}
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Search/SearchReplaceInFilesManager.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Search/SearchReplaceInFilesManager.cs
2006-09-24 16:25:12 UTC (rev 65864)
+++
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Search/SearchReplaceInFilesManager.cs
2006-09-24 16:29:31 UTC (rev 65865)
@@ -109,7 +109,11 @@
else if (cancelled)
msg = GettextCatalog.GetString ("Search
cancelled.");
else
- msg = string.Format (GettextCatalog.GetString
("Search completed. {0} matches found in {1} files."), find.MatchCount,
find.SearchedFileCount);
+ {
+ string matches =
string.Format(GettextCatalog.GetPluralString("{0} match found ", "{0} matches
found ", find.MatchCount), find.MatchCount);
+ string files =
string.Format(GettextCatalog.GetPluralString("in {0} file.", "in {0} files.",
find.SearchedFileCount), find.SearchedFileCount);
+ msg = GettextCatalog.GetString("Search
completed. ") + matches + files;
+ }
searchMonitor.ReportResult (null, 0, 0, msg);
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Search/SearchReplaceManager.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Search/SearchReplaceManager.cs
2006-09-24 16:25:12 UTC (rev 65864)
+++
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Search/SearchReplaceManager.cs
2006-09-24 16:29:31 UTC (rev 65865)
@@ -147,8 +147,9 @@
while (true) {
ISearchResult result =
SearchReplaceManager.find.FindNext(SearchReplaceManager.searchOptions);
- if (result == null) {
- Services.MessageService.ShowMessage(
string.Format (GettextCatalog.GetString ("Replace all finished. {0} matches
found."), find.MatchCount), DialogPointer );
+ if (result == null) {
+ string message =
string.Format(GettextCatalog.GetPluralString("Replace all finished. {0} match
found.", "Replace all finished. {0} matches found.", find.MatchCount),
find.MatchCount);
+
Services.MessageService.ShowMessage(message, DialogPointer);
find.Reset();
return;
} else {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches