Skip to content
Extraits de code Groupes Projets
Valider 2b1c9190 rédigé par ARNO*'s avatar ARNO*
Parcourir les fichiers

Modifs barre de raccourcis. Introduction de guillemets allemands

parent 88acd53f
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -51,6 +51,7 @@ IMG/icones_barre/eacute-maj.png -text ...@@ -51,6 +51,7 @@ IMG/icones_barre/eacute-maj.png -text
IMG/icones_barre/espace.png -text IMG/icones_barre/espace.png -text
IMG/icones_barre/euro.png -text IMG/icones_barre/euro.png -text
IMG/icones_barre/gras.png -text IMG/icones_barre/gras.png -text
IMG/icones_barre/guillemets-de.png -text
IMG/icones_barre/guillemets-simples.png -text IMG/icones_barre/guillemets-simples.png -text
IMG/icones_barre/guillemets-uniques.png -text IMG/icones_barre/guillemets-uniques.png -text
IMG/icones_barre/guillemets.png -text IMG/icones_barre/guillemets.png -text
......
IMG/icones_barre/guillemets-de.png

316 octets

...@@ -12,7 +12,7 @@ function test_barre() { ...@@ -12,7 +12,7 @@ function test_barre() {
if ($browser_name == '') verif_butineur(); if ($browser_name == '') verif_butineur();
if ( if (
(eregi("msie", $browser_name) AND $browser_version >= 5 AND $HTTP_UA_OS != 'MacOS') (eregi("msie", $browser_name) AND $browser_version >= 5.5)
|| (eregi("mozilla", $browser_name) AND $browser_version >= 5 AND $browser_rev >= 1.3) || (eregi("mozilla", $browser_name) AND $browser_version >= 5 AND $browser_rev >= 1.3)
) )
return true; return true;
...@@ -47,14 +47,14 @@ function bouton_barre_racc($action, $img, $help, $formulaire, $texte) { ...@@ -47,14 +47,14 @@ function bouton_barre_racc($action, $img, $help, $formulaire, $texte) {
} }
function afficher_barre($formulaire='',$texte='', $forum=false) { function afficher_barre($formulaire='',$texte='', $forum=false) {
global $spip_lang, $flag_ecrire, $options; global $spip_lang, $flag_ecrire, $options, $spip_lang_right, $spip_lang_left;
if (test_barre()) { if (test_barre()) {
$ret = afficher_script_barre(); $ret = afficher_script_barre();
$champ = "document.$formulaire.$texte"; $champ = "document.$formulaire.$texte";
$ret .= "<table cellpadding='0' cellspacing='0' border='0' width='100%'>"; $ret .= "<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
$ret .= "<tr width='100%'>"; $ret .= "<tr width='100%'>";
$ret .= "<td align='left' style='padding-top: 4px; padding-bottom: 2px;'>"; $ret .= "<td align='$spip_lang_left' style='padding-top: 4px; padding-bottom: 2px;'>";
$col++; $col++;
// Italique, gras, intertitres // Italique, gras, intertitres
...@@ -86,11 +86,14 @@ function afficher_barre($formulaire='',$texte='', $forum=false) { ...@@ -86,11 +86,14 @@ function afficher_barre($formulaire='',$texte='', $forum=false) {
$ret .= "</td>"; $ret .= "</td>";
// Insertion de caracteres difficiles a taper au clavier (guillemets, majuscules accentuees...) // Insertion de caracteres difficiles a taper au clavier (guillemets, majuscules accentuees...)
$ret .= "<td align='right' style='padding-top: 4px; padding-bottom: 2px;'>"; $ret .= "<td align='$spip_lang_right' style='padding-top: 4px; padding-bottom: 2px;'>";
$col++; $col++;
if ($spip_lang == "fr" OR $spip_lang == "eo" OR $spip_lang == "cpf") { if ($spip_lang == "fr" OR $spip_lang == "eo" OR $spip_lang == "cpf" OR $spip_lang == "ar") {
$ret .= bouton_barre_racc ("javascript:barre_raccourci('&laquo;','&raquo;',$champ)", "guillemets.png", _T('barre_guillemets'), $formulaire, $texte); $ret .= bouton_barre_racc ("javascript:barre_raccourci('&laquo;','&raquo;',$champ)", "guillemets.png", _T('barre_guillemets'), $formulaire, $texte);
} }
else if ($spip_lang == "de" OR $spip_lang == "pl" OR $spip_lang == "hr" OR $spip_lang == "src") {
$ret .= bouton_barre_racc ("javascript:barre_raccourci('&bdquo;','&ldquo;',$champ)", "guillemets-de.png", _T('barre_guillemets_de'), $formulaire, $texte);
}
else { else {
$ret .= bouton_barre_racc ("javascript:barre_raccourci('&ldquo;','&rdquo;',$champ)", "guillemets-simples.png", _T('barre_guillemets_simples'), $formulaire, $texte); $ret .= bouton_barre_racc ("javascript:barre_raccourci('&ldquo;','&rdquo;',$champ)", "guillemets-simples.png", _T('barre_guillemets_simples'), $formulaire, $texte);
} }
...@@ -109,7 +112,7 @@ function afficher_barre($formulaire='',$texte='', $forum=false) { ...@@ -109,7 +112,7 @@ function afficher_barre($formulaire='',$texte='', $forum=false) {
$ret .= "<td> &nbsp; </td>"; $ret .= "<td> &nbsp; </td>";
$col++; $col++;
$ret .= "<td align='right' onMouseOver=\"helpline(_T('barre_aide_rac'),helpbox$texte)\" onMouseOut=\"helpline('Utilisez les raccourcis typographiques pour enrichir votre mise en page', $champhelp)\">"; $ret .= "<td align='$spip_lang_right' onMouseOver=\"helpline(_T('barre_aide_rac'),helpbox$texte)\" onMouseOut=\"helpline('Utilisez les raccourcis typographiques pour enrichir votre mise en page', $champhelp)\">";
$col++; $col++;
$ret .= "&nbsp;&nbsp;&nbsp;"; $ret .= "&nbsp;&nbsp;&nbsp;";
$ret .= aide("raccourcis"); $ret .= aide("raccourcis");
......
...@@ -85,7 +85,7 @@ $GLOBALS['i18n_spip_fr'] = array( ...@@ -85,7 +85,7 @@ $GLOBALS['i18n_spip_fr'] = array(
'barre_note' => 'Transformer en [[Note de bas de page]]', 'barre_note' => 'Transformer en [[Note de bas de page]]',
'barre_quote' => '<quote>Citer un message</quote>', 'barre_quote' => '<quote>Citer un message</quote>',
'barre_guillemets' => 'Entourer de &laquo; guillemets fran&ccedil;ais &raquo;', 'barre_guillemets' => 'Entourer de &laquo; guillemets fran&ccedil;ais &raquo;',
'barre_guillemets_simples' => 'Entourer de &ldquo;guillemets&rdquo;', 'barre_guillemets_de' => 'Entourer de &bdquo;guillemets&ldquo;',
'barre_a_accent_grave' => 'Ins&eacute;rer un A accent grave majuscule', 'barre_a_accent_grave' => 'Ins&eacute;rer un A accent grave majuscule',
'barre_e_accent_aigu' => 'Ins&eacute;rer un E accent aigu majuscule', 'barre_e_accent_aigu' => 'Ins&eacute;rer un E accent aigu majuscule',
'barre_eo' => 'Ins&eacute;rer un E dans l\'O', 'barre_eo' => 'Ins&eacute;rer un E dans l\'O',
......
...@@ -139,13 +139,15 @@ a.icone:hover { text-decoration: none; } ...@@ -139,13 +139,15 @@ a.icone:hover { text-decoration: none; }
a.spip_barre { a.spip_barre {
border: 0px solid #666666; border: 0px solid #666666;
padding: 4px; padding: 4px;
margin-right: 3px; margin-right: 1px;
margin-left: 1px;
background: url(img_pack/pave-gris-16.png); background: url(img_pack/pave-gris-16.png);
} }
a.spip_barre:hover { a.spip_barre:hover {
border: 0px solid #666666; border: 0px solid #666666;
padding: 4px; padding: 4px;
margin-right: 3px; margin-right: 1px;
margin-left: 1px;
background: url(img_pack/pave-blanc-16.png); background: url(img_pack/pave-blanc-16.png);
} }
......
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