function locale_translate_export_screen in Drupal 7
Same name and namespace in other branches
- 6 includes/locale.inc \locale_translate_export_screen()
User interface for the translation export screen.
Related topics
1 string reference to 'locale_translate_export_screen'
- locale_menu in modules/
locale/ locale.module - Implements hook_menu().
File
- modules/
locale/ locale.admin.inc, line 1018 - Administration functions for locale.module.
Code
function locale_translate_export_screen() {
// Get all languages, except English
drupal_static_reset('language_list');
$names = locale_language_list('name');
unset($names['en']);
$output = '';
// Offer translation export if any language is set up.
if (count($names)) {
$elements = drupal_get_form('locale_translate_export_po_form', $names);
$output = drupal_render($elements);
}
$elements = drupal_get_form('locale_translate_export_pot_form');
$output .= drupal_render($elements);
return $output;
}