API Reference

Detailed and full API reference helps you master Tekla development

This is the most recent version of Tekla Open API.
For older versions, please visit Tekla Warehouse.

Localization Class

The Localization class is for translating strings in .NET dialogs.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    Tekla.Structures.DialogLocalization

Namespace:  Tekla.Structures.Dialog
Assembly:  Tekla.Structures.Dialog (in Tekla.Structures.Dialog.dll) Version: 2019.0.0.0 (2019.0.0.0)
Syntax
public class Localization : MarshalByRefObject

The Localization type exposes the following members.

Constructors
  Name Description
Public method Localization
Creates a new localization instance.
Public method Localization(String, String)
Creates a new localization instance.
Top
Properties
  Name Description
Public propertyStatic member DefaultLocalizationFile
The path and name of the default localization file.
Public propertyStatic member DefaultLocalizationPath
The path and directory name where to find localization files.
Public property Language
Gets or sets the language that is currently used in Tekla Structures.
Top
Methods
  Name Description
Public method GetText
Gets the translation for the current language. The translations are searched with the given identifier string.
Public method LoadAidFile
Loads the localization strings from an aid file. Several files may be used concurrently, just call LoadAidFile for each file. The translations are searched in the loading order and the first match is returned.
Public method LoadAilFile
Loads the localization strings from an ail file. Several files may be used concurrently, just call LoadAilFile for each file. The translations are searched in the loading order and the first match is returned.
Public method LoadFile
Loads the localization strings from a file. Several files may be used concurrently, just call LoadFile for each file. The translations are searched in the loading order and the first match is returned. The method uses the extension of the filename to identify the file type (".xml", ".aid" or ".ail").
Public method LoadXMLFile
Loads the localization strings from an xml file. Several files may be used concurrently, just call LoadXMLFile for each file. The translations are searched in the loading order and the first match is returned.
Public method Localize(ApplicationSettingsBase)
Localizes application settings.
Public method Localize(Control)
Localizes a control recursively.
Public method Localize(MenuItem)
Localizes a MenuItem control recursively.
Public method LocalizeToolTip
Localizes a ToolTip control.
Public method RegisterLocalizationCallback
Registers a localization callback which is used to translate the registered control types.
Top
See Also