Lines Matching refs:this

30         $this->translations = strtolower(str_replace(',', ' ', $this->getConf('translations')));
31 $this->translations = array_unique(array_filter(explode(' ', $this->translations)));
32 sort($this->translations);
35 $this->LN = confToHash(dirname(__FILE__) . '/lang/langnames.txt');
38 $this->opts = $this->getConf('display');
39 $this->opts = explode(',', $this->opts);
40 $this->opts = array_map('trim', $this->opts);
41 $this->opts = array_fill_keys($this->opts, true);
49 if(in_array($dfl, $this->translations)) {
50 $this->defaultlang = $dfl;
52 $this->defaultlang = '';
53 array_unshift($this->translations, '');
56 $this->translationsNs = $this->setupTNS();
67 if ( !empty( $this->translationsNs) ) { return $this->translationsNs; }
72 if ( $forceAutotranslation || $this->getConf('autodetectnamespace') )
78 if ( in_array($tns, $this->translations) )
89 $tnsA = explode(' ', $this->getConf('translationns'));
92 usort($tnsA,array($this, 'lensort') );
114 list($lng) = $this->getTransParts($id);
122 list($lng, $idpart) = $this->getTransParts($id);
131 $rx = '/^' . $this->translationsNs . '(' . join('|', $this->translations) . '):(.*)/';
143 $rx = '/(^|,|:|;|-)(' . join('|', $this->translations) . ')($|,|:|;|-)/i';
157 $link = ':' . $this->translationsNs . $lng . ':' . $idpart;
160 $link = ':' . $this->translationsNs . $idpart;
161 $name = $this->realLC('');
191 if($this->translationsNs && strpos($id, $this->translationsNs) !== 0) return false;
192 $skiptrans = trim($this->getConf('skiptrans'));
208 $curlc = $this->getLangPart($ID);
210 $about = $this->getConf('about');
211 if($this->getConf('localabout')) {
212 list($lc, $idpart) = $this->getTransParts($about);
213 list($about, $name) = $this->buildTransID($curlc, $idpart);
234 list($lc, $idpart) = $this->getTransParts($id);
235 $lang = $this->realLC($lc);
237 foreach($this->translations as $t) {
239 list($link, $name) = $this->buildTransID($t, $idpart);
257 if(!$this->istranslatable($INFO['id'])) return '';
258 $this->checkage();
260 list($lc, $idpart) = $this->getTransParts($INFO['id']);
261 $lang = $this->realLC($lc);
266 if(isset($this->opts['title'])) {
267 $out .= '<span>' . $this->getLang('translations');
268 if($this->getConf('about')) $out .= $this->showAbout();
270 if(isset($this->opts['twolines'])) $out .= '<br />';
274 if($this->getConf('dropdown')) {
281 if(isset($this->opts['flag'])) {
301 foreach($this->translations as $t) {
302 $out .= $this->getTransItem($t, $idpart);
306 if($this->getConf('dropdown')) {
315 if(!isset($this->opts['title']) && $this->getConf('about')) {
317 $out .= $this->showAbout();
332 if($this->LN[$lang]) {
333 return $this->LN[$lang];
349 list($link, $lang) = $this->buildTransID($lc, $idpart);
360 $localname = $this->getLocalName($lang);
372 if(isset($this->opts['flag'])) {
379 if(isset($this->opts['name'])) {
381 if(isset($this->opts['langcode'])) $display .= ' (' . hsc($lang) . ')';
382 } elseif(isset($this->opts['langcode'])) {
390 if($this->getConf('dropdown')) {
417 if(!$this->getConf('checkage')) return;
419 $lng = $this->getLangPart($ID);
420 if($lng == $this->defaultlang) return;
422 $rx = '/^' . $this->translationsNs . '((' . join('|', $this->translations) . '):)?/';
426 list($orig, $name) = $this->buildTransID($this->defaultlang, $idpart);
446 $msg = sprintf($this->getLang('outdated'), wl($orig));
448 $difflink = $this->getOldDiffLink($orig, $INFO['lastmod']);
450 $msg .= sprintf(' ' . $this->getLang('diff'), $difflink);
486 if ( !$this->istranslatable($id) ) return false;
488 $idpart = $this->getIDPart($inputID);
490 foreach($this->translations as $t)
492 list($link,$name) = $this->buildTransID($t,$idpart,false);