function 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

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'])));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.