diff --git a/.gitattributes b/.gitattributes index e3e75094683618f9c1298d9b52e7f6c671c2a981..15032f5d3774cb5cf21580b844634e3063d77eed 100644 --- a/.gitattributes +++ b/.gitattributes @@ -51,6 +51,7 @@ IMG/icones_barre/eacute-maj.png -text IMG/icones_barre/espace.png -text IMG/icones_barre/euro.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-uniques.png -text IMG/icones_barre/guillemets.png -text diff --git a/IMG/icones_barre/guillemets-de.png b/IMG/icones_barre/guillemets-de.png new file mode 100644 index 0000000000000000000000000000000000000000..d5967a9c6adb17fab69bd0a06201f99d052153e8 Binary files /dev/null and b/IMG/icones_barre/guillemets-de.png differ diff --git a/ecrire/inc_barre.php3 b/ecrire/inc_barre.php3 index 5ae024461c90e6ebe2c49ef058c286515b7ed438..e8b36be00bd55055501c0d782249548c930e47ef 100644 --- a/ecrire/inc_barre.php3 +++ b/ecrire/inc_barre.php3 @@ -12,7 +12,7 @@ function test_barre() { if ($browser_name == '') verif_butineur(); 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) ) return true; @@ -47,14 +47,14 @@ function bouton_barre_racc($action, $img, $help, $formulaire, $texte) { } 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()) { $ret = afficher_script_barre(); $champ = "document.$formulaire.$texte"; $ret .= "<table cellpadding='0' cellspacing='0' border='0' 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++; // Italique, gras, intertitres @@ -86,11 +86,14 @@ function afficher_barre($formulaire='',$texte='', $forum=false) { $ret .= "</td>"; // 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++; - 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('«','»',$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('„','“',$champ)", "guillemets-de.png", _T('barre_guillemets_de'), $formulaire, $texte); + } else { $ret .= bouton_barre_racc ("javascript:barre_raccourci('“','”',$champ)", "guillemets-simples.png", _T('barre_guillemets_simples'), $formulaire, $texte); } @@ -109,7 +112,7 @@ function afficher_barre($formulaire='',$texte='', $forum=false) { $ret .= "<td> </td>"; $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++; $ret .= " "; $ret .= aide("raccourcis"); diff --git a/ecrire/lang/spip_fr.php3 b/ecrire/lang/spip_fr.php3 index 0bbb2887b690e34dddd62b1242b62dbbfbb34e78..cc48641b39f8d7b4d14bcca2d81da08e3a14c117 100644 --- a/ecrire/lang/spip_fr.php3 +++ b/ecrire/lang/spip_fr.php3 @@ -85,7 +85,7 @@ $GLOBALS['i18n_spip_fr'] = array( 'barre_note' => 'Transformer en [[Note de bas de page]]', 'barre_quote' => '<quote>Citer un message</quote>', 'barre_guillemets' => 'Entourer de « guillemets français »', -'barre_guillemets_simples' => 'Entourer de “guillemets”', +'barre_guillemets_de' => 'Entourer de „guillemets“', 'barre_a_accent_grave' => 'Insérer un A accent grave majuscule', 'barre_e_accent_aigu' => 'Insérer un E accent aigu majuscule', 'barre_eo' => 'Insérer un E dans l\'O', diff --git a/ecrire/spip_style.php3 b/ecrire/spip_style.php3 index 4a3d5021821263a243829e4b632df07fcbf5a52a..5ba95d8cf1e1b21782b7bd9fd262fa16a6b2f17c 100644 --- a/ecrire/spip_style.php3 +++ b/ecrire/spip_style.php3 @@ -139,13 +139,15 @@ a.icone:hover { text-decoration: none; } a.spip_barre { border: 0px solid #666666; padding: 4px; - margin-right: 3px; + margin-right: 1px; + margin-left: 1px; background: url(img_pack/pave-gris-16.png); } a.spip_barre:hover { border: 0px solid #666666; padding: 4px; - margin-right: 3px; + margin-right: 1px; + margin-left: 1px; background: url(img_pack/pave-blanc-16.png); }