Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

13030 Localized some warns and infos #13031

Merged
merged 2 commits into from
Oct 26, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/workspace/cut', "Please use the browser's cut command or shortcut."));
msujew marked this conversation as resolved.
Show resolved Hide resolved
}
}
});
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/workspace/copy', "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/workspace/paste', "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/workspace/copyingWarn', 'Open a file first to copy its path'));
}
}
}));
Expand Down