protected function translator_block() { if (MOD_right::get()->hasRight("Words", PVars::get()->lang)) { ?> <div id="translator" class="float_right"><?php $request_string = implode('/', PVars::get()->request); $rox_tr = PVars::getObj("env")->baseuri . "rox/tr_mode"; $words = new MOD_words(); switch ($words->getTrMode()) { case 'translate': ?> <a href="<?php echo $rox_tr; ?> /browse/<?php echo $request_string; ?> ">browse</a> <strong>translate</strong> <a href="<?php echo $rox_tr; ?> /edit/<?php echo $request_string; ?> ">edit</a> <?php break; case 'edit': ?> <a href="<?php echo $rox_tr; ?> /browse/<?php echo $request_string; ?> ">browse</a> <a href="<?php echo $rox_tr; ?> /translate/<?php echo $request_string; ?> ">translate</a> <strong>edit</strong> <?php break; default: case 'browse': ?> <strong>browse</strong> <a href="<?php echo $rox_tr; ?> /translate/<?php echo $request_string; ?> ">translate</a> <a href="<?php echo $rox_tr; ?> /edit/<?php echo $request_string; ?> ">edit</a> <?php break; } ?> </div><?php } }