Top Method Summary
Options Name Purpose
ApplyRecords (character, character, integer, integer, integer) Applies the records of a file to the translations of its language
INTEGER DeleteMissingRecords (character) Deletes the keyed translations of the language of a file whose scope occurs in the file but whose key does not
CHARACTER GetQualifiedKey () Returns the scope and the key of the current record of a file
ImportFile (character) Imports one translation resource file
ImportFolder (character) Imports the translation resource files of a folder
LOGICAL IsDifferent (character, character) Returns if the value of the SmartDB differs from the value of a file

Top Constructor Summary
Options Name Purpose
TranslationResourceImporter () Constructor for the TranslationResourceImporter class

Top Property Summary
Options Name Purpose
INTEGER CreatedRecords
INTEGER DeletedRecords
LOGICAL DeleteMissing
LOGICAL DryRun
INTEGER ImportedFiles
Consultingwerk.SmartFramework.Tools.TranslationResources.TranslationResourceLog Log
LOGICAL MarkSystemOwned
INTEGER RejectedFiles
INTEGER UnchangedRecords
INTEGER UpdatedRecords


Method Detail
Top

ApplyRecords (character, character, integer, integer, integer)

Purpose: Applies the records of a file to the translations of its language
Notes: Works on the eSmartTranslation records of the language, with
TRACKING-CHANGES switched on

Parameters:
pcLanguageGuid CHARACTER
The LanguageGuid of the language of the file
pcLanguageLabel CHARACTER
The name the language is reported with
piCreated INTEGER
OUTPUT The number of translations created
piUpdated INTEGER
OUTPUT The number of translations updated
piUnchanged INTEGER
OUTPUT The number of translations found unchanged
Top

INTEGER DeleteMissingRecords (character)

Purpose: Deletes the keyed translations of the language of a file whose
scope occurs in the file but whose key does not
Notes: Works on the eSmartTranslation records of the language, with
TRACKING-CHANGES switched on

Parameters:
pcLanguageLabel CHARACTER
The name the language is reported with
Returns INTEGER
The number of translations deleted
Top

CHARACTER GetQualifiedKey ()

Purpose: Returns the scope and the key of the current record of a file
Notes:

Returns CHARACTER
The scope and the key, separated by the key separator
Top

ImportFile (character)

Purpose: Imports one translation resource file
Notes:

Parameters:
pcFileName CHARACTER
The name of the file
Top

ImportFolder (character)

Purpose: Imports the translation resource files of a folder
Notes: Imports the *.json files directly in the folder. The outcome is
in the Log and the counter properties of this object

Parameters:
pcFolder CHARACTER
The folder with the translation resource files
Top

LOGICAL IsDifferent (character, character)

Purpose: Returns if the value of the SmartDB differs from the value of a file
Notes: Compares the bytes: case and trailing blanks count. An unknown
value in the SmartDB always differs

Parameters:
pcDatabaseValue CHARACTER
The value of the SmartDB
pcFileValue CHARACTER
The value of the file
Returns LOGICAL
Logical value indicating if the values differ


Constructor Detail
Top

TranslationResourceImporter ()

Purpose: Constructor for the TranslationResourceImporter class
Notes:



Property Detail
Top

INTEGER CreatedRecords


Returns INTEGER
Top

INTEGER DeletedRecords


Returns INTEGER
Top

LOGICAL DeleteMissing


Returns LOGICAL
Top

LOGICAL DryRun


Returns LOGICAL
Top

INTEGER ImportedFiles


Returns INTEGER
Top

Consultingwerk.SmartFramework.Tools.TranslationResources.TranslationResourceLog Log


Returns Consultingwerk.SmartFramework.Tools.TranslationResources.TranslationResourceLog
Top

LOGICAL MarkSystemOwned


Returns LOGICAL
Top

INTEGER RejectedFiles


Returns INTEGER
Top

INTEGER UnchangedRecords


Returns INTEGER
Top

INTEGER UpdatedRecords


Returns INTEGER


Temp-Table Detail


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       24.11.2026 10:10:32