Top Method Summary
Options Name Purpose
CHARACTER GetTranslationScope (handle) Returns the translation scope of a repository object instance
LOGICAL HasTranslatableTexts (JsonObject) Returns if a button definition contains texts that are translated
Progress.Json.ObjectModel.JsonObject TranslateButton (JsonObject, character) Returns the translated copy of a button definition
TranslateButtonTexts (JsonObject, character) Translates the texts of a button definition
TranslateProperty (JsonObject, character, character) Translates a character property of a JsonObject
CHARACTER TranslateText (character, character) Translates a text of a toolbar button, ribbon tab or ribbon group definition

Top Constructor Summary
Options Name Purpose
ToolbarButtonTranslationHelper () Disallow instance creation


Method Detail
Top

CHARACTER GetTranslationScope (handle)

Purpose: Returns the translation scope of a repository object instance
Notes: Returns an empty string when the object type has no TranslationScope
attribute or when the attribute is not set

Parameters:
phAttributesBuffer HANDLE
The handle of the buffer with the attribute values of the instance
Returns CHARACTER
The translation scope
Top

LOGICAL HasTranslatableTexts (JsonObject)

Purpose: Returns if a button definition contains texts that are translated
Notes:

Parameters:
poButton Progress.Json.ObjectModel.JsonObject
The JSON definition of the button
Returns LOGICAL
Logical value indicating if the definition contains translatable texts
Top

Progress.Json.ObjectModel.JsonObject TranslateButton (JsonObject, character)

Purpose: Returns the translated copy of a button definition
Notes: The button definitions are cached by the toolbar button providers and
shared by all requests. The definition passed in is never modified,
the translation is applied to a copy. The definition itself is returned,
when there is nothing to translate

Parameters:
poButton Progress.Json.ObjectModel.JsonObject
The JSON definition of the button
pcTranslationScope CHARACTER
The translation scope
Returns Progress.Json.ObjectModel.JsonObject
The JSON definition of the button with the translated texts
Top

TranslateButtonTexts (JsonObject, character)

Purpose: Translates the texts of a button definition
Notes: Modifies the JsonObject passed in. Use TranslateButton for definitions
that are shared (cached definitions of a toolbar button provider)

Parameters:
poButton Progress.Json.ObjectModel.JsonObject
The JSON definition of the button
pcTranslationScope CHARACTER
The translation scope
Top

TranslateProperty (JsonObject, character, character)

Purpose: Translates a character property of a JsonObject
Notes: Does nothing when the property does not exist or is no string

Parameters:
poJson Progress.Json.ObjectModel.JsonObject
The JsonObject with the property
pcPropertyName CHARACTER
The name of the property to translate
pcTranslationScope CHARACTER
The translation scope
Top

CHARACTER TranslateText (character, character)

Purpose: Translates a text of a toolbar button, ribbon tab or ribbon group
definition
Notes: Returns the text unchanged when no ITranslationProvider is registered
or when there is no translation for the text

Parameters:
pcTranslationScope CHARACTER
The translation scope
pcText CHARACTER
The text to translate
Returns CHARACTER
The translated text


Constructor Detail
Top

ToolbarButtonTranslationHelper ()

Purpose: Disallow instance creation
Notes:



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