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.
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.
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.
std::wstring GetTranslatorsUri() const;
function GetTranslatorsUri: WideString;
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.
std::wstring GetRegisterShowUri() const;
function GetRegisterShowUri: WideString;
Returns the language of the demanded translation.
std::wstring GetLanguage() const;
function GetLanguage: WideString;