Gets current translation status from the {locale_file} table.
array Array of translation file objects.
function locale_translation_get_file_history() {
$history =& drupal_static(__FUNCTION__, array());
if (empty($history)) {
// Get file history from the database.
$result = db_query('SELECT project, langcode, filename, version, uri, timestamp, last_checked FROM {locale_file}');
foreach ($result as $file) {
$file->type = LOCALE_TRANSLATION_CURRENT;
$history[$file->project][$file->langcode] = $file;
}
}
return $history;
}