TLocalTranslation

Represents the information about the translation available on the local system and which can be used in the program to display the interface in some language.

Constructor

Format:

explicit TLocalTranslation (const TLanguage &Language,
  const std::wstring &FileName,
  TUnofficialTranslationInfo const &UnofficialTranslationInfo);
					
function MakeLocalTranslation(Language: TLanguage;
  const FileName: WideString;
  UnofficialTranslationInfo: TUnofficialTranslationInfo
  ) : TLocalTranslation; overload;
					

Parameters:

IsBuiltIn

Returns true if the translation is built-in to your application; i.e., does not have the associated file in the translations folder.

Format:

bool IsBuiltIn () const;
				
function IsBuiltIn(const LocalTranslation: TLocalTranslation): Boolean;
				

GetLanguage (C++) / Language (Delphi)

Returns the language of the translation.

Format:

TLanguage GetLanguage() const;
				
Language: TLanguage;
				

Return value: Item of the type TLanguage.

Parameters: None.

GetFileName (C++) / FileName (Delphi)

Returns the file name in which the translation is stored (only for non-built-in translations).

Format:

std::wstring GetFileName() const;
				
FileName: WideString;
				

GetUnofficialTranslationInfo (C++) / UnofficialTranslationInfo (Delphi)

If the translation is unofficial, returns the information about it.

Format:

TUnofficialTranslationInfo GetUnofficialTranslationInfo() const;
				
UnofficialTranslationInfo: TUnofficialTranslationInfo;
				

Return value: Items set of the type TUnofficialTranslationInfo.

Parameters: None.

IsOfficial

Is this an official translation?

Format:

bool IsOfficial() const;
				
function IsOfficial(const LocalTranslation: TLocalTranslation): Boolean;