Lines Matching refs:text
92 * Get user notes from the appropriate text dump
134 $text = clean_note($note->text);
198 <div class="text" id="Hcom{$note->id}">
199 {$text}
348 foreach (Languages::ACTIVE_ONLINE_LANGUAGES as $lang => $text) {
354 $out[] = "<option value='$lang/$currentpage'$selected>$text</option>";
475 function autogen(string $text, string $lang) {
481 if (isset($translations[$lang][$text]) && $translations[$lang][$text] !== "") {
482 return $translations[$lang][$text];
485 // fall back to English if text is not defined for the given language
486 return autogen($text, "en");
488 // we didn't find the English text either
489 throw new \InvalidArgumentException("Cannot autogenerate text for '$text'");
497 return autogen($text, "en");
505 return autogen($text, $lang);