[AlternC-dev] [Cvs-commit] r2871 - in alternc/trunk: bureau/admin bureau/admin/images bureau/class debian

Retour à l'archive de la liste
Le site d'AlternC
Google Custom Search

Alan Garcia fufroma at mailfr.com
Ven 11 Mar 14:41:22 CET 2011


> Salut,
Yop,

> Juste une petite note, l'utilisation des drapeaux avait été abandonné,
> car un drapeau ne définit pas une langue, on ne parle pas français qu'en
> France, autant qu'on ne parle pas anglais qu'en Angleterre.

C'est aussi ce que m'ont dit les irciens, du coup ça a aussitôt été changé
pour un menu "normal", mais caché par défaut pour pas prendre trop de
place.

++,
Fuf'

>
> Le 11/03/2011 10:32, commitlogs d'alternc par email a écrit :
>> Author: fufroma
>> Date: 2011-03-11 10:32:58 +0100 (Fri, 11 Mar 2011)
>> New Revision: 2871
>>
>> Added:
>>     alternc/trunk/bureau/admin/images/flag_de_DE.png
>>     alternc/trunk/bureau/admin/images/flag_en_US.png
>>     alternc/trunk/bureau/admin/images/flag_es_ES.png
>>     alternc/trunk/bureau/admin/images/flag_fr_FR.png
>> Modified:
>>     alternc/trunk/bureau/admin/menu.php
>>     alternc/trunk/bureau/class/lang_env.php
>>     alternc/trunk/bureau/class/local.php
>>     alternc/trunk/debian/changelog
>> Log:
>> Ajouts du changement de langue *dans* le panel (avec de mignons petit
>> drapeaux).
>> Passage en 1.0~rc2 (au moins. On verra apr?\195?\168s si on change
>> ?\195?\167a).
>> Premier jet du changelog
>>
>>
>> Added: alternc/trunk/bureau/admin/images/flag_de_DE.png
>> ===================================================================
>> (Binary files differ)
>>
>>
>> Property changes on: alternc/trunk/bureau/admin/images/flag_de_DE.png
>> ___________________________________________________________________
>> Added: svn:mime-type
>>     + application/octet-stream
>>
>> Added: alternc/trunk/bureau/admin/images/flag_en_US.png
>> ===================================================================
>> (Binary files differ)
>>
>>
>> Property changes on: alternc/trunk/bureau/admin/images/flag_en_US.png
>> ___________________________________________________________________
>> Added: svn:mime-type
>>     + application/octet-stream
>>
>> Added: alternc/trunk/bureau/admin/images/flag_es_ES.png
>> ===================================================================
>> (Binary files differ)
>>
>>
>> Property changes on: alternc/trunk/bureau/admin/images/flag_es_ES.png
>> ___________________________________________________________________
>> Added: svn:mime-type
>>     + application/octet-stream
>>
>> Added: alternc/trunk/bureau/admin/images/flag_fr_FR.png
>> ===================================================================
>> (Binary files differ)
>>
>>
>> Property changes on: alternc/trunk/bureau/admin/images/flag_fr_FR.png
>> ___________________________________________________________________
>> Added: svn:mime-type
>>     + application/octet-stream
>>
>> Modified: alternc/trunk/bureau/admin/menu.php
>> ===================================================================
>> --- alternc/trunk/bureau/admin/menu.php	2011-03-11 08:07:22 UTC (rev
>> 2870)
>> +++ alternc/trunk/bureau/admin/menu.php	2011-03-11 09:32:58 UTC (rev
>> 2871)
>> @@ -50,7 +50,13 @@
>>   }
>>
>>   ?>
>> -<p class="center"><a href="http://www.alternc.org" target="_blank"><img
>> src="logo2.png" border="0" alt="" /></a>
>> +<p class="center"><a href="http://www.alternc.org" target="_blank"><img
>> src="logo2.png" border="0" alt="AlternC" /></a>
>>   <br />
>> -<?php echo "$L_VERSION"; ?>
>> +<?php
>> +echo "$L_VERSION";
>> +echo "</p><p class='center'>";
>> +foreach($locales as $l) { ?>
>> +<a href="?setlang=<?php echo $l; ?>"><img alt='<?php __($l); ?>'
>> src='images/flag_<?php echo $l;?>.png' /></a><?php
>> +}
>> +?>
>>   </p>
>>
>> Modified: alternc/trunk/bureau/class/lang_env.php
>> ===================================================================
>> --- alternc/trunk/bureau/class/lang_env.php	2011-03-11 08:07:22 UTC (rev
>> 2870)
>> +++ alternc/trunk/bureau/class/lang_env.php	2011-03-11 09:32:58 UTC (rev
>> 2871)
>> @@ -2,18 +2,17 @@
>>
>>   function update_locale($langpath) {
>>     $locales=array();
>> -  $f=@fopen("/etc/locale.gen","rb");
>> -  if ($f) {
>> -    while ($s=fgets($f,1024)) {
>> -      if (preg_match("/^([a-z][a-z]_[A-Z][A-Z])/",trim($s),$mat)&&
>> file_exists($langpath . '/' . $mat[1])) {
>> -	$locales[$mat[1]]=$mat[1];
>> -      }
>> +  $file=file("/etc/locale.gen", FILE_SKIP_EMPTY_LINES);
>> +  if (! is_array($file) ) return $locales;
>> +  foreach ($file as $v ) {
>> +    if ( (preg_match("/^([a-z][a-z]_[A-Z][A-Z])/",trim($v),$mat)&&
>> file_exists($langpath . '/' . $mat[1]) ) ) {
>> +      $locales[$mat[1]]=$mat[1];
>>       }
>> -    fclose($f);
>>     }
>>     return $locales;
>>   }
>>
>> +
>>   // setlang is on the link at the login page
>>   if (isset($_REQUEST["setlang"])) {
>>     $lang=$_REQUEST["setlang"];
>>
>> Modified: alternc/trunk/bureau/class/local.php
>> ===================================================================
>> --- alternc/trunk/bureau/class/local.php	2011-03-11 08:07:22 UTC (rev
>> 2870)
>> +++ alternc/trunk/bureau/class/local.php	2011-03-11 09:32:58 UTC (rev
>> 2871)
>> @@ -1,7 +1,7 @@
>>   <?php
>>
>>   /* Read global variables (AlternC configuration) */
>> -$L_VERSION="v. 1.0~rc1";
>> +$L_VERSION="v. 1.0~rc2";
>>
>>   /* To ease the transition, we define a lookup table for old names */
>>   $compat = array('DEFAULT_MX'   =>  'MX',
>>
>> Modified: alternc/trunk/debian/changelog
>> ===================================================================
>> --- alternc/trunk/debian/changelog	2011-03-11 08:07:22 UTC (rev 2870)
>> +++ alternc/trunk/debian/changelog	2011-03-11 09:32:58 UTC (rev 2871)
>> @@ -1,3 +1,21 @@
>> +alternc (1.0~rc2) stable; urgency=low
>> +  * Major patch
>> +    * Web&  DNS file generation rebuild from scratch
>> +    * Drop of apache 1 support
>> +    * Big changes in database schema (domaines, sub_domaines,
>> *_standby)
>> +  * Major changes
>> +    * Drop mass virtual hosting, now use full vhost
>> +  * New features
>> +    * Domains type are dynamic, the administrator can create domaine
>> type with his own apache template
>> +    * Advanced DNS options (ipv6, cname, txt, mx)
>> +    * Possibility to create a temporary mail
>> +  * Bugfixes
>> +    * Too many to be listed (we change the update_domaines.sh)
>> +    * Dash compatibility
>> +    * Use iana.org to have whois server list up to date
>> +
>> + -- Alan Garcia<fufroma at mailfr.com>   Fri, 11 Mars 2011 10:24:30 +0200
>> +
>>   alternc (1.0~rc1) stable; urgency=low
>>
>>     * Major patch
>>
>> _______________________________________________
>> Cvs-commit mailing list
>> Cvs-commit at lists.alternc.org
>> http://lists.alternc.org/listinfo/cvs-commit
>>
>
> _______________________________________________
> Dev mailing list
> Dev at alternc.org
> http://lists.alternc.org/listinfo/dev
>





Plus d'informations sur la liste de diffusion Dev