diff options
author | Vsevolod Kukol <sevoku@microsoft.com> | 2020-01-09 19:31:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-09 19:31:06 +0300 |
commit | 365a2a60491a4aa2905fa36dfce875be5771ee29 (patch) | |
tree | 13793a4fcdf0009d98b123d5d272b273870c3b9f | |
parent | 232eb67190a73f45e8dd9e7e9ee251c36d23d44e (diff) | |
parent | eec12c24c446b9976335732da1c49e5df7e0932c (diff) |
Merge pull request #9509 from mono/master-vsts1042154
Fixes VSTS Bug 1042154: Wrong accessibility translations
-rw-r--r-- | main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/EditorCompareWidgetBase.MiddleArea.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/EditorCompareWidgetBase.MiddleArea.cs b/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/EditorCompareWidgetBase.MiddleArea.cs index 7362d853ec..6c0ec76084 100644 --- a/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/EditorCompareWidgetBase.MiddleArea.cs +++ b/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/EditorCompareWidgetBase.MiddleArea.cs @@ -480,14 +480,13 @@ namespace MonoDevelop.VersionControl.Views Accessible.PerformPress += PerformPress; Accessible.SetRole (AtkCocoa.Roles.AXButton); - Accessible.Label = widget.useLeft ? GettextCatalog.GetString ("Revert left changes button") : GettextCatalog.GetString ("Revert right changes button"); if (hunk.Inserted > 0) { - Accessible.Label = GettextCatalog.GetString ("Revert {0} inserted lines starting at {1}", hunk.Inserted, hunk.InsertStart); + Accessible.Label = GettextCatalog.GetPluralString ("Revert {0} inserted line starting at {1}", "Revert {0} inserted lines starting at {1}", hunk.Inserted, hunk.Inserted, hunk.InsertStart); } else if (hunk.Removed > 0) { - Accessible.Label = GettextCatalog.GetString ("Revert {0} removed lines starting at {1}", hunk.Removed, hunk.RemoveStart); + Accessible.Label = GettextCatalog.GetPluralString ("Revert {0} removed line starting at {1}", "Revert {0} removed lines starting at {1}", hunk.Removed, hunk.Removed, hunk.RemoveStart); } else { - Accessible.Label = GettextCatalog.GetString ("Revert {0} replaced lines starting at {1}", hunk.Removed, hunk.InsertStart); + Accessible.Label = GettextCatalog.GetPluralString ("Revert {0} replaced line starting at {1}", "Revert {0} replaced lines starting at {1}", hunk.Removed, hunk.Removed, hunk.InsertStart); } } |