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

Process a translation (or template) export form submission.

File

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

Code

function locale_translate_export_po_form_submit($form, &$form_state) {
  // If template is required, language code is not given.
  $language = NULL;
  if (isset($form_state['values']['langcode'])) {
    $languages = language_list();
    $language = $languages[$form_state['values']['langcode']];
  }
  _locale_export_po($language, _locale_export_po_generate($language, _locale_export_get_strings($language)));
}