Changeset 2871


Ignore:
Timestamp:
03/11/11 10:32:58 (2 years ago)
Author:
fufroma
Message:

Ajouts du changement de langue *dans* le panel (avec de mignons petit drapeaux).
Passage en 1.0~rc2 (au moins. On verra après si on change ça).
Premier jet du changelog

Location:
alternc/trunk
Files:
4 added
4 edited

Legend:

Unmodified
Added
Removed
  • alternc/trunk/bureau/admin/menu.php

    r2614 r2871  
    5151 
    5252?> 
    53 <p class="center"><a href="http://www.alternc.org" target="_blank"><img src="logo2.png" border="0" alt="" /></a> 
     53<p class="center"><a href="http://www.alternc.org" target="_blank"><img src="logo2.png" border="0" alt="AlternC" /></a> 
    5454<br /> 
    55 <?php echo "$L_VERSION"; ?> 
     55<?php  
     56echo "$L_VERSION"; 
     57echo "</p><p class='center'>"; 
     58foreach($locales as $l) { ?> 
     59  <a href="?setlang=<?php echo $l; ?>"><img alt='<?php __($l); ?>' src='images/flag_<?php echo $l;?>.png' /></a><?php 
     60} 
     61?> 
    5662</p> 
  • alternc/trunk/bureau/class/lang_env.php

    r2860 r2871  
    33function update_locale($langpath) { 
    44  $locales=array(); 
    5   $f=@fopen("/etc/locale.gen","rb"); 
    6   if ($f) { 
    7     while ($s=fgets($f,1024)) { 
    8       if (preg_match("/^([a-z][a-z]_[A-Z][A-Z])/",trim($s),$mat) && file_exists($langpath . '/' . $mat[1])) { 
    9         $locales[$mat[1]]=$mat[1]; 
    10       } 
     5  $file=file("/etc/locale.gen", FILE_SKIP_EMPTY_LINES); 
     6  if (! is_array($file) ) return $locales; 
     7  foreach ($file as $v ) { 
     8    if ( (preg_match("/^([a-z][a-z]_[A-Z][A-Z])/",trim($v),$mat) && file_exists($langpath . '/' . $mat[1]) ) ) { 
     9      $locales[$mat[1]]=$mat[1]; 
    1110    } 
    12     fclose($f); 
    1311  } 
    1412  return $locales; 
    1513} 
     14 
    1615 
    1716// setlang is on the link at the login page 
  • alternc/trunk/bureau/class/local.php

    r2675 r2871  
    22 
    33/* Read global variables (AlternC configuration) */ 
    4 $L_VERSION="v. 1.0~rc1"; 
     4$L_VERSION="v. 1.0~rc2"; 
    55 
    66/* To ease the transition, we define a lookup table for old names */ 
  • alternc/trunk/debian/changelog

    r2683 r2871  
     1alternc (1.0~rc2) stable; urgency=low 
     2  * Major patch 
     3    * Web & DNS file generation rebuild from scratch 
     4    * Drop of apache 1 support 
     5    * Big changes in database schema (domaines, sub_domaines, *_standby) 
     6  * Major changes 
     7    * Drop mass virtual hosting, now use full vhost 
     8  * New features 
     9    * Domains type are dynamic, the administrator can create domaine type with his own apache template 
     10    * Advanced DNS options (ipv6, cname, txt, mx) 
     11    * Possibility to create a temporary mail 
     12  * Bugfixes 
     13    * Too many to be listed (we change the update_domaines.sh) 
     14    * Dash compatibility 
     15    * Use iana.org to have whois server list up to date 
     16     
     17 -- Alan Garcia <fufroma@mailfr.com>  Fri, 11 Mars 2011 10:24:30 +0200 
     18 
    119alternc (1.0~rc1) stable; urgency=low 
    220 
Note: See TracChangeset for help on using the changeset viewer.