Lines Matching refs:lang
6 // Try to find some variations of keyword with $prefix in the $lang manual
7 function tryprefix($lang, $keyword, $prefix)
16 $try = "/manual/{$lang}/{$prefix}{$keyword}.php";
22 $try = "/manual/{$lang}/{$prefix}{$nosp}.php";
29 $try = "/manual/{$lang}/{$prefix}{$dasp}.php";
36 $try = "/manual/{$lang}/{$prefix}{$noul}.php";
44 $try = "/manual/{$lang}/{$prefix}{$noul}.php";
55 $try = "/manual/{$lang}/{$prefix}{$keyword}.php";
67 function find_manual_page_slow($lang, $keyword)
77 $found = tryprefix($lang, $keyword, $section);
83 if ($lang != "en") {
93 return find_manual_page($lang, $kw);
102 function find_manual_page($lang, $keyword)
115 return find_manual_page_slow($lang, $keyword);
121 return find_manual_page_slow($lang, $keyword);
127 $langs = ($lang != 'en') ? [$lang, 'en'] : ['en'];
145 foreach ($langs as $lang) {
151 lang = en
162 … $SQL = "SELECT name from fs WHERE lang = ? AND (name = ? OR keyword = ?) ORDER BY prio LIMIT 1";
171 return find_manual_page_slow($lang, $keyword);
173 $stm->execute([$lang, "/manual/{$lang}/{$_keyword}", $keyword]);
183 $SQL = "SELECT name, prio FROM fs WHERE lang = :lang
188 …$stm->execute([$lang, $keyword, str_replace('\\', '-', $keyword), str_replace(' ', '', $keyword), …