Lines Matching defs:translation
18 $translation = $TPL->getPlugin('translation');
20 $conf['plugin']['translation']['dropdown'] = 0;
22 if ($translation->istranslatable($ID)) {
26 list($lc, $idpart) = $translation->getTransParts($ID);
28 $translation_label = $translation->getLang('translations');
30 foreach ($translation->translations as $t) {
33 if (method_exists($translation, 'getTransItem')) {
34 $translation_items[] = str_replace(array('<div class="li">', '</div>'), '', $translation->getTransItem($t, $idpart));
37 list($target, $language) = $translation->buildTransID($t, $idpart);
44 $title = hsc($translation->getLocalName($language));
46 if (isset($translation->opts['flag'])) {
47 $text .= '<i>' . inlineSVG(DOKU_PLUGIN . 'translation/flags/' . $language . '.svg', 1024 * 12) . '</i>';
50 if (isset($translation->opts['name'])) {
52 $text .= hsc($translation->getLocalName($language));
54 if (isset($translation->opts['langcode'])) {
58 } elseif (isset($translation->opts['langcode'])) {
71 <!-- translation -->
79 <?php if ($translation->getConf('about') || $translation->getConf('title')): ?>
84 echo $translation->getLang('translations');
86 if ($translation->getConf('about')) {
87 echo ' ' . $translation->showAbout();
102 <!-- /translation -->