You are here

function locale_translate_export_pot_form in Drupal 6

Same name and namespace in other branches
  1. 7 modules/locale/locale.admin.inc \locale_translate_export_pot_form()

Translation template export form.

Related topics

1 string reference to 'locale_translate_export_pot_form'
locale_translate_export_screen in includes/locale.inc
User interface for the translation export screen.

File

includes/locale.inc, line 745
Administration functions for locale.module.

Code

function locale_translate_export_pot_form() {

  // Complete template export of the strings
  $form['export'] = array(
    '#type' => 'fieldset',
    '#title' => t('Export template'),
    '#collapsible' => TRUE,
    '#description' => t('Generate a Gettext Portable Object Template (<em>.pot</em>) file with all strings from the Drupal locale database.'),
  );
  $form['export']['group'] = array(
    '#type' => 'radios',
    '#title' => t('Text group'),
    '#default_value' => 'default',
    '#options' => module_invoke_all('locale', 'groups'),
  );
  $form['export']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Export'),
  );

  // Reuse PO export submission callback.
  $form['#submit'][] = 'locale_translate_export_po_form_submit';
  $form['#validate'][] = 'locale_translate_export_po_form_validate';
  return $form;
}