/** * Method launched for the HTTP GET requests * * @param mixed $param Correspond to the URL after /Lan * * @return array List of visio referents */ public function get($param = null) { return array('data' => array('translationSize' => Utilities::getDirectorySize(NOTES_BASE . '/language'), 'content' => Lang::getTranslations())); }
<script type="text/javascript" src="./js/main.js"></script> <!--<script type="text/javascript" src="<?php // echo Config::get('site_url') . '/rest.php/Lang'; ?> ?callback=lang.setTranslations"></script>--> <?php if (is_dir('./utils/')) { foreach (glob('./utils/*.php') as $file) { include_once $file; } } ?> <?php $authorized = Auth::isAuthorized() ? 'true' : 'false'; echo '<script type="text/javascript">notes.connected = ' . $authorized . ';</script>'; $etherpadAvailable = PadConfigComponent::isEtherpadAvailable() ? 'true' : 'false'; echo '<script type="text/javascript">notes.etherpad_available = ' . $etherpadAvailable . ';</script>'; ?> <?php // Initialize the lang length for translation purpose echo '<script type="text/javascript">notes.translationSize = ' . Utilities::getDirectorySize(NOTES_BASE . '/language') . ';</script>';