Skip to content

Commit ff9cc85

Browse files
committed
Fix backport
1 parent f826d02 commit ff9cc85

File tree

2 files changed

+2051
-1780
lines changed

2 files changed

+2051
-1780
lines changed

src/commandsAndMenu.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,8 @@ export function addCommands(
408408
* @returns the main area widget or null
409409
*/
410410
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.',
413413
execute: async args => {
414414
const { model, isText } = (args as any) as {
415415
model: Git.Diff.IModel<string>;
@@ -455,12 +455,12 @@ export function addCommands(
455455
diffWidget.toolbar.addItem('spacer', Toolbar.createSpacerItem());
456456

457457
const refreshButton = new ToolbarButton({
458-
label: trans.__('Refresh'),
458+
label: 'Refresh',
459459
onClick: async () => {
460460
await widget.refresh();
461461
refreshButton.hide();
462462
},
463-
tooltip: trans.__('Refresh diff widget'),
463+
tooltip: 'Refresh diff widget',
464464
className: 'jp-git-diff-refresh'
465465
});
466466
refreshButton.hide();
@@ -483,11 +483,10 @@ export function addCommands(
483483
return mainAreaItem;
484484
} else {
485485
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.`
491490
);
492491

493492
return null;

0 commit comments

Comments
 (0)