You are here

function _translation_table_get_header in Translation table 7

Same name and namespace in other branches
  1. 6 includes/admin.inc \_translation_table_get_header()

Header of the translation table.

Parameters

$languages: languages to translate to

Return value

header row for theme_table

5 calls to _translation_table_get_header()
field_translation_table_filtered_form in modules/field.translation_table.inc
Form for field translation.
menu_translation_table_menu_filtered_form in modules/menu.translation_table.inc
Form for menu translation. Note: If the menu string is not in the locales_source table, then it won't be displayed.
node_translation_table_nodetype_filtered_form in modules/node.translation_table.inc
Form for node type translation. Note: If the node type is not in the locales_source table, then it won't be displayed.
quicktabs_translation_table_quicktabs_filtered_form in modules/quicktabs.translation_table.inc
Form for quicktabs translation.
taxonomy_translation_table_taxonomy_filtered_form in modules/taxonomy.translation_table.inc
Form for taxonomy translation. Note: If term and vocabulary strings are not in the locales_source table, then they won't be displayed.

File

includes/admin.inc, line 17
The administration interface.

Code

function _translation_table_get_header($languages) {

  // FIXME: this sortable header won't work, why?
  // $header = array(array('data' => t('Original'), 'sort' => 'asc', 'field' => 'source'));
  $header = array(
    array(
      'data' => t('Original'),
    ),
  );
  foreach ($languages as $lang_code => $lang_name) {
    $header[] = array(
      'data' => $lang_name,
    );
  }
  $header[] = array(
    'data' => t('Operations'),
    'colspan' => 3,
  );
  return $header;
}