Changeset 2870

Show
Ignore:
Timestamp:
11/14/08 13:44:14 (5 years ago)
Author:
patdenice
Message:

Available languages are now defined in loader file.
Some corrections in french traductions.

Location:
extras/auto-install/trunk
Files:
1 removed
2 modified

Legend:

Unmodified
Added
Removed
  • extras/auto-install/trunk/language/fr_FR/loader.lang.txt

    r2869 r2870  
    2424$lang['Welcome to NetInstall!'] = 'Bienvenue sur NetInstall!'; 
    2525$lang['Language'] = 'Langue'; 
    26 $lang['This tool is meant to retrieve the latest Piwigo archive and unzip it in your webspace.'] = 'Cet outil permet de récupérer la dernière version de Piwigo et à la décompresser sur votre espace web.'; 
    27 $lang['Right after then, you will be redirect to the Piwigo Setup Wizard.'] = 'Vous serez redirigés par la suite vers la page d\'installation de Piwigo.'; 
     26$lang['This tool is meant to retrieve the latest Piwigo archive and unzip it in your webspace.'] = 'Cet outil permet de récupérer la dernière version de Piwigo et la décompresser sur votre espace web.'; 
     27$lang['Right after then, you will be redirect to the Piwigo Setup Wizard.'] = 'Vous serez redirigés ensuite vers la page d\'installation de Piwigo.'; 
    2828 
    2929$lang['Write access is needed'] = 'Les droits d\'accès en écriture sont nécessaires'; 
    30 $lang['It looks like NetInstall wont be able to write in the current directory, and this is required to follow on.'] = 'Apparemment, NetInstall n\'a pas le droit d\'écrire dans le dossier courant: ceci est indispensable.'; 
    31 $lang['Please try to change the permissions to allow write access, then reload this page by hitting the Refresh button.'] = 'Essayez de changer les permissions pour l\'accès en écriture, puis rechargez la page en appuyant sur le bouton actualiser.'; 
     30$lang['It looks like NetInstall wont be able to write in the current directory, and this is required to follow on.'] = 'NetInstall n\'a pas le droit d\'écrire dans le dossier courant: ceci est indispensable.'; 
     31$lang['Please try to change the permissions to allow write access, then reload this page by hitting the Refresh button.'] = 'Essayez de changer les permissions pour autoriser l\'accès en écriture, puis rechargez la page en appuyant sur le bouton "Actualiser".'; 
    3232$lang['Refresh'] = 'Actualiser'; 
    3333 
    3434$lang['PHP 5 is required'] = 'PHP 5 est requis'; 
    35 $lang['It appears your webhost is currently running PHP %s.'] = 'Apparemment, la version de votre serveur est PHP %s.'; 
     35$lang['It appears your webhost is currently running PHP %s.'] = 'Apparemment, la version PHP de votre hébergeur est PHP %s.'; 
    3636$lang['NetInstall may try to switch your configuration to PHP 5 by creating or modifying a .htaccess file.'] = 'NetInstall va essayer de passer en PHP 5 en créant ou en modifiant le fichier .htaccess.'; 
    37 $lang['Note you can change your configuration by yourself and restart NetInstall after that.'] = 'Notez que vous pouvez changer vous-même la configuration et re-lancer NetInstall après.'; 
     37$lang['Note you can change your configuration by yourself and restart NetInstall after that.'] = 'Notez que vous pouvez changer vous-même la configuration PHP et re-lancer NetInstall après.'; 
    3838$lang['Try to configure PHP 5'] = 'Essayer de configurer PHP 5'; 
    3939 
     
    5050$lang['Needed files are not present.'] = 'Les fichiers nécessaires sont manquants.'; 
    5151$lang['Invalid zip file.'] = 'Archive zip invalide.'; 
    52 $lang['It seems that the zip file was not extracted.'] = 'Les fichiers n\'ont pas été extraits correctement..'; 
     52$lang['It seems that the zip file was not extracted.'] = 'Les fichiers n\'ont pas été extraits correctement.'; 
    5353 
    5454$lang['Congratulations!'] = 'Félicitation!'; 
  • extras/auto-install/trunk/piwigo-loader.php

    r2869 r2870  
    1212 
    1313// +-----------------------------------------------------------------------+ 
    14 // |                                                                                                                     Configuration                                                                                                  | 
     14// |                              Configuration                            | 
    1515// +-----------------------------------------------------------------------+ 
    1616 
    17 define('DC_LOADER_SERVICE','http://piwigo.free.fr/loader/'); 
     17define('DC_LOADER_SERVICE','http://svn.gna.org/viewcvs/*checkout*/phpwebgallery/extras/auto-install/trunk/'); 
    1818define('DC_LOADER_ARCHIVE','http://download.gna.org/phpwebgallery/release/2.0/candidate/phpwebgallery-2.0.0RC4.zip'); 
     19 
     20$available_languages = array( 
     21  'en_UK' => 'English [UK]', 
     22  'fr_FR' => 'Français [FR]', 
     23//  'de_DE' => 'Deutch [DE]',    /* Not translated yet */ 
     24//  'es_ES' => 'Español [ES]',   /* Not translated yet */ 
     25//  'it_IT' => 'Italiano [IT]',  /* Not translated yet */ 
     26//  'nl_NL' => 'Dutch [NL]'      /* Not translated yet */ 
     27); 
    1928 
    2029// +-----------------------------------------------------------------------+ 
     
    141150        global $can_fetch, $lang, $available_languages; 
    142151 
    143         $language = 'en_UK'; 
    144         $available_languages = array(); 
    145  
    146         // Rertrieve available languages 
    147         if ($can_fetch and fetchRemote(DC_LOADER_SERVICE.'get_language.php', $str)) 
    148         { 
    149                 $available_languages = @unserialize($str); 
    150         } 
    151  
    152         if (isset($_GET['language'])) 
    153         { 
    154                 $language = strip_tags($_GET['language']); 
     152        if (isset($_GET['language']) and isset($available_languages[$_GET['language']])) 
     153        { 
     154                $language = $_GET['language']; 
    155155        } 
    156156        else 
    157157        { 
     158                $language = 'en_UK'; 
    158159                // Try to get browser language 
    159160                foreach ($available_languages as $language_code => $language_name) 
     
    365366 
    366367                // Show available languages 
    367                 if (!empty($available_languages)) 
    368                 { 
    369                         echo 
    370                         '<p class="language">'.l10n('Language').' &nbsp;'."\n". 
    371                         '<select name="language" onchange="document.location = \''.basename(__FILE__).'?language=\'+this.options[this.selectedIndex].value;">'."\n"; 
    372  
    373                         foreach ($available_languages as $language_code => $language_name) 
    374                         { 
    375                                 echo '<option label="'.$language_name.'" value="'.$language_code.'" '.($language_code == DC_LOADER_LANG ? 'selected="selected"' : '').'>'.$language_name.'</option>'."\n"; 
    376                         } 
    377                         echo '</select>'."\n". 
    378                         '</p>'."\n"; 
    379                 } 
     368                asort($available_languages); 
     369                echo 
     370                '<p class="language">'.l10n('Language').' &nbsp;'."\n". 
     371                '<select name="language" onchange="document.location = \''.basename(__FILE__).'?language=\'+this.options[this.selectedIndex].value;">'."\n"; 
     372                foreach ($available_languages as $language_code => $language_name) 
     373                { 
     374                        echo '<option label="'.$language_name.'" value="'.$language_code.'" '.($language_code == DC_LOADER_LANG ? 'selected="selected"' : '').'>'.$language_name.'</option>'."\n"; 
     375                } 
     376                echo '</select>'."\n".'</p>'."\n"; 
    380377 
    381378                echo