diff options
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs b/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs index 86a26fc077..7e9e87966d 100644 --- a/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs +++ b/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs @@ -619,8 +619,18 @@ namespace MonoDevelop.PackageManagement { int row = packageStore.AddRow (); var accessibleDescription = StringBuilderCache.Allocate (packageViewModel.Id); - if (packageViewModel.HasDownloadCount) - accessibleDescription.Append (", ").Append (packageViewModel.GetDownloadCountDisplayText ()).Append (" ").Append (GettextCatalog.GetString ("Downloads")); + if (packageViewModel.HasDownloadCount) { + accessibleDescription.Append (", "); + if (packageViewModel.ShowVersionInsteadOfDownloadCount) { + accessibleDescription.Append (GettextCatalog.GetString ("Version")); + accessibleDescription.Append (" "); + accessibleDescription.Append (packageViewModel.GetDownloadCountOrVersionDisplayText ()); + } else { + accessibleDescription.Append (packageViewModel.GetDownloadCountOrVersionDisplayText ()); + accessibleDescription.Append (" "); + accessibleDescription.Append (GettextCatalog.GetString ("Downloads")); + } + } if (!string.IsNullOrEmpty (packageViewModel.Summary)) accessibleDescription.Append (", ").Append (packageViewModel.Summary); packageStore.SetValues (row, |