mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-24 09:35:37 -05:00
162 lines
11 KiB
TypeScript
162 lines
11 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import * as nls from 'vscode-nls';
|
|
const localize = nls.loadMessageBundle();
|
|
|
|
// Object Types
|
|
export const LoginTypeDisplayName: string = localize('objectManagement.LoginTypeDisplayName', "login");
|
|
export const UserTypeDisplayName: string = localize('objectManagement.UserDisplayName', "user");
|
|
export const LoginTypeDisplayNameInTitle: string = localize('objectManagement.LoginTypeDisplayNameInTitle', "Login");
|
|
export const UserTypeDisplayNameInTitle: string = localize('objectManagement.UserTypeDisplayNameInTitle', "User");
|
|
export const TableTypeDisplayName: string = localize('objectManagement.TableDisplayName', "table");
|
|
export const ViewTypeDisplayName: string = localize('objectManagement.ViewDisplayName', "view");
|
|
export const ColumnTypeDisplayName: string = localize('objectManagement.ColumnDisplayName', "column");
|
|
export const DatabaseTypeDisplayName: string = localize('objectManagement.DatabaseDisplayName', "database");
|
|
|
|
// Shared Strings
|
|
export const HelpText: string = localize('objectManagement.helpText', "Help");
|
|
export const YesText: string = localize('objectManagement.yesText', "Yes");
|
|
export const OkText: string = localize('objectManagement.OkText', "OK");
|
|
export const LoadingDialogText: string = localize('objectManagement.loadingDialog', "Loading dialog...");
|
|
export const FailedToRetrieveConnectionInfoErrorMessage: string = localize('objectManagement.noConnectionUriError', "Failed to retrieve the connection information, please reconnect and try again.")
|
|
export const RenameObjectDialogTitle: string = localize('objectManagement.renameObjectDialogTitle', "Enter new name");
|
|
export const ScriptText: string = localize('objectManagement.scriptText', "Script");
|
|
export const NoActionScriptedMessage: string = localize('objectManagement.noActionScriptedMessage', "There is no action to be scripted.");
|
|
export const ScriptGeneratedText: string = localize('objectManagement.scriptGenerated', "Script has been generated successfully. You can close the dialog to view it in the newly opened editor.")
|
|
|
|
|
|
export function RefreshObjectExplorerError(error: string): string {
|
|
return localize({
|
|
key: 'objectManagement.refreshOEError',
|
|
comment: ['{0}: error message.']
|
|
}, "An error occurred while while refreshing the object explorer. {0}", error);
|
|
}
|
|
|
|
export function DeleteObjectConfirmationText(objectType: string, objectName: string): string {
|
|
return localize({
|
|
key: 'objectManagement.deleteObjectConfirmation',
|
|
comment: ['{0} object type, {1}: object name.']
|
|
}, "Are you sure you want to delete the {0}: {1}?", objectType, objectName);
|
|
}
|
|
|
|
export function CreateObjectOperationDisplayName(objectType: string): string {
|
|
return localize({
|
|
key: 'objectManagement.createObjectOperationName',
|
|
comment: ['{0} object type']
|
|
}, "Create {0}", objectType);
|
|
}
|
|
|
|
export function UpdateObjectOperationDisplayName(objectType: string, objectName: string): string {
|
|
return localize({
|
|
key: 'objectManagement.updateObjectOperationName',
|
|
comment: ['{0} object type, {1}: object name.']
|
|
}, "Update {0} '{1}'", objectType, objectName);
|
|
}
|
|
|
|
export function DeleteObjectOperationDisplayName(objectType: string, objectName: string): string {
|
|
return localize({
|
|
key: 'objectManagement.deleteObjectOperationName',
|
|
comment: ['{0} object type, {1}: object name.']
|
|
}, "Delete {0} '{1}'", objectType, objectName);
|
|
}
|
|
|
|
export function DeleteObjectError(objectType: string, objectName: string, error: string): string {
|
|
return localize({
|
|
key: 'objectManagement.deleteObjectError',
|
|
comment: ['{0} object type, {1}: object name, {2}: error message.']
|
|
}, "An error occurred while deleting the {0}: {1}. {2}", objectType, objectName, error);
|
|
}
|
|
|
|
export function OpenObjectPropertiesDialogError(objectType: string, objectName: string, error: string): string {
|
|
return localize({
|
|
key: 'objectManagement.openObjectPropertiesDialogError',
|
|
comment: ['{0} object type, {1}: object name, {2}: error message.']
|
|
}, "An error occurred while opening the properties dialog for {0}: {1}. {2}", objectType, objectName, error);
|
|
}
|
|
|
|
export function OpenNewObjectDialogError(objectType: string, error: string): string {
|
|
return localize({
|
|
key: 'objectManagement.openNewObjectDialogError',
|
|
comment: ['{0} object type, {1}: error message.']
|
|
}, "An error occurred while opening the new {0} dialog. {1}", objectType, error);
|
|
}
|
|
|
|
export function NewObjectDialogTitle(objectType: string): string {
|
|
return localize({
|
|
key: 'objectManagement.newObjectDialogTitle',
|
|
comment: ['{0} object type.']
|
|
}, '{0} - New (Preview)', objectType);
|
|
}
|
|
|
|
export function ObjectPropertiesDialogTitle(objectType: string, objectName: string): string {
|
|
return localize({
|
|
key: 'objectManagement.objectPropertiesDialogTitle',
|
|
comment: ['{0} object type, {1}: object name.']
|
|
}, '{0} - {1} (Preview)', objectType, objectName);
|
|
}
|
|
|
|
export function RenameObjectOperationDisplayName(objectType: string, originalName: string, newName: string): string {
|
|
return localize({
|
|
key: 'objectManagement.renameObjectOperationName',
|
|
comment: ['{0} object type, {1}: original name, {2}: new name']
|
|
}, "Rename {0} '{1}' to '{2}'", objectType, originalName, newName);
|
|
}
|
|
|
|
export function RenameObjectError(objectType: string, originalName: string, newName: string, error: string): string {
|
|
return localize({
|
|
key: 'objectManagement.renameObjectError',
|
|
comment: ['{0} object type, {1}: original name, {2}: new name, {3}: error message.']
|
|
}, "An error occurred while renaming {0} '{1}' to '{2}'. {3}", objectType, originalName, newName, error);
|
|
}
|
|
|
|
export function ScriptError(error: string): string {
|
|
return localize('objectManagement.scriptError', "An error occurred while generating script. {0}", error);
|
|
}
|
|
|
|
export const NameText = localize('objectManagement.nameLabel', "Name");
|
|
export const SelectedText = localize('objectManagement.selectedLabel', "Selected");
|
|
export const GeneralSectionHeader = localize('objectManagement.generalSectionHeader', "General");
|
|
export const AdvancedSectionHeader = localize('objectManagement.advancedSectionHeader', "Advanced");
|
|
export const PasswordText = localize('objectManagement.passwordLabel', "Password");
|
|
export const ConfirmPasswordText = localize('objectManagement.confirmPasswordLabel', "Confirm password");
|
|
export const EnabledText = localize('objectManagement.enabledLabel', "Enabled");
|
|
export const NameCannotBeEmptyError = localize('objectManagement.nameCannotBeEmptyError', "Name cannot be empty.");
|
|
export const PasswordCannotBeEmptyError = localize('objectManagement.passwordCannotBeEmptyError', "Password cannot be empty.");
|
|
export const PasswordsNotMatchError = localize('objectManagement.passwordsNotMatchError', "Password must match the confirm password.");
|
|
export const InvalidPasswordError = localize('objectManagement.invalidPasswordError', "Password doesn't meet the complexity requirement. For more information: https://docs.microsoft.com/sql/relational-databases/security/password-policy");
|
|
export const LoginNotSelectedError = localize('objectManagement.loginNotSelectedError', "Login is not selected.");
|
|
|
|
// Login
|
|
export const BlankPasswordConfirmationText: string = localize('objectManagement.blankPasswordConfirmation', "Creating a login with a blank password is a security risk. Are you sure you want to continue?");
|
|
export const DeleteLoginConfirmationText: string = localize('objectManagement.deleteLoginConfirmation', "Deleting server logins does not delete the database users associated with the logins. To complete the process, delete the users in each database. It may be necessary to first transfer the ownership of schemas to new users.");
|
|
export const SQLAuthenticationSectionHeader = localize('objectManagement.login.sqlAuthSectionHeader', "SQL Authentication");
|
|
export const ServerRoleSectionHeader = localize('objectManagement.login.serverRoleSectionHeader', "Server Roles");
|
|
export const AuthTypeText = localize('objectManagement.login.authenticateType', "Authentication");
|
|
export const SpecifyOldPasswordText = localize('objectManagement.login.specifyOldPasswordLabel', "Specify old password");
|
|
export const OldPasswordText = localize('objectManagement.login.oldPasswordLabel', "Old password");
|
|
export const EnforcePasswordPolicyText = localize('objectManagement.login.enforcePasswordPolicyLabel', "Enforce password policy");
|
|
export const EnforcePasswordExpirationText = localize('objectManagement.login.enforcePasswordExpirationLabel', "Enforce password expiration");
|
|
export const MustChangePasswordText = localize('objectManagement.login.mustChangePasswordLabel', "User must change password at next login");
|
|
export const DefaultDatabaseText = localize('objectManagement.login.defaultDatabaseLabel', "Default database");
|
|
export const DefaultLanguageText = localize('objectManagement.login.defaultLanguageLabel', "Default language");
|
|
export const PermissionToConnectText = localize('objectManagement.login.permissionToConnectLabel', "Permission to connect to database engine");
|
|
export const LoginLockedOutText = localize('objectManagement.login.lockedOutLabel', "Login is locked out");
|
|
export const WindowsAuthenticationTypeDisplayText = localize('objectManagement.login.windowsAuthenticationType', "Windows Authentication");
|
|
export const SQLAuthenticationTypeDisplayText = localize('objectManagement.login.sqlAuthenticationType', "SQL Authentication");
|
|
export const AADAuthenticationTypeDisplayText = localize('objectManagement.login.aadAuthenticationType', "Azure Active Directory Authentication");
|
|
export const OldPasswordCannotBeEmptyError = localize('objectManagement.login.oldPasswordCannotBeEmptyError', "Old password cannot be empty.");
|
|
|
|
// User
|
|
export const UserTypeText = localize('objectManagement.user.type', "Type");
|
|
export const UserWithLoginText = localize('objectManagement.user.userWithLogin', "User with login");
|
|
export const UserWithWindowsGroupLoginText = localize('objectManagement.user.userWithGroupLogin', "User with Windows group login");
|
|
export const ContainedUserText = localize('objectManagement.user.containedUser', "Contained user");
|
|
export const UserWithNoConnectAccess = localize('objectManagement.user.userWithNoConnectAccess', "User with no connect access");
|
|
export const DefaultSchemaText = localize('objectManagement.user.defaultSchemaLabel', "Default schema");
|
|
export const LoginText = localize('objectManagement.user.loginLabel', "Login");
|
|
export const OwnedSchemaSectionHeader = localize('objectManagement.user.ownedSchemasLabel', "Owned Schemas");
|
|
export const MembershipSectionHeader = localize('objectManagement.user.membershipLabel', "Membership");
|