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
This commit is contained in:
Alan Garcia 2011-03-11 09:32:58 +00:00
parent c4966eaa6b
commit 5668506c08
9 changed files with 37 additions and 10 deletions

4
.gitattributes vendored
View File

@ -164,6 +164,10 @@ bureau/admin/images/delete.png -text
bureau/admin/images/dom.png -text
bureau/admin/images/edit.png -text
bureau/admin/images/exit.png -text
bureau/admin/images/flag_de_DE.png -text
bureau/admin/images/flag_en_US.png -text
bureau/admin/images/flag_es_ES.png -text
bureau/admin/images/flag_fr_FR.png -text
bureau/admin/images/folder.png -text
bureau/admin/images/folderhta.png -text
bureau/admin/images/ftp.png -text

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 803 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 B

View File

@ -50,7 +50,13 @@ if ($tt) {
}
?>
<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>

View File

@ -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"];

View File

@ -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',

18
debian/changelog vendored
View File

@ -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@mailfr.com> Fri, 11 Mars 2011 10:24:30 +0200
alternc (1.0~rc1) stable; urgency=low
* Major patch