Skip to content

Commit

Permalink
Localization metadata update 1.68.1 (#12092)
Browse files Browse the repository at this point in the history
  • Loading branch information
msujew authored Jan 23, 2023
1 parent 1c77006 commit b597a04
Show file tree
Hide file tree
Showing 37 changed files with 18,713 additions and 14,466 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/browser/about-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class AboutDialog extends ReactDialog<void> {
const compatibilityUrl = 'https://eclipse-theia.github.io/vscode-theia-comparator/status.html';

const detailsLabel = nls.localizeByDefault('Details');
const versionLabel = nls.localizeByDefault('Version');
const versionLabel = nls.localize('theia/core/about/version', 'Version');
const defaultApiLabel = nls.localize('theia/core/about/defaultApi', 'Default {0} API', 'VS Code');
const compatibilityLabel = nls.localize('theia/core/about/compatibility', '{0} Compatibility', 'VS Code');

Expand Down
11 changes: 5 additions & 6 deletions packages/core/src/browser/core-preferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ export const corePreferenceSchema: PreferenceSchema = {
nls.localizeByDefault('Menu is displayed at the top of the window and only hidden in full screen mode.'),
nls.localizeByDefault('Menu is always visible at the top of the window even in full screen mode.'),
nls.localizeByDefault('Menu is always hidden.'),
nls.localizeByDefault('Menu is displayed as a compact button in the sidebar. This value is ignored when `#window.titleBarStyle#` is `native`.')
nls.localizeByDefault('Menu is displayed as a compact button in the side bar. This value is ignored when `#window.titleBarStyle#` is `native`.')
],
default: 'classic',
scope: 'application',
// eslint-disable-next-line max-len
markdownDescription: nls.localizeByDefault('Control the visibility of the menu bar. A setting of \'toggle\' means that the menu bar is hidden and a single press of the Alt key will show it. A setting of \'compact\' will move the menu into the sidebar.'),
markdownDescription: nls.localizeByDefault("Control the visibility of the menu bar. A setting of 'toggle' means that the menu bar is hidden and a single press of the Alt key will show it. A setting of 'compact' will move the menu into the side bar."),
included: !(isOSX && environment.electron.is())
},
'window.title': {
Expand Down Expand Up @@ -133,7 +133,7 @@ export const corePreferenceSchema: PreferenceSchema = {
enumDescriptions: [
nls.localizeByDefault('Disable proxy support for extensions.'),
nls.localizeByDefault('Enable proxy support for extensions.'),
nls.localize('theia/core/proxySupportFallback', 'Enable proxy support for extensions, fall back to request options, when no proxy found.'),
nls.localizeByDefault('Enable proxy support for extensions, fall back to request options, when no proxy found.'),
nls.localizeByDefault('Enable proxy support for extensions, override request options.'),
],
default: 'override',
Expand Down Expand Up @@ -166,13 +166,12 @@ export const corePreferenceSchema: PreferenceSchema = {
'workbench.editor.closeOnFileDelete': {
'type': 'boolean',
// eslint-disable-next-line max-len
'description': nls.localizeByDefault('Controls whether editors showing a file that was opened during the session should close automatically when getting deleted or renamed by some other process. Disabling this will keep the editor open on such an event. Note that deleting from within the application will always close the editor and that dirty files will never close to preserve your data.'),
'description': nls.localizeByDefault('Controls whether editors showing a file that was opened during the session should close automatically when getting deleted or renamed by some other process. Disabling this will keep the editor open on such an event. Note that deleting from within the application will always close the editor and that editors with unsaved changes will never close to preserve your data.'),
'default': false
},
'workbench.editor.mouseBackForwardToNavigate': {
'type': 'boolean',
// nls-todo: Will be available with newer VSCode API
'description': nls.localize('theia/core/mouseBackForwardToNavigate', "Enables the use of mouse buttons four and five for commands 'Go Back' and 'Go Forward'."),
'description': nls.localizeByDefault("Enables the use of mouse buttons four and five for commands 'Go Back' and 'Go Forward'."),
'default': true
},
'workbench.commandPalette.history': {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/browser/dialogs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ export class ConfirmDialog extends AbstractDialog<boolean> {

export async function confirmExit(): Promise<boolean> {
const safeToExit = await new ConfirmDialog({
title: nls.localize('theia/core/quitTitle', 'Are you sure you want to quit?'),
title: nls.localizeByDefault('Are you sure you want to quit?'),
msg: nls.localize('theia/core/quitMessage', 'Any unsaved changes will not be saved.'),
ok: Dialog.YES,
cancel: Dialog.NO,
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/browser/i18n/language-quick-pick-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class LanguageQuickPickService {
const quickInputItems: (LanguageQuickPickItem | QuickPickSeparator)[] = [
{
type: 'separator',
label: nls.localize('theia/core/installedLanguages', 'Installed languages')
label: nls.localizeByDefault('Installed languages')
},
...installedItems
];
Expand All @@ -55,7 +55,7 @@ export class LanguageQuickPickService {
if (availableItems.length > 0) {
quickInputItems.push({
type: 'separator',
label: nls.localize('theia/core/availableLanguages', 'Available languages')
label: nls.localizeByDefault('Available languages')
});
const installed = new Set(installedItems.map(e => e.languageId));
for (const available of availableItems) {
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/browser/shell/application-shell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2033,9 +2033,9 @@ export namespace ApplicationShell {
export const areaLabels: Record<Area, string> = {
main: nls.localizeByDefault('Main'),
top: nls.localize('theia/shell-area/top', 'Top'),
left: nls.localize('theia/shell-area/left', 'Left'),
right: nls.localize('theia/shell-area/right', 'Right'),
bottom: nls.localize('theia/shell-area/bottom', 'Bottom'),
left: nls.localizeByDefault('Left'),
right: nls.localizeByDefault('Right'),
bottom: nls.localizeByDefault('Bottom'),
secondaryWindow: nls.localize('theia/shell-area/secondary', 'Secondary Window'),
};

Expand Down
Loading

0 comments on commit b597a04

Please sign in to comment.