You are here

public static function LingotekConfigChunk::getTextgroupsForTranslation in Lingotek Translation 7.4

Same name and namespace in other branches
  1. 7.3 lib/Drupal/lingotek/LingotekConfigChunk.php \LingotekConfigChunk::getTextgroupsForTranslation()
  2. 7.5 lib/Drupal/lingotek/LingotekConfigChunk.php \LingotekConfigChunk::getTextgroupsForTranslation()

Return all textgroups from locales_source for which translation is desired

2 calls to LingotekConfigChunk::getTextgroupsForTranslation()
LingotekConfigChunk::getAllSegments in lib/Drupal/lingotek/LingotekConfigChunk.php
Return all segments from the database that belong to a given chunk ID
LingotekConfigChunk::getSegmentIdsById in lib/Drupal/lingotek/LingotekConfigChunk.php
Return the segments by lid (from locales source) for a given chunk ID

File

lib/Drupal/lingotek/LingotekConfigChunk.php, line 893
Defines LingotekConfigChunk.

Class

LingotekConfigChunk
A class wrapper for Lingotek-specific behavior on ConfigChunks.

Code

public static function getTextgroupsForTranslation() {
  $textgroups = array();
  if (variable_get('lingotek_translate_config_builtins', 0)) {
    $textgroups[] = 'default';
  }
  if (variable_get('lingotek_translate_config_menus', 0)) {
    $textgroups[] = 'menu';
  }
  if (variable_get('lingotek_translate_config_taxonomies', 0)) {
    $textgroups[] = 'taxonomy';
  }
  if (variable_get('lingotek_translate_config_blocks', 0)) {
    $textgroups[] = 'blocks';
  }
  if (variable_get('lingotek_translate_config_views', 0)) {
    $textgroups[] = 'views';
  }
  return $textgroups;
}