1.20.x locale.pages.inc | locale_translation_filters() |
List locale translation filters that can be applied.
File
- modules/
locale/ locale.pages.inc, line 166 - Interface translation summary, editing and deletion user interfaces.
Code
function locale_translation_filters() {
$filters = array();
// Get all languages, except English
backdrop_static_reset('language_list');
$language_options = language_list(TRUE, TRUE);
if (!locale_translate_english() && isset($language_options['en'])) {
unset($language_options['en']);
}
$filters['string'] = array(
'title' => t('String contains'),
'description' => t('Leave blank to show all strings. The search is case sensitive.'),
);
$filters['language'] = array(
'title' => t('Language'),
'options' => array_merge(array('all' => t('All languages'), LANGUAGE_SYSTEM => t('System (English)')), $language_options),
);
$filters['translation'] = array(
'title' => t('Search in'),
'options' => array('all' => t('Both translated and untranslated strings'), 'translated' => t('Only translated strings'), 'untranslated' => t('Only untranslated strings')),
);
return $filters;
}