Top Method Summary
Options Name Purpose
CHARACTER GetBaseName (character) Returns the name of a file without its path
CHARACTER GetLanguageFromFileName (character) Returns the language a file name stands for
LOGICAL HasProperty (JsonObject, character) Returns if a JSON object has a property of exactly that name
LOGICAL ReadFile (character, TranslationResourceLog, character, table) Reads a translation resource file
CHARACTER ReadLanguageIsoCode (JsonObject, character, character, TranslationResourceLog) Reads the language of a resource and compares it with the language of the file name
ReadRecord (JsonArray, integer, character, TranslationResourceLog) Reads one record of a resource into the temp-table
CHARACTER ReadString (JsonObject, character, character, TranslationResourceLog) Reads a string property of a record
ReportUnknownProperties (JsonObject, character, character, TranslationResourceLog) Reports the properties of a JSON object that are not part of the resource format


Method Detail
Top

CHARACTER GetBaseName (character)

Purpose: Returns the name of a file without its path
Notes:

Parameters:
pcFileName CHARACTER
The name of the file
Returns CHARACTER
The name of the file without the path
Top

CHARACTER GetLanguageFromFileName (character)

Purpose: Returns the language a file name stands for
Notes: Returns the unknown value when the file name does not follow the
convention: default.json or the ISO code in lower case

Parameters:
pcBaseName CHARACTER
The name of the file without a path
Returns CHARACTER
The ISO code in upper case, empty for the default language
Top

LOGICAL HasProperty (JsonObject, character)

Purpose: Returns if a JSON object has a property of exactly that name
Notes: The names of JSON properties are case-sensitive

Parameters:
poJson Progress.Json.ObjectModel.JsonObject
The JSON object
pcName CHARACTER
The name of the property
Returns LOGICAL
Logical value indicating if the property exists
Top

LOGICAL ReadFile (character, TranslationResourceLog, character, table)

Purpose: Reads a translation resource file
Notes: Findings are reported as errors to the log

Parameters:
pcFileName CHARACTER
The name of the file
poLog Consultingwerk.SmartFramework.Tools.TranslationResources.TranslationResourceLog
The log that receives the findings
pcLanguageIsoCode CHARACTER
OUTPUT The ISO code of the language of the file in upper case, empty for the default language
ttTranslationResourceRecord TEMP-TABLE ttTranslationResourceRecord
OUTPUT TABLE with the records of the file
Returns LOGICAL
Logical value indicating if the file follows the resource format
Top

CHARACTER ReadLanguageIsoCode (JsonObject, character, character, TranslationResourceLog)

Purpose: Reads the language of a resource and compares it with the language
of the file name
Notes:

Parameters:
poJson Progress.Json.ObjectModel.JsonObject
The JSON object of the resource
pcBaseName CHARACTER
The name of the file without a path
pcExpected CHARACTER
The ISO code the file name stands for, empty for the default language
poLog Consultingwerk.SmartFramework.Tools.TranslationResources.TranslationResourceLog
The log that receives the findings
Returns CHARACTER
The ISO code of the language in upper case, empty for the default language
Top

ReadRecord (JsonArray, integer, character, TranslationResourceLog)

Purpose: Reads one record of a resource into the temp-table
Notes:

Parameters:
poRecords Progress.Json.ObjectModel.JsonArray
The JSON array with the records of the resource
piRecord INTEGER
The index of the record in the array
pcBaseName CHARACTER
The name of the file without a path
poLog Consultingwerk.SmartFramework.Tools.TranslationResources.TranslationResourceLog
The log that receives the findings
Top

CHARACTER ReadString (JsonObject, character, character, TranslationResourceLog)

Purpose: Reads a string property of a record
Notes: Reports a property that is missing, is no string or holds characters
the code page of the session cannot hold

Parameters:
poRecord Progress.Json.ObjectModel.JsonObject
The JSON object of the record
pcName CHARACTER
The name of the property
pcLocation CHARACTER
The file and the position of the record
poLog Consultingwerk.SmartFramework.Tools.TranslationResources.TranslationResourceLog
The log that receives the findings
Returns CHARACTER
The value of the property
Top

ReportUnknownProperties (JsonObject, character, character, TranslationResourceLog)

Purpose: Reports the properties of a JSON object that are not part of the
resource format
Notes:

Parameters:
poJson Progress.Json.ObjectModel.JsonObject
The JSON object
pcKnownProperties CHARACTER
The comma-delimited list of the properties of the format
pcLocation CHARACTER
The file and the position of the object
poLog Consultingwerk.SmartFramework.Tools.TranslationResources.TranslationResourceLog
The log that receives the findings


Temp-Table Detail

Temp-Table ttTranslationResourceRecord

Defined in:


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