github.com/kaleido-io/firefly@v0.0.0-20210622132723-8b4b6aacb971/internal/i18n/en_translations.go (about)

     1  // Copyright © 2021 Kaleido, Inc.
     2  //
     3  // SPDX-License-Identifier: Apache-2.0
     4  //
     5  // Licensed under the Apache License, Version 2.0 (the "License");
     6  // you may not use this file except in compliance with the License.
     7  // You may obtain a copy of the License at
     8  //
     9  //     http://www.apache.org/licenses/LICENSE-2.0
    10  //
    11  // Unless required by applicable law or agreed to in writing, software
    12  // distributed under the License is distributed on an "AS IS" BASIS,
    13  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14  // See the License for the specific language governing permissions and
    15  // limitations under the License.
    16  
    17  package i18n
    18  
    19  //revive:disable
    20  var (
    21  	MsgConfigFailed                = ffm("FF10101", "Failed to read config")
    22  	MsgTBD                         = ffm("FF10102", "TODO: Description")
    23  	MsgJSONDecodeFailed            = ffm("FF10103", "Failed to decode input JSON")
    24  	MsgAPIServerStartFailed        = ffm("FF10104", "Unable to start listener on %s: %s")
    25  	MsgTLSConfigFailed             = ffm("FF10105", "Failed to initialize TLS configuration")
    26  	MsgInvalidCAFile               = ffm("FF10106", "Invalid CA certificates file")
    27  	MsgResponseMarshalError        = ffm("FF10107", "Failed to serialize response data", 400)
    28  	MsgWebsocketClientError        = ffm("FF10108", "Error received from WebSocket client: %s")
    29  	Msg404NotFound                 = ffm("FF10109", "Not found", 404)
    30  	MsgUnknownBlockchainPlugin     = ffm("FF10110", "Unknown blockchain plugin: %s")
    31  	MsgEthconnectRESTErr           = ffm("FF10111", "Error from ethconnect: %s")
    32  	MsgDBInitFailed                = ffm("FF10112", "Database initialization failed")
    33  	MsgDBQueryBuildFailed          = ffm("FF10113", "Database query builder failed")
    34  	MsgDBBeginFailed               = ffm("FF10114", "Database begin transaction failed")
    35  	MsgDBQueryFailed               = ffm("FF10115", "Database query failed")
    36  	MsgDBInsertFailed              = ffm("FF10116", "Database insert failed")
    37  	MsgDBUpdateFailed              = ffm("FF10117", "Database update failed")
    38  	MsgDBDeleteFailed              = ffm("FF10118", "Database delete failed")
    39  	MsgDBCommitFailed              = ffm("FF10119", "Database commit failed")
    40  	MsgDBMissingJoin               = ffm("FF10120", "Database missing expected join entry in table '%s' for id '%s'")
    41  	MsgDBReadErr                   = ffm("FF10121", "Database resultset read error from table '%s'")
    42  	MsgUnknownDatabasePlugin       = ffm("FF10122", "Unknown database plugin '%s'")
    43  	MsgNullDataReferenceID         = ffm("FF10123", "Data id is null in message data reference %d")
    44  	MsgDupDataReferenceID          = ffm("FF10124", "Duplicate data ID in message '%s'")
    45  	MsgScanFailed                  = ffm("FF10125", "Failed to restore type '%T' into '%T'")
    46  	MsgUnregisteredBatchType       = ffm("FF10126", "Unregistered batch type '%s'")
    47  	MsgBatchDispatchTimeout        = ffm("FF10127", "Timed out dispatching work to batch")
    48  	MsgInitializationNilDepError   = ffm("FF10128", "Initialization error due to unmet dependency")
    49  	MsgNilResponseNon204           = ffm("FF10129", "No output from API call")
    50  	MsgInvalidContentType          = ffm("FF10130", "Invalid content type", 415)
    51  	MsgInvalidName                 = ffm("FF10131", "Field '%s' must be 1-64 characters, including alphanumerics (a-zA-Z0-9), dot (.), dash (-) and underscore (_), and must start/end in an alphanumeric", 400)
    52  	MsgUnknownFieldValue           = ffm("FF10132", "Unknown %s '%v'", 400)
    53  	MsgDataNotFound                = ffm("FF10133", "Data not found for message %s", 400)
    54  	MsgUnknownPublicStoragePlugin  = ffm("FF10134", "Unknown Public Storage plugin '%s'")
    55  	MsgIPFSHashDecodeFailed        = ffm("FF10135", "Failed to decode IPFS hash into 32byte value '%s'")
    56  	MsgIPFSRESTErr                 = ffm("FF10136", "Error from IPFS: %s")
    57  	MsgSerializationFailed         = ffm("FF10137", "Serialization failed")
    58  	MsgMissingPluginConfig         = ffm("FF10138", "Missing configuration '%s' for %s")
    59  	MsgMissingDataHashIndex        = ffm("FF10139", "Missing data hash for index '%d' in message", 400)
    60  	MsgMissingRequiredField        = ffm("FF10140", "Field '%s' is required", 400)
    61  	MsgInvalidEthAddress           = ffm("FF10141", "Supplied ethereum address is invalid", 400)
    62  	MsgInvalidUUID                 = ffm("FF10142", "Invalid UUID supplied", 400)
    63  	Msg404NoResult                 = ffm("FF10143", "No result found", 404)
    64  	MsgNilDataReferenceSealFail    = ffm("FF10144", "Invalid message: nil data reference at index %d", 400)
    65  	MsgDupDataReferenceSealFail    = ffm("FF10145", "Invalid message: duplicate data reference at index %d", 400)
    66  	MsgVerifyFailedInvalidHashes   = ffm("FF10146", "Invalid message: hashes do not match Hash=%s Expected=%s DataHash=%s DataHashExpected=%s", 400)
    67  	MsgVerifyFailedNilHashes       = ffm("FF10147", "Invalid message: nil hashes", 400)
    68  	MsgInvalidFilterField          = ffm("FF10148", "Unknown filter '%s'", 400)
    69  	MsgInvalidValueForFilterField  = ffm("FF10149", "Unable to parse value for filter '%s'", 400)
    70  	MsgUnsupportedSQLOpInFilter    = ffm("FF10150", "No SQL mapping implemented for filter operator '%s'", 400)
    71  	MsgJSONObjectParseFailed       = ffm("FF10151", "Failed to parse '%s' as JSON")
    72  	MsgFilterParamDesc             = ffm("FF10152", "Data filter field. Prefixes supported: > >= < <= @ ^ ! !@ !^")
    73  	MsgSuccessResponse             = ffm("FF10153", "Success")
    74  	MsgFilterSortDesc              = ffm("FF10154", "Sort field. For multi-field sort use comma separate fields, or multiple query values")
    75  	MsgFilterDescendingDesc        = ffm("FF10155", "Descending. Descending sort order (applies to all fields in a multi-field sort)")
    76  	MsgFilterSkipDesc              = ffm("FF10156", "The number of records to skip (max: %d). Unsuitable for bulk operations")
    77  	MsgFilterLimitDesc             = ffm("FF10157", "The maximum number of records to return (max: %d)")
    78  	MsgContextCanceled             = ffm("FF10158", "Context cancelled")
    79  	MsgWSSendTimedOut              = ffm("FF10159", "Websocket send timed out")
    80  	MsgWSClosing                   = ffm("FF10160", "Websocket closing")
    81  	MsgWSConnectFailed             = ffm("FF10161", "Websocket connect failed")
    82  	MsgInvalidURL                  = ffm("FF10162", "Invalid URL: '%s'")
    83  	MsgDBMigrationFailed           = ffm("FF10163", "Database migration failed")
    84  	MsgHashMismatch                = ffm("FF10164", "Hash mismatch")
    85  	MsgTimeParseFail               = ffm("FF10165", "Cannot parse time as RFC3339, Unix, or UnixNano: '%s'", 400)
    86  	MsgDefaultNamespaceNotFound    = ffm("FF10166", "namespaces.default '%s' must be included in the namespaces.predefined configuration")
    87  	MsgDurationParseFail           = ffm("FF10167", "Unable to parse '%s' as duration string, or millisecond number", 400)
    88  	MsgEventTypesParseFail         = ffm("FF10168", "Unable to parse list of event types", 400)
    89  	MsgUnknownEventType            = ffm("FF10169", "Unknown event type '%s'", 400)
    90  	MsgIDMismatch                  = ffm("FF10170", "ID mismatch")
    91  	MsgRegexpCompileFailed         = ffm("FF10171", "Unable to compile '%s' regexp '%s'")
    92  	MsgUnknownEventTransportPlugin = ffm("FF10172", "Unknown event transport plugin: %s")
    93  	MsgWSConnectionNotActive       = ffm("FF10173", "Websocket connection '%s' no longer active")
    94  	MsgWSSubAlreadyInFlight        = ffm("FF10174", "Websocket subscription '%s' already has a message in flight")
    95  	MsgWSMsgSubNotMatched          = ffm("FF10175", "Acknowledgment does not match an inflight event + subscription")
    96  	MsgWSClientSentInvalidData     = ffm("FF10176", "Invalid data")
    97  	MsgWSClientUnknownAction       = ffm("FF10177", "Unknown action '%s'")
    98  	MsgWSInvalidStartAction        = ffm("FF10178", "A start action must set namespace and either a name or ephemeral=true")
    99  	MsgWSAutoAckChanged            = ffm("FF10179", "The autoack option must be set consistently on all start requests")
   100  	MsgWSAutoAckEnabled            = ffm("FF10180", "The autoack option is enabled on this connection")
   101  	MsgConnSubscriptionNotStarted  = ffm("FF10181", "Subscription %v is not started on connection")
   102  	MsgDispatcherClosing           = ffm("FF10182", "Event dispatcher closing")
   103  	MsgMaxFilterSkip               = ffm("FF10183", "You have reached the maximum pagination limit for this query (%d)")
   104  	MsgMaxFilterLimit              = ffm("FF10184", "Your query exceeds the maximum filter limit (%d)")
   105  	MsgAPIServerStaticFail         = ffm("FF10185", "An error occurred loading static content", 500)
   106  	MsgEventListenerClosing        = ffm("FF10186", "Event listener closing")
   107  	MsgNamespaceNotExist           = ffm("FF10187", "Namespace does not exist")
   108  	MsgFieldTooLong                = ffm("FF10188", "Field '%s' maximum length is %d", 400)
   109  	MsgInvalidSubscription         = ffm("FF10189", "Invalid subscription", 400)
   110  	MsgMismatchedTransport         = ffm("FF10190", "Connection ID '%s' appears not to be unique between transport '%s' and '%s'", 400)
   111  	MsgInvalidFirstEvent           = ffm("FF10191", "Invalid firstEvent definition - must be 'newest','oldest' or a sequence number", 400)
   112  	MsgNumberMustBeGreaterEqual    = ffm("FF10192", "Number must be greater than or equal to %d", 400)
   113  	MsgAlreadyExists               = ffm("FF10193", "A %s with name '%s:%s' already exists", 409)
   114  	MsgJSONValidatorBadRef         = ffm("FF10194", "Cannot use JSON validator for data with type '%s' and validator reference '%v'", 400)
   115  	MsgDatatypeNotFound            = ffm("FF10195", "Datatype '%v' not found", 400)
   116  	MsgSchemaLoadFailed            = ffm("FF10196", "Datatype '%s' schema invalid", 400)
   117  	MsgDataCannotBeValidated       = ffm("FF10197", "Data cannot be validated", 400)
   118  	MsgJSONDataInvalidPerSchema    = ffm("FF10198", "Data does not conform to the JSON schema of datatype '%s': %s", 400)
   119  	MsgDataValueIsNull             = ffm("FF10199", "Data value is null", 400)
   120  	MsgUnknownValidatorType        = ffm("FF10200", "Unknown validator type: '%s'", 400)
   121  	MsgDataInvalidHash             = ffm("FF10201", "Invalid data: hashes do not match Hash=%s Expected=%s", 400)
   122  	MsgSystemNSDescription         = ffm("FF10202", "FireFly system namespace")
   123  	MsgNilID                       = ffm("FF10203", "ID is nil")
   124  	MsgDataReferenceUnresolvable   = ffm("FF10204", "Data reference %d cannot be resolved", 400)
   125  	MsgDataMissing                 = ffm("FF10205", "Data entry %d has neither 'id' to refer to existing data, or 'value' to include in-line JSON data", 400)
   126  	MsgAuthorInvalid               = ffm("FF10206", "Invalid header.author in message", 400)
   127  	MsgNoTransaction               = ffm("FF10207", "Message does not have a transaction", 404)
   128  	MsgBatchNotSet                 = ffm("FF10208", "Message does not have an assigned batch", 404)
   129  	MsgBatchNotFound               = ffm("FF10209", "Batch '%s' not found for message", 500)
   130  	MsgBatchTXNotSet               = ffm("FF10210", "Batch '%s' does not have an assigned transaction", 404)
   131  	MsgOwnerMissing                = ffm("FF10211", "Owner missing", 400)
   132  	MsgUnknownIdentityPlugin       = ffm("FF10212", "Unknown Identity plugin '%s'")
   133  	MsgUnknownDataExchangePlugin   = ffm("FF10213", "Unknown Data Exchange plugin '%s'")
   134  	MsgParentIdentityNotFound      = ffm("FF10214", "Organization with identity '%s' not found in identity chain for %s '%s'")
   135  	MsgInvalidSigningIdentity      = ffm("FF10215", "Invalid signing identity")
   136  	MsgNodeAndOrgIDMustBeSet       = ffm("FF10216", "node.name, org.name and org.identity must be configured first", 409)
   137  	MsgBlobStreamingFailed         = ffm("FF10217", "Blob streaming terminated with error", 500)
   138  	MsgMultiPartFormReadError      = ffm("FF10218", "Error reading multi-part form input", 400)
   139  	MsgGroupMustHaveMembers        = ffm("FF10219", "Group must have at least one member", 400)
   140  	MsgEmptyMemberIdentity         = ffm("FF10220", "Identity is blank in member %d")
   141  	MsgEmptyMemberNode             = ffm("FF10221", "Node is blank in member %d")
   142  	MsgDuplicateMember             = ffm("FF10222", "Member %d is a duplicate org+node combination")
   143  	MsgOrgNotFound                 = ffm("FF10223", "Org with name or identity '%s' not found", 400)
   144  	MsgNodeNotFound                = ffm("FF10224", "Node with name or identity '%s' not found", 400)
   145  	MsgOneMemberLocal              = ffm("FF10225", "One member must be on the local node", 400)
   146  	MsgGroupNotFound               = ffm("FF10226", "Group '%s' not found", 404)
   147  	MsgTooManyItems                = ffm("FF10227", "Maximum number of %s items is %d (supplied=%d)", 400)
   148  	MsgDuplicateArrayEntry         = ffm("FF10228", "Duplicate %s at index %d: '%s'", 400)
   149  	MsgDXRESTErr                   = ffm("FF10229", "Error from data exchange: %s")
   150  	MsgGroupInvalidHash            = ffm("FF10230", "Invalid group: hashes do not match Hash=%s Expected=%s", 400)
   151  	MsgInvalidHex                  = ffm("FF10231", "Invalid hex supplied", 400)
   152  	MsgInvalidWrongLenB32          = ffm("FF10232", "Byte length must be 32 (64 hex characters)", 400)
   153  	MsgNodeNotFoundInOrg           = ffm("FF10233", "Unable to find any nodes owned by org '%s', or parent orgs", 400)
   154  )