@@ -408,8 +408,8 @@ export function addCommands(
408
408
* @returns the main area widget or null
409
409
*/
410
410
commands . addCommand ( CommandIDs . gitShowDiff , {
411
- label : trans . __ ( 'Show Diff' ) ,
412
- caption : trans . __ ( 'Display a file diff.' ) ,
411
+ label : 'Show Diff' ,
412
+ caption : 'Display a file diff.' ,
413
413
execute : async args => {
414
414
const { model, isText } = ( args as any ) as {
415
415
model : Git . Diff . IModel < string > ;
@@ -455,12 +455,12 @@ export function addCommands(
455
455
diffWidget . toolbar . addItem ( 'spacer' , Toolbar . createSpacerItem ( ) ) ;
456
456
457
457
const refreshButton = new ToolbarButton ( {
458
- label : trans . __ ( 'Refresh' ) ,
458
+ label : 'Refresh' ,
459
459
onClick : async ( ) => {
460
460
await widget . refresh ( ) ;
461
461
refreshButton . hide ( ) ;
462
462
} ,
463
- tooltip : trans . __ ( 'Refresh diff widget' ) ,
463
+ tooltip : 'Refresh diff widget' ,
464
464
className : 'jp-git-diff-refresh'
465
465
} ) ;
466
466
refreshButton . hide ( ) ;
@@ -483,11 +483,10 @@ export function addCommands(
483
483
return mainAreaItem ;
484
484
} else {
485
485
await showErrorMessage (
486
- trans . __ ( 'Diff Not Supported' ) ,
487
- trans . __ (
488
- 'Diff is not supported for %1 files.' ,
489
- PathExt . extname ( model . filename ) . toLocaleLowerCase ( )
490
- )
486
+ 'Diff Not Supported' ,
487
+ `Diff is not supported for ${ PathExt . extname (
488
+ model . filename
489
+ ) . toLocaleLowerCase ( ) } files.`
491
490
) ;
492
491
493
492
return null ;
0 commit comments