TTranslationsEvent_DemandedTranslation

This event denotes that the system language is equal to one of the demanded translation's languages; that is, the languages into which the developers of the program would like to receive a translation in the first place. This means that we could offer the user to participate in translating the program.

To do this, pass this class' instance to TTranslationsSiteInteraction::ShowTheDemandedTranslationOfferIfNeeded.

Constructor

Format:

TTranslationsEvent_DemandedTranslation (
  const TDemandedTranslation &DemandedTranslation);
					
constructor Create(const DemandedTranslation: TDemandedTranslation); overload;
					

Usually, there is no need to create this class manually in the client code.

GetTranslatorsUri

Returns the URI to lead the potential translators to. You may need this function if you are handling the offer show manually instead of using TTranslationsSiteInteraction::ShowTheDemandedTranslationOfferIfNeeded.

Format:

std::wstring GetTranslatorsUri() const;
				
function GetTranslatorsUri: WideString;
				

GetRegisterShowUri

Returns the URI, which should be requested to register the show of the demanded translation offer on the site. This will increase the on-site counter, so that you will be able to view how often the offer to translate the program into the specific demanded language has been shown.

You may need this function if you are registering the offer show manually instead of using TTranslationsSiteInteraction::ShowTheDemandedTranslationOfferIfNeeded.

In case of manually registering the offer, to perform the registration, just pass this URI to TMiscFunctions::RegisterTheDemandedTranslationShow.

Format:

std::wstring GetRegisterShowUri() const;
				
function GetRegisterShowUri: WideString;
				

GetLanguage

Returns the language of the demanded translation.

Format:

std::wstring GetLanguage() const;
				
function GetLanguage: WideString;