protected static function init()
 {
     if (self::$init) {
         return;
     }
     self::$init = true;
     // init browser names and short names
     self::$browserIdToName = array_map('ucwords', array_flip(self::$browsers));
     self::$browserIdToName['CH'] = "Google Chrome";
     self::$browserIdToShortName = self::$browserIdToName;
     self::$browserIdToShortName['IE'] = "IE";
     self::$browserIdToShortName['FB'] = "Firebird";
     // init OS names and short names
     self::$operatingSystemsIdToName = array_flip(self::$operatingSystems);
     self::$operatingSystemsIdToShortName = array_merge(self::$operatingSystemsIdToName, array('PS3' => 'PS3', 'PSP' => 'PSP', 'IPH' => 'iPhone', 'WII' => 'WII', 'WI7' => 'Win 7', 'WVI' => 'Win Vista', 'WS3' => 'Win S2003', 'WXP' => 'Win XP', 'W98' => 'Win 98', 'W2K' => 'Win 2000', 'WNT' => 'Win NT', 'WME' => 'Win Me', 'W95' => 'Win 95', 'WCE' => 'Win CE', 'MAC' => 'Mac OS', 'LIN' => 'Linux', 'INC' => 'Inconnu', 'SOS' => 'SunOS', 'BSD' => 'FreeBSD', 'AIX' => 'AIX', 'IRI' => 'IRIX', 'HPX' => 'HPX', 'OS2' => 'OS/2', 'NBS' => 'NetBSD', 'UNK' => 'Unknown'));
 }
 protected static function init()
 {
     if (self::$init) {
         return;
     }
     self::$init = true;
     // init browser names and short names
     self::$browserIdToName = array_map('ucwords', array_flip(self::$browsers));
     self::$browserIdToName['AB'] = 'ABrowse';
     self::$browserIdToName['AV'] = 'AmigaVoyager';
     self::$browserIdToName['AW'] = 'Amiga AWeb';
     self::$browserIdToName['BB'] = 'BlackBerry';
     self::$browserIdToName['BX'] = 'BrowseX';
     self::$browserIdToName['CO'] = 'CometBird';
     self::$browserIdToName['EL'] = 'ELinks';
     self::$browserIdToName['FF'] = 'Firefox';
     self::$browserIdToName['HJ'] = 'HotJava';
     self::$browserIdToName['IB'] = 'IBrowse';
     self::$browserIdToName['IC'] = 'iCab';
     self::$browserIdToName['KM'] = 'K-Meleon';
     self::$browserIdToName['MC'] = 'NCSA Mosaic';
     self::$browserIdToName['OW'] = 'OmniWeb';
     self::$browserIdToName['SF'] = 'Safari';
     self::$browserIdToName['SM'] = 'SeaMonkey';
     self::$browserIdToName['WO'] = 'Palm webOS';
     self::$browserIdToName['WP'] = 'WebPro';
     self::$browserIdToShortName = self::$browserIdToName;
     self::$browserIdToShortName['AW'] = 'AWeb';
     self::$browserIdToShortName['FB'] = 'Firebird';
     self::$browserIdToShortName['IE'] = 'IE';
     self::$browserIdToShortName['MC'] = 'Mosaic';
     self::$browserIdToShortName['WO'] = 'webOS';
     // init OS names and short names
     self::$operatingSystemsIdToName = array_merge(array_flip(self::$operatingSystems), array('IPD' => 'iPhone', 'IPA' => 'iPhone', 'WME' => 'Windows Me', 'BEO' => 'BeOS', 'T64' => 'Tru64'));
     self::$operatingSystemsIdToShortName = array_merge(self::$operatingSystemsIdToName, array('PS3' => 'PS3', 'PSP' => 'PSP', 'WII' => 'Wii', 'WI7' => 'Win 7', 'WVI' => 'Win Vista', 'WS3' => 'Win S2003', 'WXP' => 'Win XP', 'W98' => 'Win 98', 'W2K' => 'Win 2000', 'WNT' => 'Win NT', 'WME' => 'Win Me', 'W95' => 'Win 95', 'WCE' => 'Win CE', 'WOS' => 'webOS', 'UNK' => 'Unknown'));
 }