Lines Matching full:language

24                 'desc'   => 'Returns a language code or null if failed to detect',
25 'return' => array('language' => 'string'),
29 … 'desc' => 'Checks if a language exists by checking the translations of dokuwiki itself',
30 'param' => array('language' => 'string'),
35 …turns the ID of a page (default the current page) translated in another language, or null if not e…
36 'param' => array('language' => 'string', 'id (optional)' => 'sting'),
43 … 'param' => array('title' => 'string', 'language' => 'sting', 'from_language' => 'string'),
48 'desc' => 'Returns the name of a language in the native language and English',
63 // Detect the language of the page
64 if (isset($meta['language'])) {
65 $lang = $meta['language'];
68 // If the first level of namespace is a language code, use that
73 // Use the UI language
78 // Use default language
86 /** checks if a language exists, i.e. is enabled. */
104 // the local language has this convention
157 // Finally check if the language can be detected
193 * Returns the ID of the current page translated in another language, or null if not existing.
195 public function translationLookup($language, $id=null) { argument
200 if ($language == $orig_lang) return $id;
204 if ($tlang == $language && page_exists($tid)) return $tid;
210 public function translationLink($language,$text='') { argument
211 $langname = $this->getLanguageName($language);
213 $text = $this->getConf('link_style') == 'langname' ? $langname : $language;
217 $id = $this->translationLookup($language);
224 $url = wl($original_id, array('do'=>'translate', 'to'=>$language));
248 // Add link to the original language, if not present
279 // Add the original language if not present
324 public function suggestTranslationId($title, $language, $from_language=null) { argument
333 // replace language as first part of ns
334 $ns = isset($ns_tail) ? $language.':'.$ns_tail : $language;
337 // prepend language to ns
338 $ns = !empty($ns) ? $language.':'.$ns : $language;
344 public function suggestPageId($title, $language) { argument
346 $language.':'.cleanID($title) : cleanID($title);
349 /** Returns an array of language codes */
382 // Get source language form metadata or from namespace according to configuration
442 …ent(form_makeListboxField('lang',$options,$_REQUEST['lang'],$this->getLang('language'),'',$class));
449 * Returns an associative of translations on the form page-id => language-code.