I18N
[ class tree: I18N ] [ index: I18N ] [ all elements ]

Source for file I18N_Negotiator.php

Documentation is available at I18N_Negotiator.php

  1. <?php
  2.  
  3.     ini_set('include_path',ini_get('include_path').':../..');
  4.  
  5.     
  6.     /**
  7.     *
  8.     *   test of I18N_Negotiator
  9.     *
  10.     */
  11.     print 'TEST I18N_Negotiator<br><br>';
  12.     require_once'I18N/Negotiator.php' );
  13.  
  14.  
  15.     $neg = new I18N_Negotiator;
  16.  
  17.     $execute = array();
  18.     $execute['$lang = $neg->getLanguageMatch()';
  19.     $execute['$country = $neg->getCountryMatch($lang)';
  20.     $execute['$neg->getVariantInfo($lang)';
  21.     $execute['$neg->getCharsetMatch()';
  22.     $execute['$neg->getCountryName($country)';
  23.     $execute['$neg->getLanguageName($lang)';
  24.  
  25.     echo '<table border="1">';
  26.     foreach$execute as $aExecute )
  27.     {
  28.         eval('$result='.$aExecute.';');
  29.         print "<tr><td>$aExecute </td><td> $result</td></tr>";
  30.     }
  31.     echo '</table>';
  32.  
  33. ?>

Documentation generated on Mon, 11 Mar 2019 15:36:11 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.