locale_translation_get_file_history()
Gets current translation status from the {locale_file} table.
Return value
array Array of translation file objects.
File
- core/modules/locale/locale.module, line 816
- Enables the translation of the user interface to languages other than English.
Code
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 = $file->timestamp ? LOCALE_TRANSLATION_CURRENT : ''; $history[$file->project][$file->langcode] = $file; } } return $history; }
Please login to continue.