You are here

public function TMGMTTranslator::canTranslate in Translation Management Tool 7

Check whether this translator can handle a particular translation job.

Parameters

$job: The TMGMTJob entity that should be translated.

Return value

boolean TRUE if the job can be processed and translated, FALSE otherwise.

File

entity/tmgmt.entity.translator.inc, line 183

Class

TMGMTTranslator
Entity class for the tmgmt_translator entity.

Code

public function canTranslate(TMGMTJob $job) {
  if ($controller = $this
    ->getController()) {
    return $controller
      ->canTranslate($this, $job);
  }
  return FALSE;
}