Skip to content

Commit

Permalink
core: added localizations to clipboard commands (#13031)
Browse files Browse the repository at this point in the history
The commit adds missing localizations to clipboard commands.
  • Loading branch information
Zebsterpasha authored Oct 26, 2023
1 parent c745963 commit 470022a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core/src/browser/common-frontend-contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ export class CommonFrontendContribution implements FrontendApplicationContributi
if (supportCut) {
document.execCommand('cut');
} else {
this.messageService.warn("Please use the browser's cut command or shortcut.");
this.messageService.warn(nls.localize('theia/core/cutWarn', "Please use the browser's cut command or shortcut."));
}
}
});
Expand All @@ -747,7 +747,7 @@ export class CommonFrontendContribution implements FrontendApplicationContributi
if (supportCopy) {
document.execCommand('copy');
} else {
this.messageService.warn("Please use the browser's copy command or shortcut.");
this.messageService.warn(nls.localize('theia/core/copyWarn', "Please use the browser's copy command or shortcut."));
}
}
});
Expand All @@ -756,7 +756,7 @@ export class CommonFrontendContribution implements FrontendApplicationContributi
if (supportPaste) {
document.execCommand('paste');
} else {
this.messageService.warn("Please use the browser's paste command or shortcut.");
this.messageService.warn(nls.localize('theia/core/pasteWarn', "Please use the browser's paste command or shortcut."));
}
}
});
Expand All @@ -769,7 +769,7 @@ export class CommonFrontendContribution implements FrontendApplicationContributi
const text = uris.map(resource => resource.path.fsPath()).join(lineDelimiter);
await this.clipboardService.writeText(text);
} else {
await this.messageService.info('Open a file first to copy its path');
await this.messageService.info(nls.localize('theia/core/copyInfo', 'Open a file first to copy its path'));
}
}
}));
Expand Down

0 comments on commit 470022a

Please sign in to comment.