Lines Matching defs:target
156 $target = trim($match[2]);
157 if ($src == '' or $target == '') {
161 $entries .= $src . "\t" . $target . "\n";
413 private function get_glossary_id($src, $target): string {
416 $key = $src . "_" . $target;
428 private function set_glossary_id($src, $target, $glossary_id): void {
436 $key = $src . "_" . $target;
444 private function unset_glossary_id($src, $target): void {
452 $key = $src . "_" . $target;
476 private function check_glossary_supported($src, $target): bool {
477 if(strlen($src) != 2 or strlen($target) != 2) return false;
480 if ($src == $glossary['source_lang'] and $target == $glossary['target_lang']) return true;
557 private function create_glossary($src, $target, $entries): string {
570 'name' => 'DokuWiki-Autotranslate-' . $src . '_' . $target,
572 'target_lang' => $target,
665 $target = substr($target_lang, 0, 2);
666 $glossary_id = $this->get_glossary_id($src, $target);
777 // if the link already points to a target in a language namespace drop it and add the new language namespace
787 // Page in target lang does not exist --> replace with absolute ID in case it was a relative ID
790 // Page in target lang exists --> replace link
830 // if the link already points to a target in a language namespace drop it and add the new language namespace
842 // media in target lang does not exist --> replace with absolute ID in case it was a relative ID
845 // media in target lang exists --> replace it