芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/mctv/vendor/gettext/gettext/src/Generators/Csv.php
false, 'delimiter' => ",", 'enclosure' => '"', 'escape_char' => "\\" ]; /** * {@parentDoc}. */ public static function toString(Translations $translations, array $options = []) { $options += static::$options; $handle = fopen('php://memory', 'w'); if ($options['includeHeaders']) { static::fputcsv($handle, ['', '', static::generateHeaders($translations)], $options); } foreach ($translations as $translation) { if ($translation->isDisabled()) { continue; } $line = [$translation->getContext(), $translation->getOriginal(), $translation->getTranslation()]; if ($translation->hasPluralTranslations(true)) { $line = array_merge($line, $translation->getPluralTranslations()); } static::fputcsv($handle, $line, $options); } rewind($handle); $csv = stream_get_contents($handle); fclose($handle); return $csv; } }