public function LingotekInterfaceTranslationService::getSourceStatus in Lingotek Translation 3.8.x
Same name and namespace in other branches
- 4.0.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getSourceStatus()
- 3.2.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getSourceStatus()
- 3.3.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getSourceStatus()
- 3.4.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getSourceStatus()
- 3.5.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getSourceStatus()
- 3.6.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getSourceStatus()
- 3.7.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.
File
- src/
LingotekInterfaceTranslationService.php, line 189
Class
- LingotekInterfaceTranslationService
- Service for managing Lingotek interface translations.
Namespace
Drupal\lingotekCode
public function getSourceStatus($component) {
$source_language = 'en';
return $this
->getTargetStatus($component, $source_language);
}