public static void Init() { LocaleDict dict = Locale.GetDictionary("Scada.Web.Plugins.PlgScheme.Template.TemplateBindings"); LoadTemplateBindingsError = dict.GetPhrase("LoadTemplateBindingsError"); SaveTemplateBindingsError = dict.GetPhrase("SaveTemplateBindingsError"); dict = Locale.GetDictionary("Scada.Web.Plugins.PlgScheme.CompManager"); UnknownComponent = dict.GetPhrase("UnknownComponent"); CompLibraryNotFound = dict.GetPhrase("CompLibraryNotFound"); UnableCreateComponent = dict.GetPhrase("UnableCreateComponent"); ErrorCreatingComponent = dict.GetPhrase("ErrorCreatingComponent"); }
public static void Init() { // load phrases from dictionaries, because the service user interface is multilingual LocaleDict dict = Locale.GetDictionary("Scada.Server.Modules"); LoadModuleConfigError = dict.GetPhrase("LoadModuleConfigError"); SaveModuleConfigError = dict.GetPhrase("SaveModuleConfigError"); // set phrases depending on locale, because the service logic supports only 2 languages if (Locale.IsRussian) { ErrorInArchive = "Ошибка при вызове метода {0} архива {1}"; ErrorInModule = "Ошибка при вызове метода {0} модуля {1}"; ArchiveMessage = "Архив {0}: {1}"; NullResultNotAllowed = "Результат метода не может быть null."; InvalidWritingPeriod = "Период записи должен быть положительным."; WritingModeNotSupported = "Режим записи не поддерживается архивом {0}."; WritingModeIsSlow = "Выбранный режим записи может снизить производительность"; DeleteOutdatedData = "Удаление устаревших данных из архива {0}, которые старше {1}"; ReadingTrendsCompleted = "Чтение трендов длины {0} успешно завершено за {1} мс"; ReadingTrendCompleted = "Чтение тренда длины {0} успешно завершено за {1} мс"; ReadingTimestampsCompleted = "Чтение меток времени длины {0} успешно завершено за {1} мс"; ReadingSliceCompleted = "Чтение среза длины {0} успешно завершено за {1} мс"; ReadingPointsCompleted = "Чтение {0} точек данных успешно завершено за {1} мс"; WritingSliceCompleted = "Запись среза длины {0} успешно завершена за {1} мс"; WritingPointsCompleted = "Запись {0} точек данных успешно завершена за {1} мс"; QueueingPointsCompleted = "Постановка в очередь {0} точек данных успешно завершена за {1} мс"; QueueBecameEmpty = "Очередь данных стала пустой"; PointsWereLost = "{0} точек данных были потеряны"; UpdateCompleted = "Обновление данных успешно завершено за {0} мс"; ReadingEventsCompleted = "Чтение {0} событий успешно завершено за {1} мс"; ReadingEventCompleted = "Чтение события успешно завершено за {0} мс"; WritingEventCompleted = "Запись события успешно завершена за {0} мс"; QueueingEventCompleted = "Постановка события в очередь успешно завершена за {0} мс"; EventsWereLost = "{0} событий были потеряны"; AckEventCompleted = "Квитирование события с ид. {0} успешно завершено за {1} мс"; AckEventNotFound = "Квитируемое событие с ид. {0} не найдено"; ReadDbError = "Ошибка при чтении из базы данных"; WriteDbError = "Ошибка при записи в базу данных"; } else { ErrorInArchive = "Error calling the {0} method of the {1} archive"; ErrorInModule = "Error calling the {0} method of the {1} module"; ArchiveMessage = "Archive {0}: {1}"; NullResultNotAllowed = "Method result must not be null."; InvalidWritingPeriod = "Writing period must be positive."; WritingModeNotSupported = "Writing mode is not supported by the {0} archive."; WritingModeIsSlow = "The selected writing mode may decrease performance"; DeleteOutdatedData = "Delete outdated data from the {0} archive older than {1}"; ReadingTrendsCompleted = "Reading trends of length {0} completed successfully in {1} ms"; ReadingTrendCompleted = "Reading a trend of length {0} completed successfully in {1} ms"; ReadingTimestampsCompleted = "Reading timestamps of length {0} completed successfully in {1} ms"; ReadingSliceCompleted = "Reading a slice of length {0} completed successfully in {1} ms"; ReadingPointsCompleted = "Reading of {0} data points completed successfully in {1} ms"; WritingSliceCompleted = "Writing a slice of length {0} completed successfully in {1} ms"; WritingPointsCompleted = "Writing of {0} data points completed successfully in {1} ms"; QueueingPointsCompleted = "Enqueueing of {0} data points completed successfully in {1} ms"; QueueBecameEmpty = "Data queue has become empty"; PointsWereLost = "{0} data points were lost"; UpdateCompleted = "Data update completed successfully in {0} ms"; ReadingEventsCompleted = "Reading of {0} events completed successfully in {1} ms"; ReadingEventCompleted = "Reading an event completed successfully in {0} ms"; WritingEventCompleted = "Event writing completed successfully in {0} ms"; QueueingEventCompleted = "Enqueueing an event completed successfully in {0} ms"; EventsWereLost = "{0} events were lost"; AckEventCompleted = "Acknowledging an event with ID {0} completed successfully in {1} ms"; AckEventNotFound = "Acknowledged event with ID {0} not found"; ReadDbError = "Error reading from database"; WriteDbError = "Error writing to database"; } }
public static void Init() { LocaleDict dict = Locale.GetDictionary("Scada.Application"); UnhandledException = dict.GetPhrase("UnhandledException"); ExecutionImpossible = dict.GetPhrase("ExecutionImpossible"); StartLogic = dict.GetPhrase("StartLogic"); LogicIsAlreadyStarted = dict.GetPhrase("LogicIsAlreadyStarted"); StartLogicError = dict.GetPhrase("StartLogicError"); LogicIsStopped = dict.GetPhrase("LogicIsStopped"); UnableToStopLogic = dict.GetPhrase("UnableToStopLogic"); StopLogicError = dict.GetPhrase("StopLogicError"); LogicCycleError = dict.GetPhrase("LogicCycleError"); ThreadFatalError = dict.GetPhrase("ThreadFatalError"); WriteInfoError = dict.GetPhrase("WriteInfoError"); ConnectionNotFound = dict.GetPhrase("ConnectionNotFound"); dict = Locale.GetDictionary("Scada.ConfigBase"); ArchiveTable = dict.GetPhrase("ArchiveTable"); CmdTypeTable = dict.GetPhrase("CmdTypeTable"); CmdValTable = dict.GetPhrase("CmdValTable"); CnlStatusTable = dict.GetPhrase("CnlStatusTable"); CnlTypeTable = dict.GetPhrase("CnlTypeTable"); CommLineTable = dict.GetPhrase("CommLineTable"); DataTypeTable = dict.GetPhrase("DataTypeTable"); DeviceTable = dict.GetPhrase("DeviceTable"); DevTypeTable = dict.GetPhrase("DevTypeTable"); FormatTable = dict.GetPhrase("FormatTable"); InCnlTable = dict.GetPhrase("InCnlTable"); LimTable = dict.GetPhrase("LimTable"); ObjTable = dict.GetPhrase("ObjTable"); ObjRightTable = dict.GetPhrase("ObjRightTable"); OutCnlTable = dict.GetPhrase("OutCnlTable"); QuantityTable = dict.GetPhrase("QuantityTable"); RoleTable = dict.GetPhrase("RoleTable"); RoleRefTable = dict.GetPhrase("RoleRefTable"); ScriptTable = dict.GetPhrase("ScriptTable"); UnitTable = dict.GetPhrase("UnitTable"); UserTable = dict.GetPhrase("UserTable"); ViewTable = dict.GetPhrase("ViewTable"); ViewTypeTable = dict.GetPhrase("ViewTypeTable"); dict = Locale.GetDictionary("Scada.Files"); FileNotFound = dict.GetPhrase("FileNotFound"); NamedFileNotFound = dict.GetPhrase("NamedFileNotFound"); LoadAppConfigError = dict.GetPhrase("LoadAppConfigError"); SaveAppConfigError = dict.GetPhrase("SaveAppConfigError"); dict = Locale.GetDictionary("Scada.Format"); UndefinedSign = dict.GetPhrase("UndefinedSign"); NotNumber = dict.GetPhrase("NotNumber"); NotHexadecimal = dict.GetPhrase("NotHexadecimal"); InvalidParamVal = dict.GetPhrase("InvalidParamVal"); }
public static void Init() { LocaleDict dict = Locale.GetDictionary("Scada.Admin.App.Code.AppState"); LoadAppStateError = dict.GetPhrase("LoadAppStateError"); SaveAppStateError = dict.GetPhrase("SaveAppStateError"); dict = Locale.GetDictionary("Scada.Admin.App.Code.ExplorerBuilder"); BaseNode = dict.GetPhrase("BaseNode"); PrimaryTablesNode = dict.GetPhrase("PrimaryTablesNode"); SecondaryTablesNode = dict.GetPhrase("SecondaryTablesNode"); TableByDeviceNode = dict.GetPhrase("TableByDeviceNode"); EmptyDeviceNode = dict.GetPhrase("EmptyDeviceNode"); ViewsNode = dict.GetPhrase("ViewsNode"); InstancesNode = dict.GetPhrase("InstancesNode"); ServerNode = dict.GetPhrase("ServerNode"); CommNode = dict.GetPhrase("CommNode"); WebNode = dict.GetPhrase("WebNode"); EmptyNode = dict.GetPhrase("EmptyNode"); DeviceFilter = dict.GetPhrase("DeviceFilter"); EmptyDeviceFilter = dict.GetPhrase("EmptyDeviceFilter"); dict = Locale.GetDictionary("Scada.Admin.App.Forms.Tables.FrmBaseTable"); GridViewError = dict.GetPhrase("GridViewError"); ColumnLabel = dict.GetPhrase("ColumnLabel"); DeleteRowConfirm = dict.GetPhrase("DeleteRowConfirm"); DeleteRowsConfirm = dict.GetPhrase("DeleteRowsConfirm"); ClearTableConfirm = dict.GetPhrase("ClearTableConfirm"); RowsNotDeleted = dict.GetPhrase("RowsNotDeleted"); ColumnNotNull = dict.GetPhrase("ColumnNotNull"); UniqueRequired = dict.GetPhrase("UniqueRequired"); KeyReferenced = dict.GetPhrase("KeyReferenced"); DataNotExist = dict.GetPhrase("DataNotExist"); DataChangeError = dict.GetPhrase("DataChangeError"); dict = Locale.GetDictionary("Scada.Admin.App.Forms.Tools.FrmCulture"); LoadCulturesError = dict.GetPhrase("LoadCulturesError"); CultureRequired = dict.GetPhrase("CultureRequired"); CultureNotFound = dict.GetPhrase("CultureNotFound"); dict = Locale.GetDictionary("Scada.Admin.App.Forms.FrmMain"); EmptyTitle = dict.GetPhrase("EmptyTitle"); ProjectTitle = dict.GetPhrase("ProjectTitle"); WelcomeMessage = dict.GetPhrase("WelcomeMessage"); SelectItemMessage = dict.GetPhrase("SelectItemMessage"); ProjectFileFilter = dict.GetPhrase("ProjectFileFilter"); ConfirmDeleteDirectory = dict.GetPhrase("ConfirmDeleteDirectory"); ConfirmDeleteFile = dict.GetPhrase("ConfirmDeleteFile"); ConfirmDeleteInstance = dict.GetPhrase("ConfirmDeleteInstance"); ConfirmDeleteCommLine = dict.GetPhrase("ConfirmDeleteCommLine"); FileOperationError = dict.GetPhrase("FileOperationError"); DirectoryAlreadyExists = dict.GetPhrase("DirectoryAlreadyExists"); FileAlreadyExists = dict.GetPhrase("FileAlreadyExists"); InstanceAlreadyExists = dict.GetPhrase("InstanceAlreadyExists"); SaveConfigBaseConfirm = dict.GetPhrase("SaveConfigBaseConfirm"); DeviceNotFoundInComm = dict.GetPhrase("DeviceNotFoundInComm"); WebUrlNotSet = dict.GetPhrase("WebUrlNotSet"); ReopenProject = dict.GetPhrase("ReopenProject"); dict = Locale.GetDictionary("Scada.Admin.App.Forms.FrmProjectNew"); ChooseProjectLocation = dict.GetPhrase("ChooseProjectLocation"); ProjectNameEmpty = dict.GetPhrase("ProjectNameEmpty"); ProjectNameInvalid = dict.GetPhrase("ProjectNameInvalid"); ProjectLocationNotExists = dict.GetPhrase("ProjectLocationNotExists"); ProjectAlreadyExists = dict.GetPhrase("ProjectAlreadyExists"); ProjectTemplateEmpty = dict.GetPhrase("ProjectTemplateEmpty"); ProjectTemplateNotFound = dict.GetPhrase("ProjectTemplateNotFound"); }
public static void Init() { LocaleDict dict = Locale.GetDictionary("Scada.Admin.App.Code.AppState"); LoadAppStateError = dict.GetPhrase("LoadAppStateError"); SaveAppStateError = dict.GetPhrase("SaveAppStateError"); dict = Locale.GetDictionary("Scada.Admin.App.Code.AppUtils"); EventEnabled = dict.GetPhrase("EventEnabled"); EventBeep = dict.GetPhrase("EventBeep"); DataChangeEvent = dict.GetPhrase("DataChangeEvent"); ValueChangeEvent = dict.GetPhrase("ValueChangeEvent"); StatusChangeEvent = dict.GetPhrase("StatusChangeEvent"); CnlUndefinedEvent = dict.GetPhrase("CnlUndefinedEvent"); dict = Locale.GetDictionary("Scada.Admin.App.Code.ExplorerBuilder"); BaseNode = dict.GetPhrase("BaseNode"); PrimaryTablesNode = dict.GetPhrase("PrimaryTablesNode"); SecondaryTablesNode = dict.GetPhrase("SecondaryTablesNode"); TableByDeviceNode = dict.GetPhrase("TableByDeviceNode"); EmptyDeviceNode = dict.GetPhrase("EmptyDeviceNode"); ViewsNode = dict.GetPhrase("ViewsNode"); InstancesNode = dict.GetPhrase("InstancesNode"); ServerNode = dict.GetPhrase("ServerNode"); CommNode = dict.GetPhrase("CommNode"); WebNode = dict.GetPhrase("WebNode"); EmptyNode = dict.GetPhrase("EmptyNode"); DeviceFilter = dict.GetPhrase("DeviceFilter"); EmptyDeviceFilter = dict.GetPhrase("EmptyDeviceFilter"); dict = Locale.GetDictionary("Scada.Admin.App.Forms"); CorrectErrors = dict.GetPhrase("CorrectErrors"); dict = Locale.GetDictionary("Scada.Admin.App.Forms.Tables.FrmBaseTable"); GridViewError = dict.GetPhrase("GridViewError"); ColumnLabel = dict.GetPhrase("ColumnLabel"); DeleteRowConfirm = dict.GetPhrase("DeleteRowConfirm"); DeleteRowsConfirm = dict.GetPhrase("DeleteRowsConfirm"); ClearTableConfirm = dict.GetPhrase("ClearTableConfirm"); RowsNotDeleted = dict.GetPhrase("RowsNotDeleted"); ColumnNotNull = dict.GetPhrase("ColumnNotNull"); UniqueRequired = dict.GetPhrase("UniqueRequired"); KeyReferenced = dict.GetPhrase("KeyReferenced"); DataNotExist = dict.GetPhrase("DataNotExist"); DataChangeError = dict.GetPhrase("DataChangeError"); dict = Locale.GetDictionary("Scada.Admin.App.Forms.Tables.FrmFilter"); IncorrectTableFilter = dict.GetPhrase("IncorrectTableFilter"); dict = Locale.GetDictionary("Scada.Admin.App.Forms.Tables.FrmFind"); ValueNotFound = dict.GetPhrase("ValueNotFound"); SearchComplete = dict.GetPhrase("SearchComplete"); ReplaceCount = dict.GetPhrase("ReplaceCount"); dict = Locale.GetDictionary("Scada.Admin.App.Forms.Tables.FrmTextDialog"); TextLine = dict.GetPhrase("TextLine"); TextLength = dict.GetPhrase("TextLength"); dict = Locale.GetDictionary("Scada.Admin.App.Forms.Tools.FrmCulture"); LoadCulturesError = dict.GetPhrase("LoadCulturesError"); CultureRequired = dict.GetPhrase("CultureRequired"); CultureNotFound = dict.GetPhrase("CultureNotFound"); dict = Locale.GetDictionary("Scada.Admin.App.Forms.FrmFileNew"); FileNameEmpty = dict.GetPhrase("FileNameEmpty"); FileNameInvalid = dict.GetPhrase("FileNameInvalid"); dict = Locale.GetDictionary("Scada.Admin.App.Forms.FrmInstanceEdit"); NewInstanceTitle = dict.GetPhrase("NewInstanceTitle"); EditInstanceTitle = dict.GetPhrase("EditInstanceTitle"); InstanceNameEmpty = dict.GetPhrase("InstanceNameEmpty"); InstanceNameInvalid = dict.GetPhrase("InstanceNameInvalid"); InstanceSelectApps = dict.GetPhrase("InstanceSelectApps"); dict = Locale.GetDictionary("Scada.Admin.App.Forms.FrmItemName"); ItemNameEmpty = dict.GetPhrase("ItemNameEmpty"); ItemNameInvalid = dict.GetPhrase("ItemNameInvalid"); ItemNameDuplicated = dict.GetPhrase("ItemNameDuplicated"); dict = Locale.GetDictionary("Scada.Admin.App.Forms.FrmMain"); EmptyTitle = dict.GetPhrase("EmptyTitle"); ProjectTitle = dict.GetPhrase("ProjectTitle"); WelcomeMessage = dict.GetPhrase("WelcomeMessage"); SelectItemMessage = dict.GetPhrase("SelectItemMessage"); ProjectFileFilter = dict.GetPhrase("ProjectFileFilter"); ConfirmDeleteDirectory = dict.GetPhrase("ConfirmDeleteDirectory"); ConfirmDeleteFile = dict.GetPhrase("ConfirmDeleteFile"); ConfirmDeleteInstance = dict.GetPhrase("ConfirmDeleteInstance"); ConfirmDeleteCommLine = dict.GetPhrase("ConfirmDeleteCommLine"); FileOperationError = dict.GetPhrase("FileOperationError"); DirectoryAlreadyExists = dict.GetPhrase("DirectoryAlreadyExists"); FileAlreadyExists = dict.GetPhrase("FileAlreadyExists"); InstanceAlreadyExists = dict.GetPhrase("InstanceAlreadyExists"); SaveConfigBaseConfirm = dict.GetPhrase("SaveConfigBaseConfirm"); DeviceNotFoundInComm = dict.GetPhrase("DeviceNotFoundInComm"); WebUrlNotSet = dict.GetPhrase("WebUrlNotSet"); ReopenProject = dict.GetPhrase("ReopenProject"); dict = Locale.GetDictionary("Scada.Admin.App.Forms.FrmProjectNew"); ChooseProjectLocation = dict.GetPhrase("ChooseProjectLocation"); ProjectNameEmpty = dict.GetPhrase("ProjectNameEmpty"); ProjectNameInvalid = dict.GetPhrase("ProjectNameInvalid"); ProjectLocationNotExists = dict.GetPhrase("ProjectLocationNotExists"); ProjectAlreadyExists = dict.GetPhrase("ProjectAlreadyExists"); ProjectTemplateEmpty = dict.GetPhrase("ProjectTemplateEmpty"); ProjectTemplateNotFound = dict.GetPhrase("ProjectTemplateNotFound"); dict = Locale.GetDictionary("Scada.Admin.App.Forms.FrmTextEditor"); OpenTextFileError = dict.GetPhrase("OpenTextFileError"); SaveTextFileError = dict.GetPhrase("SaveTextFileError"); }
public static void Init() { LocaleDict dict = Locale.GetDictionary("Scada.Admin.Project"); CreateAppConfigError = dict.GetPhrase("CreateAppConfigError"); DeleteAppConfigError = dict.GetPhrase("DeleteAppConfigError"); dict = Locale.GetDictionary("Scada.Admin.Project.ConfigBase"); LoadConfigBaseError = dict.GetPhrase("LoadConfigBaseError"); SaveConfigBaseError = dict.GetPhrase("SaveConfigBaseError"); LoadBaseTableError = dict.GetPhrase("LoadBaseTableError"); SaveBaseTableError = dict.GetPhrase("SaveBaseTableError"); dict = Locale.GetDictionary("Scada.Admin.Project.ProjectInstance"); CreateInstanceFilesError = dict.GetPhrase("CreateInstanceFilesError"); DeleteInstanceFilesError = dict.GetPhrase("DeleteInstanceFilesError"); RenameInstanceError = dict.GetPhrase("RenameInstanceError"); InstanceNameEmpty = dict.GetPhrase("InstanceNameEmpty"); InstanceNameInvalid = dict.GetPhrase("InstanceNameInvalid"); dict = Locale.GetDictionary("Scada.Admin.Project.ScadaProject"); CreateProjectError = dict.GetPhrase("CreateProjectError"); LoadProjectError = dict.GetPhrase("LoadProjectError"); SaveProjectError = dict.GetPhrase("SaveProjectError"); LoadProjectDescrError = dict.GetPhrase("LoadProjectDescrError"); ProjectNameEmpty = dict.GetPhrase("ProjectNameEmpty"); ProjectNameInvalid = dict.GetPhrase("ProjectNameInvalid"); RenameProjectError = dict.GetPhrase("RenameProjectError"); ProjectDirectoryExists = dict.GetPhrase("ProjectDirectoryExists"); }
public static void Init() { LocaleDict dict = Locale.GetDictionary("Scada.Admin.App.Code.AppState"); LoadAppStateError = dict["LoadAppStateError"]; SaveAppStateError = dict["SaveAppStateError"]; dict = Locale.GetDictionary("Scada.Admin.App.Code.ExplorerBuilder"); ConfigDatabaseNode = dict["ConfigDatabaseNode"]; PrimaryTablesNode = dict["PrimaryTablesNode"]; SecondaryTablesNode = dict["SecondaryTablesNode"]; ViewsNode = dict["ViewsNode"]; InstancesNode = dict["InstancesNode"]; ServerNode = dict["ServerNode"]; CommNode = dict["CommNode"]; WebNode = dict["WebNode"]; AppConfigNode = dict["AppConfigNode"]; DeviceFilter = dict["DeviceFilter"]; EmptyDeviceFilter = dict["EmptyDeviceFilter"]; dict = Locale.GetDictionary("Scada.Admin.App.Controls.Deployment.CtrlProfileSelector"); ProfileNotSet = dict["ProfileNotSet"]; ConfirmDeleteProfile = dict["ConfirmDeleteProfile"]; dict = Locale.GetDictionary("Scada.Admin.App.Controls.Deployment.CtrlTransferOptions"); ConfigNotSelected = dict["ConfigNotSelected"]; InvalidObjectFilter = dict["InvalidObjectFilter"]; dict = Locale.GetDictionary("Scada.Admin.App.Forms"); SelectedColumn = dict["SelectedColumn"]; NoProfileConnections = dict["NoProfileConnections"]; ExtensionNotFound = dict["ExtensionNotFound"]; ExtensionCannotDeploy = dict["ExtensionCannotDeploy"]; dict = Locale.GetDictionary("Scada.Admin.App.Forms.Deployment.FrmInstanceProfile"); AgentConnectionOK = dict["AgentConnectionOK"]; AgentConnectionError = dict["AgentConnectionError"]; DbConnectionOK = dict["DbConnectionOK"]; DbConnectionError = dict["DbConnectionError"]; dict = Locale.GetDictionary("Scada.Admin.App.Forms.Deployment.FrmInstanceStatus"); ControlServiceSuccessful = dict["ControlServiceSuccessful"]; UnableControlService = dict["UnableControlService"]; ControlServiceError = dict["ControlServiceError"]; AgentDisabled = dict["AgentDisabled"]; dict = Locale.GetDictionary("Scada.Admin.App.Forms.Deployment.FrmProfileEdit"); ProfileNameDuplicated = dict["ProfileNameDuplicated"]; dict = Locale.GetDictionary("Scada.Admin.App.Forms.Deployment.FrmTransfer"); DownloadTitle = dict["DownloadTitle"]; DownloadProgress = dict["DownloadProgress"]; DownloadError = dict["DownloadError"]; UploadTitle = dict["UploadTitle"]; UploadProgress = dict["UploadProgress"]; UploadError = dict["UploadError"]; OperationCompleted = dict["OperationCompleted"]; OperationCanceled = dict["OperationCanceled"]; OperationError = dict["OperationError"]; dict = Locale.GetDictionary("Scada.Admin.App.Forms.Tables.FrmBaseTable"); GridViewError = dict["GridViewError"]; ColumnLabel = dict["ColumnLabel"]; DeleteRowConfirm = dict["DeleteRowConfirm"]; DeleteRowsConfirm = dict["DeleteRowsConfirm"]; ClearTableConfirm = dict["ClearTableConfirm"]; RowsNotDeleted = dict["RowsNotDeleted"]; ColumnNotNull = dict["ColumnNotNull"]; UniqueRequired = dict["UniqueRequired"]; KeyReferenced = dict["KeyReferenced"]; DataNotExist = dict["DataNotExist"]; DataChangeError = dict["DataChangeError"]; dict = Locale.GetDictionary("Scada.Admin.App.Forms.Tables.FrmFilter"); IncorrectTableFilter = dict["IncorrectTableFilter"]; dict = Locale.GetDictionary("Scada.Admin.App.Forms.Tables.FrmFind"); ValueNotFound = dict["ValueNotFound"]; SearchCompleted = dict["SearchCompleted"]; ReplaceCount = dict["ReplaceCount"]; dict = Locale.GetDictionary("Scada.Admin.App.Forms.Tables.FrmLimCreate"); LimExistsInConfigDatabase = dict["LimExistsInConfigDatabase"]; DefaultLimName = dict["DefaultLimName"]; dict = Locale.GetDictionary("Scada.Admin.App.Forms.Tables.FrmTextDialog"); TextLine = dict["TextLine"]; TextLength = dict["TextLength"]; dict = Locale.GetDictionary("Scada.Admin.App.Forms.Tools.FrmCulture"); LoadCulturesError = dict["LoadCulturesError"]; CultureRequired = dict["CultureRequired"]; CultureNotFound = dict["CultureNotFound"]; dict = Locale.GetDictionary("Scada.Admin.App.Forms.Tools.FrmConfig"); ProjectExtRegistered = dict["ProjectExtRegistered"]; dict = Locale.GetDictionary("Scada.Admin.App.Forms.Tools.FrmFileAssociation"); ExecutableFileFilter = dict.GetPhrase("ExecutableFileFilter"); dict = Locale.GetDictionary("Scada.Admin.App.Forms.FrmFileNew"); FileNameEmpty = dict["FileNameEmpty"]; FileNameInvalid = dict["FileNameInvalid"]; dict = Locale.GetDictionary("Scada.Admin.App.Forms.FrmInstanceEdit"); NewInstanceTitle = dict["NewInstanceTitle"]; EditInstanceTitle = dict["EditInstanceTitle"]; InstanceNameEmpty = dict["InstanceNameEmpty"]; InstanceNameInvalid = dict["InstanceNameInvalid"]; InstanceSelectApps = dict["InstanceSelectApps"]; dict = Locale.GetDictionary("Scada.Admin.App.Forms.FrmItemName"); ItemNameEmpty = dict["ItemNameEmpty"]; ItemNameInvalid = dict["ItemNameInvalid"]; ItemNameDuplicated = dict["ItemNameDuplicated"]; dict = Locale.GetDictionary("Scada.Admin.App.Forms.FrmMain"); EmptyTitle = dict["EmptyTitle"]; ProjectTitle = dict["ProjectTitle"]; WelcomeMessage = dict["WelcomeMessage"]; SelectItemMessage = dict["SelectItemMessage"]; ProjectFileFilter = dict["ProjectFileFilter"]; ConfirmDeleteDirectory = dict["ConfirmDeleteDirectory"]; ConfirmDeleteFile = dict["ConfirmDeleteFile"]; ConfirmDeleteInstance = dict["ConfirmDeleteInstance"]; FileOperationError = dict["FileOperationError"]; DirectoryAlreadyExists = dict["DirectoryAlreadyExists"]; FileAlreadyExists = dict["FileAlreadyExists"]; InstanceAlreadyExists = dict["InstanceAlreadyExists"]; SaveConfigDatabaseConfirm = dict["SaveConfigDatabaseConfirm"]; DeviceNotFoundInComm = dict["DeviceNotFoundInComm"]; WebUrlNotSet = dict["WebUrlNotSet"]; ReopenProject = dict["ReopenProject"]; dict = Locale.GetDictionary("Scada.Admin.App.Forms.FrmProjectNew"); ChooseProjectLocation = dict["ChooseProjectLocation"]; ProjectNameEmpty = dict["ProjectNameEmpty"]; ProjectNameInvalid = dict["ProjectNameInvalid"]; ProjectLocationEmpty = dict["ProjectLocationEmpty"]; ProjectLocationInvalid = dict["ProjectLocationInvalid"]; ProjectAlreadyExists = dict["ProjectAlreadyExists"]; ProjectTemplateEmpty = dict["ProjectTemplateEmpty"]; ProjectTemplateNotFound = dict["ProjectTemplateNotFound"]; dict = Locale.GetDictionary("Scada.Admin.App.Forms.FrmTextEditor"); OpenTextFileError = dict["OpenTextFileError"]; SaveTextFileError = dict["SaveTextFileError"]; }
public static void Init() { // set phrases that are used in the bilingual service logic, depending on the locale if (Locale.IsRussian) { ErrorInArchive = "Ошибка при вызове метода {0} архива {1}"; ErrorInModule = "Ошибка при вызове метода {0} модуля {1}"; ArchiveMessage = "Архив {0}: {1}"; NullResultNotAllowed = "Результат метода не может быть null."; InvalidWritingPeriod = "Период записи должен быть положительным."; WritingModeNotSupported = "Режим записи не поддерживается архивом {0}."; WritingModeIsSlow = "Выбранный режим записи может снизить производительность"; DeleteOutdatedData = "Удаление устаревших данных из архива {0}, которые старше {1}"; ReadingTrendsCompleted = "Чтение трендов длины {0} успешно завершено за {1} мс"; ReadingTrendCompleted = "Чтение тренда длины {0} успешно завершено за {1} мс"; ReadingTimestampsCompleted = "Чтение меток времени длины {0} успешно завершено за {1} мс"; ReadingSliceCompleted = "Чтение среза длины {0} успешно завершено за {1} мс"; ReadingPointsCompleted = "Чтение {0} точек данных успешно завершено за {1} мс"; WritingSliceCompleted = "Запись среза длины {0} успешно завершена за {1} мс"; WritingPointsCompleted = "Запись {0} точек данных успешно завершена за {1} мс"; QueueingPointsCompleted = "Постановка в очередь {0} точек данных успешно завершена за {1} мс"; QueueBecameEmpty = "Очередь данных стала пустой"; PointsWereLost = "{0} точек данных были потеряны"; UpdateCompleted = "Обновление данных успешно завершено за {0} мс"; ReadingEventsCompleted = "Чтение {0} событий успешно завершено за {1} мс"; ReadingEventCompleted = "Чтение события успешно завершено за {0} мс"; WritingEventCompleted = "Запись события успешно завершена за {0} мс"; QueueingEventCompleted = "Постановка события в очередь успешно завершена за {0} мс"; EventsWereLost = "{0} событий были потеряны"; AckEventCompleted = "Квитирование события с ид. {0} успешно завершено за {1} мс"; AckEventNotFound = "Квитируемое событие с ид. {0} не найдено"; StartModule = "Модуль {0} {1} запущен"; StopModule = "Модуль {0} остановлен"; ModuleMessage = "Модуль {0}: {1}"; ReadDbError = "Ошибка при чтении из базы данных"; WriteDbError = "Ошибка при записи в базу данных"; ModuleStateLoaded = "Состояние модуля загружено"; ModuleStateNotExists = "Файл состояния модуля отсутствует или устарел"; LoadModuleStateError = "Ошибка при загрузке состояния модуля"; SaveModuleStateError = "Ошибка при сохранении состояния модуля"; } else { ErrorInArchive = "Error calling the {0} method of the {1} archive"; ErrorInModule = "Error calling the {0} method of the {1} module"; ArchiveMessage = "Archive {0}: {1}"; NullResultNotAllowed = "Method result must not be null."; InvalidWritingPeriod = "Writing period must be positive."; WritingModeNotSupported = "Writing mode is not supported by the {0} archive."; WritingModeIsSlow = "The selected writing mode may decrease performance"; DeleteOutdatedData = "Delete outdated data from the {0} archive older than {1}"; ReadingTrendsCompleted = "Reading trends of length {0} completed successfully in {1} ms"; ReadingTrendCompleted = "Reading a trend of length {0} completed successfully in {1} ms"; ReadingTimestampsCompleted = "Reading timestamps of length {0} completed successfully in {1} ms"; ReadingSliceCompleted = "Reading a slice of length {0} completed successfully in {1} ms"; ReadingPointsCompleted = "Reading of {0} data points completed successfully in {1} ms"; WritingSliceCompleted = "Writing a slice of length {0} completed successfully in {1} ms"; WritingPointsCompleted = "Writing of {0} data points completed successfully in {1} ms"; QueueingPointsCompleted = "Enqueueing of {0} data points completed successfully in {1} ms"; QueueBecameEmpty = "Data queue has become empty"; PointsWereLost = "{0} data points were lost"; UpdateCompleted = "Data update completed successfully in {0} ms"; ReadingEventsCompleted = "Reading of {0} events completed successfully in {1} ms"; ReadingEventCompleted = "Reading an event completed successfully in {0} ms"; WritingEventCompleted = "Event writing completed successfully in {0} ms"; QueueingEventCompleted = "Enqueueing an event completed successfully in {0} ms"; EventsWereLost = "{0} events were lost"; AckEventCompleted = "Acknowledging an event with ID {0} completed successfully in {1} ms"; AckEventNotFound = "Acknowledged event with ID {0} not found"; StartModule = "Module {0} {1} started"; StopModule = "Module {0} is stopped"; ModuleMessage = "Module {0}: {1}"; ReadDbError = "Error reading from database"; WriteDbError = "Error writing to database"; ModuleStateLoaded = "Module state loaded"; ModuleStateNotExists = "Module state file is missing or outdated"; LoadModuleStateError = "Error loading module state"; SaveModuleStateError = "Error saving module state"; } // load phrases that are used in the multilingual user interface from dictionaries LocaleDict dict = Locale.GetDictionary("Scada.Server.Archives"); UnspecifiedArchiveKind = dict.GetPhrase("UnspecifiedArchiveKind"); CurrentArchiveKind = dict.GetPhrase("CurrentArchiveKind"); HistoricalArchiveKind = dict.GetPhrase("HistoricalArchiveKind"); EventsArchiveKind = dict.GetPhrase("EventsArchiveKind"); dict = Locale.GetDictionary("Scada.Server.Modules"); LoadModuleConfigError = dict.GetPhrase("LoadModuleConfigError"); SaveModuleConfigError = dict.GetPhrase("SaveModuleConfigError"); SaveModuleConfigConfirm = dict.GetPhrase("SaveModuleConfigConfirm"); dict = Locale.GetDictionary("Scada.Server.Engine.CoreLogic"); CommandSentBy = dict.GetPhrase("CommandSentBy"); }