/[dolibarr]/dolibarr/htdocs/install/inc.php
ViewVC logotype

Diff of /dolibarr/htdocs/install/inc.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.16 by eldy, Fri Oct 28 20:26:33 2005 UTC revision 1.17 by eldy, Sun Oct 30 01:07:01 2005 UTC
# Line 32  $docurl = '<a href="doc/dolibarr-install Line 32  $docurl = '<a href="doc/dolibarr-install
32  $conffile = "../conf/conf.php";  $conffile = "../conf/conf.php";
33    
34    
 // Récupère langues du navigateur et defini langcode  
 $langpref=$_SERVER['HTTP_ACCEPT_LANGUAGE'];  
 $langpref=eregi_replace(";[^,]*","",$langpref);  
 $langpref=eregi_replace("-","_",$langpref);  
 $langlist=split("[;,]",$langpref);  
 $langpart=split("_",$langlist[0]);  
 if ($langpart[1]) $langcode=$langpart[0]."_".strtoupper($langpart[1]);  
 else $langcode=$langpart[0]."_".strtoupper($langpart[0]);  
35  // Defini objet langs  // Defini objet langs
36  require_once("../translate.class.php");  require_once("../translate.class.php");
37    $langcode='auto';
38  $langs = new Translate("../langs", $langcode);  $langs = new Translate("../langs", $langcode);
39    
40    
41  $tab[0]=' class="bg1"';  $tab[0]=' class="bg1"';
42  $tab[1]=' class="bg2"';  $tab[1]=' class="bg2"';
43    
# Line 53  function pHeader($soutitre,$next,$action Line 47  function pHeader($soutitre,$next,$action
47      $langs->load("main");      $langs->load("main");
48      $langs->load("admin");      $langs->load("admin");
49    
50        print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">'."\n";
51      print '<html>';      print '<html>';
52      print '<head>';      print '<head>';
53      print '<meta http-equiv="content-type" content="text/html; charset='.$langs->trans("charset").'">';      print '<meta http-equiv="content-type" content="text/html; charset='.$langs->trans("charset").'">';
# Line 73  function pHeader($soutitre,$next,$action Line 68  function pHeader($soutitre,$next,$action
68  }  }
69    
70    
71  function pFooter($nonext=0,$addlang=1)  function pFooter($nonext=0,$setuplang='')
72  {  {
73      global $langs;      global $langs;
74      $langs->load("main");      $langs->load("main");
# Line 81  function pFooter($nonext=0,$addlang=1) Line 76  function pFooter($nonext=0,$addlang=1)
76            
77      print '</div></div>';      print '</div></div>';
78      if (! $nonext)      if (! $nonext)
79        {      {
80          print '<div class="barrebottom"><input type="submit" value="'.$langs->trans("NextStep").' ->"></div>';          print '<div class="barrebottom"><input type="submit" value="'.$langs->trans("NextStep").' ->"></div>';
81        }      }
82      if ($addlang) {      if ($setuplang)
83          print '<input type="hidden" name="selectlang" value="'.$langs->defaultlang.'">';      {
84            print '<input type="hidden" name="selectlang" value="'.$setuplang.'">';
85      }      }
86      print '</form>';      print '</form>';
87      print '</body>';      print '</body>';

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26