/** * Outputs the core template. * * @param array $strings */ function writeTemplate($strings) { echo '<?php /** * YourLanguage language file * * @package Translations * * @author Your Name <*****@*****.**> * @version Wolf x.y.z */ return array( '; $strings = removeDoubles($strings); sort($strings); foreach ($strings as $string) { echo "\t'" . $string . "' => '',\n"; } echo " );\n\n\n\n\n\n"; }
/** * Outputs the plugin template. * * @param string $pluginname * @param array $strings */ function writeTemplate($pluginname, $strings) { echo '<?php /** * YourLanguage file for plugin ' . $pluginname . ' * * @package frog * @subpackage plugin.' . $pluginname . '.translations * * @author Your Name <*****@*****.**> * @version Frog x.y.z */ return array( '; $strings = removeDoubles($strings); sort($strings); foreach ($strings as $string) { echo "\t'" . $string . "' => '',\n"; } echo " );\n\n\n\n\n\n"; }