$value) { $lang .= 'msgid' . ($key == 0 ? '' : '_plural') . ' ' . get_msgid($value) . "\n"; $msgstr .= "msgstr[{$key}] \"\"\n"; } $lang .= $msgstr . "\n"; output_lang($lang); $plural = []; } } } else if ($token != ',' && $token != '(') { $matched = null; $plural = []; } } } require_once __DIR__ . '/../var/Typecho/Common.php'; $version = Typecho_Common::VERSION; $date = date('Y-m-d H:iO'); $year = date('Y'); echo <<, {$year}. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: {$version}\\n" "Report-Msgid-Bugs-To: \\n" "POT-Creation-Date: {$date}\\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\\n" "Last-Translator: FULL NAME \\n" "Language-Team: Typecho Dev \\n" "Language: \\n" "MIME-Version: 1.0\\n" "Content-Type: text/plain; charset=UTF-8\\n" "Content-Transfer-Encoding: 8bit\\n" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\\n"\n\n EOF; foreach (all_files(__DIR__ . '/../', "*.php") as $file) { get_pot($file); }