Skip to content
Extraits de code Groupes Projets
Valider c256dce7 rédigé par JamesRezo's avatar JamesRezo :tada:
Parcourir les fichiers

décorréler bouton_suivant() de _T(): le bouton prend donc une chaine traduite...

décorréler bouton_suivant() de _T(): le bouton prend donc une chaine traduite en paramètre facultatif (page d'auth ftp) sinon, il traduit la chaine _T('bouton_suivant') lui-même
parent 2606ea2d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -55,7 +55,7 @@ function debut_admin($script, $action, $commentaire='') { ...@@ -55,7 +55,7 @@ function debut_admin($script, $action, $commentaire='') {
)), )),
('<br />' ('<br />'
. _T('info_creer_repertoire_2', array('repertoire' => joli_repertoire($dir))) . _T('info_creer_repertoire_2', array('repertoire' => joli_repertoire($dir)))
. bouton_suivant(_T('recharger_page')))) . bouton_suivant(_T('bouton_recharger_page'))))
. "</form>"; . "</form>";
// code volontairement tordu: // code volontairement tordu:
......
...@@ -120,9 +120,13 @@ function fieldset($legend, $champs = array(), $horchamps='') { ...@@ -120,9 +120,13 @@ function fieldset($legend, $champs = array(), $horchamps='') {
} }
// http://doc.spip.org/@bouton_suivant // http://doc.spip.org/@bouton_suivant
function bouton_suivant($code = 'suivant') { function bouton_suivant($code = '') {
return "\n<span class='suivant'><input id='".$code."' type='submit' class='fondl'\nvalue=\"" . if($code=='') $code = _T('bouton_suivant');
_T("bouton_".$code) . static $suivant = 0;
$id = 'suivant'.(($suivant>0)?strval($suivant):'');
$suivant +=1;
return "\n<span class='suivant'><input id='".$id."' type='submit' class='fondl'\nvalue=\"" .
$code .
" >>\" /></span>\n"; " >>\" /></span>\n";
} }
......
...@@ -81,7 +81,7 @@ function install_etape_5_dist() ...@@ -81,7 +81,7 @@ function install_etape_5_dist()
'valeur' => 'ldap1', 'valeur' => 'ldap1',
'hidden' => true 'hidden' => true
)), )),
bouton_suivant('acces_ldap') bouton_suivant(_T('bouton_acces_ldap'))
); );
echo "</form>\n"; echo "</form>\n";
} }
...@@ -89,4 +89,4 @@ function install_etape_5_dist() ...@@ -89,4 +89,4 @@ function install_etape_5_dist()
echo install_fin_html(); echo install_fin_html();
} }
?> ?>
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter