You are here

public function TMGMTJob::requestTranslation in Translation Management Tool 7

Request the translation of a job from the translator.

Return value

integer The updated job status.

File

entity/tmgmt.entity.job.inc, line 630

Class

TMGMTJob
Entity class for the tmgmt_job entity.

Code

public function requestTranslation() {
  if (!$this
    ->isTranslatable() || !($controller = $this
    ->getTranslatorController())) {
    return FALSE;
  }

  // We don't know if the translator plugin already processed our
  // translation request after this point. That means that the plugin has to
  // set the 'submitted', 'needs review', etc. states on its own.
  $controller
    ->requestTranslation($this);
}