localization: change Compare with HEAD to Compare with <current_branch_name>

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-05-30 18:19:46 +08:00
parent 7934496cff
commit 8b17f3b1f4
No known key found for this signature in database
13 changed files with 14 additions and 17 deletions

View file

@ -1928,15 +1928,15 @@ namespace SourceGit.ViewModels
}
}
var compareWithHead = new MenuItem();
compareWithHead.Header = App.Text("BranchCM.CompareWithHead");
compareWithHead.Icon = App.CreateMenuIcon("Icons.Compare");
compareWithHead.Click += (_, _) =>
var compareWithCurrent = new MenuItem();
compareWithCurrent.Header = App.Text("BranchCM.CompareWithCurrent", _currentBranch.Name);
compareWithCurrent.Icon = App.CreateMenuIcon("Icons.Compare");
compareWithCurrent.Click += (_, _) =>
{
App.ShowWindow(new BranchCompare(_fullpath, branch, _currentBranch), false);
};
menu.Items.Add(new MenuItem() { Header = "-" });
menu.Items.Add(compareWithHead);
menu.Items.Add(compareWithCurrent);
if (_localChangesCount > 0)
{