function locale_translate_export_po_form_submit in Drupal 6
Same name and namespace in other branches
- 7 modules/locale/locale.admin.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 includes/
locale.inc - Translation template export form.
File
- includes/
locale.inc, line 767 - 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'])));
}