} print "{$lang} "; $languages[] = $lang; } closedir($handle); } print "<br />"; $files = array(); $wordlist = array(); ## When collecting files we need to add a file since the directory which it ## is placed in is excluded. We should keep hardwiring to a minimum. ## In a normal case a file that should be translated shuold not exist in ## a (sub)directory that is excluded. In this (unfortunate) case it seems that ## the file is placed in a logical location. collect_files(BIT_ROOT_PATH); hardwire_file(LANGUAGES_PKG_PATH . 'lang_mapping_inc.php'); $oldEndMarker = '##end###'; $endMarker = '###end###'; foreach ($languages as $sel) { unset($lang); unset($to_translate); unset($translated); unset($modulename); unset($unused); unset($dictionary); $to_translate = array(); $modulename = array(); $translated = array(); if ($patch) { $origPatch = "lang/{$sel}/language.patch"; if (!file_exists($origPatch)) {
$wordlist = array(); ## When collecting files we need to add a file since the directory which it ## is placed in is excluded. We should keep hardwiring to a minimum. ## In a normal case a file that should be translated should not exist in ## a (sub)directory that is excluded. In this (unfortunate) case it seems that ## the files are placed in a logical location. collect_files('.'); hardwire_file('./lang/langmapping.php'); hardwire_file('./img/flags/flagnames.php'); ## Adding a file in ./temp which contains all the perms descriptions ## This file is called permstrings.tpl. The extension has to be .tpl in order to be ## taken in charge by the scipt (tpl or php) ## This file is, of course, temporary and will be deleted during the next cache clear ! $permsfile = "./temp/permstrings.tpl"; $permsstrgs = collect_perms_desc($permsfile); hardwire_file($permsfile); // Sort files to make generated strings appear in language.php in the same // order across different systems if ((!isset($_REQUEST["sort"]) || $_REQUEST["sort"] != 'n') && !$completion) { echo "Sorting files..."; flush(); sort($files); echo count($files), " items done.<br />\nTiki directory parsed in: ", $tiki_timer->stop("files"), " seconds<br />\n<br />\n"; flush(); } $tiki_timer->start("processing"); if ($completion) { echo "<table border='1'>"; echo "<tr>"; echo "<td><b>Language</b></td>"; echo "<td><b>Completion</b></td>";
$languages[] = $lang; } } closedir($handle); } print "<br />"; $files = array(); $wordlist = array(); ## When collecting files we need to add a file since the directory which it ## is placed in is excluded. We should keep hardwiring to a minimum. ## In a normal case a file that should be translated should not exist in ## a (sub)directory that is excluded. In this (unfortunate) case it seems that ## the files are placed in a logical location. collect_files('.'); hardwire_file('./lang/langmapping.php'); hardwire_file('./img/flags/flagnames.php'); // Sort files to make generated strings appear in language.php in the same // order across different systems if (!isset($_REQUEST["sort"]) || $_REQUEST["sort"] != 'n') { echo "Sorting files..."; flush(); sort($files); echo count($files), " items done.<br />\nTiki directory parsed in: ", $tiki_timer->stop("files"), " seconds<br />\n<br />\n"; flush(); } $tiki_timer->start("processing"); $oldEndMarker = '##end###'; $endMarker = '###end###'; foreach ($languages as $sel) { unset($lang); unset($to_translate);