]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 25 Apr 2012 15:53:59 +0000 (15:53 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 25 Apr 2012 15:53:59 +0000 (15:53 +0000)
inc/commons/class.common.tools.php

index 70cdc7ed4f8a984a4e4334fb6f8ad88878811dd1..e2ceb630ac2180d2e7319917cebd3c692f33b533 100644 (file)
@@ -166,7 +166,7 @@ class commonTools {
                $res.='H264 : <span class="f" data-feature="video.h264"></span><br />';
                $res.='WEBM : <span class="f" data-feature="video.webm"></span><br />';
                $res.='</td></tr>';
-               $res.='<tr><td>' . __("Orientation de l'écran") . '</td><td><span id="op">'.__('Portrait').'</span><span id="ol">'.__('Paysage').'</span></td></tr>';
+               $res.='<tr><td>' . __("Orientation de l'écran") . '</td><td><span id="op">' . __('Portrait') . '</span><span id="ol">' . __('Paysage') . '</span></td></tr>';
                $res.='<tr><td>' . __("Largeur de l'écran") . '</td><td id="swidth"></td></tr>';
                $res.='<tr><td>' . __("Hauteur de l'écran") . '</td><td id="sheight"></td></tr>';
                $res.='</table>';
@@ -254,6 +254,14 @@ class commonTools {
                cubeHTTP::downloadFile($tmpfile, 'favicon.zip');
        }
 
+       public static function getDefaultLanguage() {
+               $available = explode(',', $_GET['available']);
+               header('Content-type: text/plain');
+               ob_end_clean();
+               echo cubeLang::getBrowserLang($available, $default);
+               exit;
+       }
+
        public static function uglify() {
                $js = '';
                if (isset($_POST['js'])) {
@@ -287,5 +295,7 @@ class commonTools {
                unlink($tmp);
                exit;
        }
+
 }
+
 ?>