TranslationHelper::setMaxTranslations()
\nn\t3::TranslationHelper()->setMaxTranslations($maxTranslations);
Sets the maximum number of translations to be made per instance. Helps with debugging (so that the Deep-L quota is not exhausted by testing) and with TimeOuts if many texts need to be translated.
$translationHelper->setMaxTranslations( 5 ); // Abort after 5 translations
Copied!
@param $maxTranslations
@return self
Source Code
public function setMaxTranslations($maxTranslations) {
$this->maxTranslations = $maxTranslations;
return $this;
}
Copied!