@@ -32,6 +32,9 @@ class BranchesView : Subview
32
32
private const string DeleteBranchTitle = "Delete Branch?" ;
33
33
private const string DeleteBranchButton = "Delete" ;
34
34
private const string CancelButtonLabel = "Cancel" ;
35
+ private const string DeleteBranchContextMenuLabel = "Delete" ;
36
+ private const string SwitchBranchContextMenuLabel = "Switch" ;
37
+ private const string CheckoutBranchContextMenuLabel = "Checkout" ;
35
38
36
39
[ NonSerialized ] private int listID = - 1 ;
37
40
[ NonSerialized ] private BranchesMode targetMode ;
@@ -337,8 +340,8 @@ private GenericMenu CreateContextMenuForLocalBranchNode(TreeNode node)
337
340
{
338
341
var genericMenu = new GenericMenu ( ) ;
339
342
340
- var deleteGuiContent = new GUIContent ( "Delete" ) ;
341
- var switchGuiContent = new GUIContent ( "Switch" ) ;
343
+ var deleteGuiContent = new GUIContent ( DeleteBranchContextMenuLabel ) ;
344
+ var switchGuiContent = new GUIContent ( SwitchBranchContextMenuLabel ) ;
342
345
343
346
if ( node . IsActive )
344
347
{
@@ -363,7 +366,7 @@ private GenericMenu CreateContextMenuForRemoteBranchNode(TreeNode node)
363
366
{
364
367
var genericMenu = new GenericMenu ( ) ;
365
368
366
- var checkoutGuiContent = new GUIContent ( "Checkout" ) ;
369
+ var checkoutGuiContent = new GUIContent ( CheckoutBranchContextMenuLabel ) ;
367
370
368
371
genericMenu . AddItem ( checkoutGuiContent , false , ( ) => {
369
372
CheckoutRemoteBranch ( node . Name ) ;
0 commit comments