1 locale.bulk.inc locale_translate_export_po_form($form, &$form_state, $names)

Form to export PO files for the languages provided.

Parameters

$names: An associate array with localized language names

File

core/modules/locale/locale.bulk.inc, line 139
Mass import-export and batch import functionality for Gettext .po files.

Code

function locale_translate_export_po_form($form, &$form_state, $names) {
  $form['export_title'] = array('#type' => 'item',
    '#title' => t('Export translation'),
  );
  $form['langcode'] = array('#type' => 'select',
    '#title' => t('Language name'),
    '#options' => $names,
    '#description' => t('Select the language to export in Gettext Portable Object (<em>.po</em>) format.'),
  );
  $form['actions'] = array('#type' => 'actions');
  $form['actions']['submit'] = array('#type' => 'submit', '#value' => t('Export'));
  return $form;
}