defaultlang; /** @var Doku_Renderer_xhtml $xhtml_renderer */ $xhtml_renderer = p_get_renderer('xhtml'); echo "

" . $this->getLang("menu") . "

"; echo ""; echo ""; if ($this->getConf('show_path')) { echo ""; } foreach ($helper->translations as $t) { if($t === $default_language) { continue; } echo ""; } echo ""; $pages = $this->getAllPages(); foreach ($pages as $page) { if (!$helper->getLangPart($page["id"]) === $default_language || !$helper->istranslatable($page["id"], false) || !page_exists($page["id"]) ) { continue; } // We have an existing and translatable page in the default language $showRow = false; $row = ""; if ($this->getConf('show_path')) { $row .= ""; } list($lc, $idpart) = $helper->getTransParts($page["id"]); foreach ($helper->translations as $t) { if ($t === $default_language) { continue; } list($translID, $name) = $helper->buildTransID($t, $idpart); $difflink = ''; if(!page_exists($translID)) { $class = "missing"; $title = $this->getLang("missing"); $showRow = true; } else { $translfn = wikiFN($translID); if($page['mtime'] > filemtime($translfn)) { $class = "outdated"; $difflink = " getLang('old'); $showRow = true; } else { $class = "current"; $title = $this->getLang('current'); } } $row .= ""; } $row .= ""; if ($showRow) { echo $row; } } echo "
default: $default_language" . $this->getLang('path') . "$t
" . $xhtml_renderer->internallink($page['id'],null,null,true) . "" . $xhtml_renderer->internallink($page['id'],$page['id'],null,true) . "" . $xhtml_renderer->internallink($translID,$title,null,true) . $difflink . "
"; } function getAllPages() { $namespace = $this->getConf("translationns"); $dir = dirname(wikiFN("$namespace:foo")); $pages = array(); search($pages, $dir, 'search_allpages',array()); return $pages; } }