/** * Export L10nResources in the given filename * @param string $filePath name of the export file */ public function exportAllL10nResourceList($filePath = '') { $l10nResourceList = $this->l10nManager->getAllL10nResourceList(); $output = $this->l10nConverter->convertL10nResourceList($l10nResourceList); $f = fopen($filePath, 'w+'); fwrite($f, $output); }