Get an array of available interface translation file.
$langcode: The langcode for the interface translation files. Pass NULL to get all available interface translation files.
array An array of interface translation files.
function locale_translate_get_interface_translation_files($langcode = NULL) {
$directory = variable_get('locale_translate_file_directory', conf_path() . '/files/translations');
$return = file_scan_directory($directory, '!' . (!empty($langcode) ? '\\.' . preg_quote($langcode, '!') : '') . '\\.po$!', array(
'recurse' => FALSE,
));
foreach ($return as $filepath => $file) {
$file->uri = 'translations://' . $file->filename;
$return[$file->uri] = $file;
unset($return[$filepath]);
}
return $return;
}