You are here

public function LingotekInterfaceTranslationService::getSourceStatus in Lingotek Translation 4.0.x

Same name and namespace in other branches
  1. 3.2.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getSourceStatus()
  2. 3.3.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getSourceStatus()
  3. 3.4.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getSourceStatus()
  4. 3.5.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getSourceStatus()
  5. 3.6.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getSourceStatus()
  6. 3.7.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getSourceStatus()
  7. 3.8.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getSourceStatus()

Gets the source status of the given component.

Parameters

string $component: The component which status we want to check.

Return value

int The status of the target translation (see Lingotek class constants)

Overrides LingotekInterfaceTranslationServiceInterface::getSourceStatus

7 calls to LingotekInterfaceTranslationService::getSourceStatus()
LingotekInterfaceTranslationService::addTarget in src/LingotekInterfaceTranslationService.php
Request a translation for a given component in the given locale.
LingotekInterfaceTranslationService::checkTargetStatus in src/LingotekInterfaceTranslationService.php
Gets the current status of the target translation.
LingotekInterfaceTranslationService::checkTargetStatuses in src/LingotekInterfaceTranslationService.php
Gets the current status of all the target translations.
LingotekInterfaceTranslationService::clearTargetStatuses in src/LingotekInterfaceTranslationService.php
Clear the target statuses.
LingotekInterfaceTranslationService::downloadDocument in src/LingotekInterfaceTranslationService.php
Downloads a document from the Lingotek service for a given locale.

... See full list

File

src/LingotekInterfaceTranslationService.php, line 189

Class

LingotekInterfaceTranslationService
Service for managing Lingotek interface translations.

Namespace

Drupal\lingotek

Code

public function getSourceStatus($component) {
  $source_language = 'en';
  return $this
    ->getTargetStatus($component, $source_language);
}