public FileTranslation::findTranslationFiles($langcode = NULL)
Finds installer translations either for a specific or all languages.
Filenames must match the pattern:
string $langcode: (optional) The language code corresponding to the language for which we want to find translation files. If omitted, information on all available files will be returned.
array An associative array of file information objects keyed by file URIs as returned by file_scan_directory().
public function findTranslationFiles($langcode = NULL) { $files = file_scan_directory($this->directory, $this->getTranslationFilesPattern($langcode), array('recurse' => FALSE)); return $files; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!StringTranslation!Translator!FileTranslation.php/function/FileTranslation::findTranslationFiles/8.1.x