You are here

public function LingotekInterfaceTranslationService::setSourceStatus in Lingotek Translation 3.6.x

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

Sets the translation status of a given component.

Parameters

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

int $status: Status of the translation. Use Lingotek class constants.

Return value

string

Overrides LingotekInterfaceTranslationServiceInterface::setSourceStatus

8 calls to LingotekInterfaceTranslationService::setSourceStatus()
LingotekInterfaceTranslationService::addTarget in src/LingotekInterfaceTranslationService.php
Request a translation for a given component in the given locale.
LingotekInterfaceTranslationService::cancelDocument in src/LingotekInterfaceTranslationService.php
Cancels a document from the server.
LingotekInterfaceTranslationService::checkSourceStatus in src/LingotekInterfaceTranslationService.php
Checks the source is uploaded correctly.
LingotekInterfaceTranslationService::downloadDocument in src/LingotekInterfaceTranslationService.php
Downloads a document from the Lingotek service for a given locale.
LingotekInterfaceTranslationService::downloadDocuments in src/LingotekInterfaceTranslationService.php
Downloads a document from the Lingotek service for all available locales.

... See full list

File

src/LingotekInterfaceTranslationService.php, line 163

Class

LingotekInterfaceTranslationService
Service for managing Lingotek interface translations.

Namespace

Drupal\lingotek

Code

public function setSourceStatus($component, $status) {
  $source_language = 'en';
  return $this
    ->setTargetStatus($component, $source_language, $status);
}