Icon Translations Property

property Translations: TStringList

Available In: Client and Server Applications

Specifies the translations for all strings used in components/controls and error/warning/information messages as key-value pairs. In order to translate one or more strings, simply reference the string ID using the Values property and assign it a new value. For example, the following will translate the text used for the OK button on message dialogs to a new value:

FormatSettings.Translations.Values['DLG_BTN_OK']:='Okey-Dokey';

The following strings are pre-defined in the framework and can be translated to suit your needs:

StringDefault Value
DLG_MSGMessage
DLG_BTN_OKOK
DLG_BTN_CANCELCancel
DLG_BTN_ABORTAbort
DLG_BTN_RETRYRetry
DLG_BTN_IGNOREIgnore
DLG_BTN_YESYes
DLG_BTN_NONo
DLG_BTN_ALLAll
DLG_BTN_NOTOALLNo to All
DLG_BTN_YESTOALLYes to All
DLG_BTN_CLOSEClose
TYPE_UNKNOWNUnknown
TYPE_STRINGString
TYPE_BOOLEANBoolean
TYPE_INTEGERInteger
TYPE_FLOATFloat
TYPE_DATEDate
TYPE_TIMETime
TYPE_DATETIMEDateTime
TYPE_BLOBBlob
TYPE_SYMBOLSymbol
ERR_COMP_DESTROY"%s" component already destroyed
ERR_LOAD_PERSISTENTPersistent load error (%s)
ERR_LOAD_METHODMethod %s not found
ERR_SAVE_PERSISTENTPersistent save error (%s)
ERR_SET_RANGEValue "%s" out of range for set
ERR_BOOLEAN_LITERALInvalid boolean literal "%s" specified
ERR_FORMATError in the format string %s (%s)
ERR_VALUE_CONVERTError converting %s value to %s value
ERR_VALUE_READONLY"%s" is read-only and cannot be modified
ERR_DATETIME_DATEdate
ERR_DATETIME_TIMEtime
ERR_DATETIME_MONTHInvalid month %s specified
ERR_DATETIME_DAYInvalid day %s specified
ERR_DATETIME_TOOMANYCOMPSToo many %s components
ERR_DATETIME_MISSINGCOMPMissing %s component
ERR_DATETIME_INVALIDCOMPInvalid %s component
ERR_DATETIME_INVALIDFORMATInvalid %s format
ERR_DATETIME_INVALIDInvalid %s (%s)
ERR_PARSE_TERMSTRUnterminated string at %s
ERR_PARSE_MISSINGMissing %s
ERR_PARSE_EXPECTExpected %s, instead found %s at %s
ERR_LIST_BOUNDSList index %s out of bounds
ERR_LIST_SORTYou can only use the Find method when a list is sorted
ERR_OWNERInvalid owner class %s passed to constructor
ERR_LOADUI_STATEError loading interface state (%s)
ERR_UI_DUPSTATEThe interface state %s already exists
ERR_UI_ELEMENTCLASSCannot find registered element class information for the %s class
ERR_DOM_EVENTADDCannot add event handler to "%s" element for "%s" event
ERR_DOM_EVENTCLEARCannot remove "%s" event handler from "%s"
ERR_HTML_FORM_REQUESTThere is no server request assigned to the HTML form
ERR_HTTP_REQUEST_EXECUTINGRequest execution already in progress
ERR_HTTP_REQUEST_URLA URL must be specified for the request
ERR_HTTP_REQUEST_TIMEOUTTimed out
ERR_HTTP_REQUEST_NETWORKNetwork error
ERR_HTTP_REQUESTError executing request "%s" (%s)
ERR_AUTH_CANCELLEDThe session authentication was cancelled
ERR_MAILERError sending mail (%s)
ERR_ROWSET_ROWNOTFOUNDThe row was not found in the rowset (ID: %s)
ERR_ROWSET_FINDNEARYou can only search for nearest matches in the "%s" dataset when searching on columns that match the current sort order
ERR_DATA_TRANSOPTYPEInvalid or unknown operation type %s specified in the transaction operations
ERR_DATA_DUPCOLThe "%s" column already exists
ERR_DATA_COLNAMEColumn names cannot be blank (%s)
ERR_DATA_COLTYPEUnknown column type (%s)
ERR_DATA_COLLENGTHInvalid "%s" column length %s
ERR_DATA_COLSCALEInvalid "%s" column scale %s
ERR_DATA_CONNECTCannot connect to server
ERR_DATA_LOADCODEStatus code %s
ERR_DATA_LOADDataset load response error (%s)
ERR_DATA_COMMITDatabase commit response error (%s)
ERR_DATA_TRANSACTIVEA transaction is not active
ERR_DATA_PENDREQUESTThere are no pending requests
ERR_DATA_COLUMNSAt least one column must be defined for the "%s" dataset
ERR_DATA_OPENThe "%s" dataset must be open in order to complete this operation
ERR_DATA_NOTOPENThe "%s" dataset cannot be open when completing this operation
ERR_DATA_NOTEDITINGThe "%s" dataset must be in an editable mode before a column can be assigned a value
ERR_DATA_COLNOTFOUNDColumn "%s" not found
ERR_DATA_DATASETDBThe "%s" dataset cannot be loaded using the "%s" database
ERR_APP_ERRORTITLEApplication Error
APP_LOAD_MESSAGELoading %s...
ERR_DLG_BUTTONSYou must specify at least one button for the message dialog
ERR_FORM_SHOWMODALYou cannot call ShowModal for the embedded form %s
ERR_CTRL_PARENTThe %s control cannot be a parent of the %s control
ERR_CALENDAR_COLINDEXColumn index %s out of bounds
ERR_CALENDAR_ROWINDEXRow index %s out of bounds
ERR_GRID_COLINDEXColumn index %s out of bounds
ERR_GRID_ROWINDEXRow index %s out of bounds
ERR_GRID_COLNOTFOUNDColumn "%s" not found
ERR_CANVASYour browser does not have HTML5 canvas support
ERR_STORAGEYour browser does not have HTML5 persistent storage support
ERR_SCRIPT_LOADYour browser does not support dynamic script loading
ERR_GEOLOCATIONYour browser does not have HTML5 geolocation support
ERR_MEDIAYour browser does not have HTML5 media support
ERR_SELECTIONYour browser does not have HTML5 content selection support
ERR_MAPThe map API has not been loaded
ERR_MAP_GEOCODEGeocoding request error "%s"
ERR_MAP_LOCNOTFOUNDLocation "%s" not found
ERR_MAP_DUPLOCThe "%s" location already exists
ERR_MAP_LOCNAMELocation names cannot be blank (%s)
ERR_SIZER_CONTROLThe sizer control itself cannot be assigned as the target control
ERR_ZOOM_FACTORZoom factor %s invalid, factor must be between 1 and 100
ERR_SLIDE_COUNTAt least %s slide images must be specifed before the slide show can be started
ERR_MENU_PARENTThe parent menu "%s" cannot be assigned as a sub-menu

Information Be sure to include the %s string placeholders in the same order and quantity to ensure that data that is formatted into the string by the runtime still produces a string that makes sense.
Image