Update the {locale_file} table.
$file: Object representing the file just imported.
integer FALSE on failure. Otherwise SAVED_NEW or SAVED_UPDATED.
function locale_translate_update_file_history($file) {
// Update or write new record.
if (db_query("SELECT uri FROM {locale_file} WHERE uri = :uri AND langcode = :langcode", array(
':uri' => $file->uri,
':langcode' => $file->langcode,
))
->fetchField()) {
$update = array(
'uri',
'langcode',
);
}
else {
$update = array();
}
return drupal_write_record('locale_file', $file, $update);
}