PRELIMINARY INFORMATION - SUBJECT TO CHANGE
Performs a setup of the localization by synchronizing resource strings from an XML source to the database.
Syntax
Smartsite SXML | Copy Code |
---|---|
datatable locale.setup(locator xml, enum mode) |
Parameters
Name | Data Type | Description |
---|---|---|
xml | Locator | Item containing the XML with string resources. The XML may be in the 2.0 format that supports to specify resources per application, or may be in de 1.0 format that lacks applications and assumes the default application. |
mode | Enum |
Setup mode. Specify Count to count the number of inserts, updates and deletes that would be performed, without actually modifying the database. Specify Insert to insert new resources. Specify Update to insert new resources and to update the value of existing resources. Specify Delete to perform all necessary inserts, updates and deletes to make the database equal to the supplied resources, for the involved applications. Note that inserts and updates for the default application are honoured; deletes however will not be performed for the default application.
Enum values:
|
Return Value
Data Type | Description |
---|---|
DataTable | Returns an one-row three-column table with the number of inserts, updates and deletes that would be performed or that are actually performed. Each application specific / resource key specific / culture specific resource string is counted individually. |