You are here

public static function LingotekConfigChunk::getTextgroupsForTranslation in Lingotek Translation 7.5

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

Return all textgroups from locales_source for which translation is desired

3 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
LingotekSync::getDirtyChunkLids in lib/Drupal/lingotek/LingotekSync.php

File

lib/Drupal/lingotek/LingotekConfigChunk.php, line 925
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';
  }
  if (variable_get('lingotek_translate_config_fields', 0)) {
    $textgroups[] = 'field';
  }
  if (variable_get('lingotek_translate_config_misc', 0)) {
    $textgroups[] = 'misc';
  }
  return $textgroups;
}