1 install.core.inc install_find_translations()

Find all .po files useful for the installer.

File

core/includes/install.core.inc, line 1289
API functions for installing Backdrop.

Code

function install_find_translations() {
  $files = install_find_translation_files();
  // English does not need a translation file.
  array_unshift($files, (object) array('name' => 'en'));
  foreach ($files as $key => $file) {
    // Strip off the file name component before the language code.
    $files[$key]->langcode = preg_replace('!^(.+\.)?([^\.]+)$!', '\2', $file->name);
  }
  return $files;
}