You are here

function locale_translate_export_po_form_submit in Drupal 7

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

Process a translation (or template) export form submission.

Related topics

1 string reference to 'locale_translate_export_po_form_submit'
locale_translate_export_pot_form in modules/locale/locale.admin.inc
Translation template export form.

File

modules/locale/locale.admin.inc, line 1083
Administration functions for locale.module.

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, $form_state['values']['group'])));
}