Lines Matching refs:lang
435 "lang" => $LANG,
467 $lang = (new Languages())->convert($config["lang"]);
544 function doc_toc($lang): void {
545 $file = __DIR__ . "/../manual/$lang/toc/index.inc";
547 $lang = "en"; // Fallback on english if the translation doesn't exist
550 require __DIR__ . "/../manual/$lang/toc/index.inc";
553 doc_toc_list($lang, $TOC, "getting-started");
554 doc_toc_list($lang, $TOC, "langref");
558 doc_toc_list($lang, $TOC, "security");
559 doc_toc_list($lang, $TOC, "features");
563 doc_toc_list($lang, $TOC, "funcref");
591 function doc_toc_list($lang, $index, $file): void {
592 include __DIR__ . "/../manual/$lang/toc/$file.inc";
594 doc_toc_title($lang, $index, $file);
596 echo "\t<dd><a href='/manual/$lang/{$entry[0]}'>{$entry[1]}</a></dd>\n";
599 function doc_toc_title($lang, $index, $file, $elm = "dt"): void {
607 echo "<$elm><a href='/manual/$lang/$link'>$title</a></$elm>\n";