Browse Source

porte_plume : on renomme le module des chaines de langue pour qu'il puisse etre mange par salvatore (barre_outils_... => barreoutils_...).

3.0
denisb@laposte.net 12 years ago
parent
commit
35920457fc
  1. 12
      .gitattributes
  2. 62
      barre_outils/edition.php
  3. 12
      formulaires/configurer_porte_plume.html
  4. 2
      formulaires/configurer_porte_plume.php
  5. 0
      lang/barreoutils_ar.php
  6. 0
      lang/barreoutils_de.php
  7. 0
      lang/barreoutils_en.php
  8. 0
      lang/barreoutils_es.php
  9. 0
      lang/barreoutils_fr.php
  10. 0
      lang/barreoutils_it.php
  11. 2
      plugin.xml
  12. 4
      porte_plume_start.js.html
  13. 6
      tests/barre_outil_markitup.php

12
.gitattributes vendored

@ -51,12 +51,12 @@ javascript/jquery.markitup_pour_spip.js -text
javascript/jquery.previsu_spip.js -text
javascript/porte_plume_forcer_hauteur.js -text
javascript/xregexp-min.js -text
lang/barre_outils_ar.php -text
lang/barre_outils_de.php -text
lang/barre_outils_en.php -text
lang/barre_outils_es.php -text
lang/barre_outils_fr.php -text
lang/barre_outils_it.php -text
lang/barreoutils_ar.php -text
lang/barreoutils_de.php -text
lang/barreoutils_en.php -text
lang/barreoutils_es.php -text
lang/barreoutils_fr.php -text
lang/barreoutils_it.php -text
markitup/readme.txt -text
markitup/templates/preview.css -text
markitup/templates/preview.html -text

62
barre_outils/edition.php

@ -25,7 +25,7 @@ function barre_outils_edition(){
// H1 - {{{
array(
"id" => 'header1',
"name" => _T('barre_outils:barre_intertitre'),
"name" => _T('barreoutils:barre_intertitre'),
"key" => "H",
"className" => "outil_header1",
"openWith" => "\n{{{",
@ -36,7 +36,7 @@ function barre_outils_edition(){
// Bold - {{
array(
"id" => 'bold',
"name" => _T('barre_outils:barre_gras'),
"name" => _T('barreoutils:barre_gras'),
"key" => "B",
"className" => "outil_bold",
"replaceWith" => "function(h){ return espace_si_accolade(h, '{{', '}}');}",
@ -48,7 +48,7 @@ function barre_outils_edition(){
// Italic - {
array(
"id" => 'italic',
"name" => _T('barre_outils:barre_italic'),
"name" => _T('barreoutils:barre_italic'),
"key" => "I",
"className" => "outil_italic",
"replaceWith" => "function(h){ return espace_si_accolade(h, '{', '}');}",
@ -61,7 +61,7 @@ function barre_outils_edition(){
// montrer une suppression
array(
"id" => 'stroke_through',
"name" => _T('barre_outils:barre_barre'), // :-)
"name" => _T('barreoutils:barre_barre'), // :-)
"className" => "outil_stroke_through",
"openWith" => "<del>",
"closeWith" => "</del>",
@ -72,7 +72,7 @@ function barre_outils_edition(){
// listes -*
array(
"id" => 'liste_ul',
"name" => _T('barre_outils:barre_liste_ul'),
"name" => _T('barreoutils:barre_liste_ul'),
"className" => "outil_liste_ul",
"replaceWith" => "function(h){ return outil_liste(h, '*');}",
"display" => true,
@ -82,7 +82,7 @@ function barre_outils_edition(){
// liste -#
array(
"id" => 'liste_ol',
"name" => _T('barre_outils:barre_liste_ol'),
"name" => _T('barreoutils:barre_liste_ol'),
"className" => "outil_liste_ol",
"replaceWith" => "function(h){ return outil_liste(h, '#');}",
"display" => true,
@ -92,7 +92,7 @@ function barre_outils_edition(){
// desindenter
array(
"id" => 'desindenter',
"name" => _T('barre_outils:barre_desindenter'),
"name" => _T('barreoutils:barre_desindenter'),
"className" => "outil_desindenter",
"replaceWith" => "function(h){return outil_desindenter(h);}",
"display" => true,
@ -102,7 +102,7 @@ function barre_outils_edition(){
// indenter
array(
"id" => 'indenter',
"name" => _T('barre_outils:barre_indenter'),
"name" => _T('barreoutils:barre_indenter'),
"className" => "outil_indenter",
"replaceWith" => "function(h){return outil_indenter(h);}",
"display" => true,
@ -123,17 +123,17 @@ function barre_outils_edition(){
// lien spip
array(
"id" => 'link',
"name" => _T('barre_outils:barre_lien'),
"name" => _T('barreoutils:barre_lien'),
"key" => "L",
"className" => "outil_link",
"openWith" => "[",
"closeWith" => "->[!["._T('barre_outils:barre_lien_input')."]!]]",
"closeWith" => "->[!["._T('barreoutils:barre_lien_input')."]!]]",
"display" => true,
),
// note en bas de page spip
array(
"id" => 'notes',
"name" => _T('barre_outils:barre_note'),
"name" => _T('barreoutils:barre_note'),
"className" => "outil_notes",
"openWith" => "[[",
"closeWith" => "]]",
@ -153,7 +153,7 @@ function barre_outils_edition(){
// (affichee dans forum)
array(
"id" => 'quote',
"name" => _T('barre_outils:barre_quote'),
"name" => _T('barreoutils:barre_quote'),
"key" => "Q",
"className" => "outil_quote",
"openWith" => "\n<quote>",
@ -164,7 +164,7 @@ function barre_outils_edition(){
// guillemets
array(
"id" => 'guillemets',
"name" => _T('barre_outils:barre_guillemets'),
"name" => _T('barreoutils:barre_guillemets'),
"className" => "outil_guillemets",
"openWith" => "&laquo;",
"closeWith" => "&raquo;",
@ -175,7 +175,7 @@ function barre_outils_edition(){
// guillemets internes
array(
"id" => 'guillemets_simples',
"name" => _T('barre_outils:barre_guillemets_simples'),
"name" => _T('barreoutils:barre_guillemets_simples'),
"className" => "outil_guillemets_simples",
"openWith" => "&ldquo;",
"closeWith" => "&rdquo;",
@ -186,7 +186,7 @@ function barre_outils_edition(){
// guillemets de
array(
"id" => 'guillemets_de',
"name" => _T('barre_outils:barre_guillemets'),
"name" => _T('barreoutils:barre_guillemets'),
"className" => "outil_guillemets_de",
"openWith" => "&bdquo;",
"closeWith" => "&ldquo;",
@ -197,7 +197,7 @@ function barre_outils_edition(){
// guillemets de, simples
array(
"id" => 'guillemets_de_simples',
"name" => _T('barre_outils:barre_guillemets_simples'),
"name" => _T('barreoutils:barre_guillemets_simples'),
"className" => "outil_guillemets_de_simples",
"openWith" => "&sbquo;",
"closeWith" => "&lsquo;",
@ -208,7 +208,7 @@ function barre_outils_edition(){
// guillemets autres langues
array(
"id" => 'guillemets_autres',
"name" => _T('barre_outils:barre_guillemets'),
"name" => _T('barreoutils:barre_guillemets'),
"className" => "outil_guillemets_simples",
"openWith" => "&ldquo;",
"closeWith" => "&rdquo;",
@ -219,7 +219,7 @@ function barre_outils_edition(){
// guillemets simples, autres langues
array(
"id" => 'guillemets_autres_simples',
"name" => _T('barre_outils:barre_guillemets_simples'),
"name" => _T('barreoutils:barre_guillemets_simples'),
"className" => "outil_guillemets_uniques",
"openWith" => "&lsquo;",
"closeWith" => "&rsquo;",
@ -237,7 +237,7 @@ function barre_outils_edition(){
// icones clavier
array(
"id" => 'grpCaracteres',
"name" => _T('barre_outils:barre_inserer_caracteres'),
"name" => _T('barreoutils:barre_inserer_caracteres'),
"className" => 'outil_caracteres',
"display" => true,
@ -245,7 +245,7 @@ function barre_outils_edition(){
// A majuscule accent grave
array(
"id" => 'A_grave',
"name" => _T('barre_outils:barre_a_accent_grave'),
"name" => _T('barreoutils:barre_a_accent_grave'),
"className" => "outil_a_maj_grave",
"replaceWith" => "&Agrave;",
"display" => true,
@ -254,7 +254,7 @@ function barre_outils_edition(){
// E majuscule accent aigu
array(
"id" => 'E_aigu',
"name" => _T('barre_outils:barre_e_accent_aigu'),
"name" => _T('barreoutils:barre_e_accent_aigu'),
"className" => "outil_e_maj_aigu",
"replaceWith" => "&Eacute;",
"display" => true,
@ -263,7 +263,7 @@ function barre_outils_edition(){
// E majuscule accent grave
array(
"id" => 'E_grave',
"name" => _T('barre_outils:barre_e_accent_grave'),
"name" => _T('barreoutils:barre_e_accent_grave'),
"className" => "outil_e_maj_grave",
"replaceWith" => "&Egrave;",
"display" => true,
@ -272,7 +272,7 @@ function barre_outils_edition(){
// e dans le a
array(
"id" => 'aelig',
"name" => _T('barre_outils:barre_ea'),
"name" => _T('barreoutils:barre_ea'),
"className" => "outil_aelig",
"replaceWith" => "&aelig;",
"display" => true,
@ -281,7 +281,7 @@ function barre_outils_edition(){
// e dans le a majuscule
array(
"id" => 'AElig',
"name" => _T('barre_outils:barre_ea_maj'),
"name" => _T('barreoutils:barre_ea_maj'),
"className" => "outil_aelig_maj",
"replaceWith" => "&AElig;",
"display" => true,
@ -290,7 +290,7 @@ function barre_outils_edition(){
// oe
array(
"id" => 'oe',
"name" => _T('barre_outils:barre_eo'),
"name" => _T('barreoutils:barre_eo'),
"className" => "outil_oe",
"replaceWith" => "&oelig;",
"display" => true,
@ -299,7 +299,7 @@ function barre_outils_edition(){
// OE
array(
"id" => 'OE',
"name" => _T('barre_outils:barre_eo_maj'),
"name" => _T('barreoutils:barre_eo_maj'),
"className" => "outil_oe_maj",
"replaceWith" => "&OElig;",
"display" => true,
@ -308,7 +308,7 @@ function barre_outils_edition(){
// c cedille majuscule
array(
"id" => 'Ccedil',
"name" => _T('barre_outils:barre_c_cedille_maj'),
"name" => _T('barreoutils:barre_c_cedille_maj'),
"className" => "outil_ccedil_maj",
"replaceWith" => "&Ccedil;",
"display" => true,
@ -317,7 +317,7 @@ function barre_outils_edition(){
// Transformation en majuscule
array(
"id" => 'uppercase',
"name" => _T('barre_outils:barre_gestion_cr_changercassemajuscules'),
"name" => _T('barreoutils:barre_gestion_cr_changercassemajuscules'),
"className" => "outil_uppercase",
"replaceWith" => 'function(markitup) { return markitup.selection.toUpperCase() }',
"display" => true,
@ -326,7 +326,7 @@ function barre_outils_edition(){
// Transformation en minuscule
array(
"id" => 'lowercase',
"name" => _T('barre_outils:barre_gestion_cr_changercasseminuscules'),
"name" => _T('barreoutils:barre_gestion_cr_changercasseminuscules'),
"className" => "outil_lowercase",
"replaceWith" => 'function(markitup) { return markitup.selection.toLowerCase() }',
"display" => true,
@ -346,7 +346,7 @@ function barre_outils_edition(){
// clean
array(
"id" => 'clean',
"name" => _T('barre_outils:barre_clean'),
"name" => _T('barreoutils:barre_clean'),
"className" => "outil_clean",
"replaceWith" => 'function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") }',
"display" => true,
@ -354,7 +354,7 @@ function barre_outils_edition(){
// preview
array(
"id" => 'preview',
"name" => _T('barre_outils:barre_preview'),
"name" => _T('barreoutils:barre_preview'),
"className" => "outil_preview",
"call" => "preview",
"display" => true,

12
formulaires/configurer_porte_plume.html

@ -1,5 +1,5 @@
<div class='formulaire_spip formulaire_configurer formulaire_configurer_#FORM' id='formulaire_configurer_#FORM'>
<h3 class='titrem'>[(#CHEMIN{images/porte-plume-24.png}|balise_img{'',cadre-icone})]<:barre_outils:info_porte_plume_titre:></h3>
<h3 class='titrem'>[(#CHEMIN{images/porte-plume-24.png}|balise_img{'',cadre-icone})]<:barreoutils:info_porte_plume_titre:></h3>
[<p class="reponse_formulaire reponse_formulaire_ok">(#ENV*{message_ok})</p>]
[<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>]
@ -8,17 +8,17 @@
[(#ACTION_FORMULAIRE{#ENV{action}})]
<ul>
<li class='configurer_barre_outils_public[ (#ENV**{erreurs}|table_valeur{barre_outils_public}|oui)erreur]'>
<label><:barre_outils:info_barre_outils_public:></label>
<p class='explication'><:barre_outils:explication_barre_outils_public:></p>
<p class='explication'><:barre_outils:explication_barre_outils_public_2:></p>
<label><:barreoutils:info_barre_outils_public:></label>
<p class='explication'><:barreoutils:explication_barre_outils_public:></p>
<p class='explication'><:barreoutils:explication_barre_outils_public_2:></p>
[<span class='erreur_message'>(#ENV**{erreurs}|table_valeur{barre_outils_public})</span>]
<div class='choix'>
<input class='radio' type="radio" name="barre_outils_public" value='oui'[ (#ENV{barre_outils_public}|!={non}|oui)checked="checked"] id="barre_outils_public_oui"/>
<label for="barre_outils_public_oui"><:barre_outils:label_barre_outils_public_oui:></label>
<label for="barre_outils_public_oui"><:barreoutils:label_barre_outils_public_oui:></label>
</div>
<div class='choix'>
<input class='radio' type="radio" name="barre_outils_public" value='non'[ (#ENV{barre_outils_public}|=={non}|oui)checked="checked"] id="barre_outils_public_non"/>
<label for="barre_outils_public_non"><:barre_outils:label_barre_outils_public_non:></label>
<label for="barre_outils_public_non"><:barreoutils:label_barre_outils_public_non:></label>
</div>
</li>
</ul>

2
formulaires/configurer_porte_plume.php

@ -26,7 +26,7 @@ function formulaires_configurer_porte_plume_traiter_dist(){
ecrire_config('barre_outils_public', _request('barre_outils_public'));
}
return array('message_ok'=>_T('barre_outils:config_info_enregistree'));
return array('message_ok'=>_T('barreoutils:config_info_enregistree'));
}
?>

0
lang/barre_outils_ar.php → lang/barreoutils_ar.php

0
lang/barre_outils_de.php → lang/barreoutils_de.php

0
lang/barre_outils_en.php → lang/barreoutils_en.php

0
lang/barre_outils_es.php → lang/barreoutils_es.php

0
lang/barre_outils_fr.php → lang/barreoutils_fr.php

0
lang/barre_outils_it.php → lang/barreoutils_it.php

2
plugin.xml

@ -71,5 +71,5 @@ _ Der Federhalter ist eine erweiterbare Werkzeugleiste f&#252;r SPIP auf Grundla
<necessite id="SPIP" version="[2.2.0-dev;]" />
<categorie>edition</categorie>
<traduire gestionnaire="salvatore" module="barre_outils" reference="fr" />
<traduire gestionnaire="salvatore" module="barreoutils" reference="fr" />
</plugin>

4
porte_plume_start.js.html

@ -27,8 +27,8 @@ $.fn.barre_outils = function(nom, settings) {
$.fn.barre_previsualisation = function(settings) {
options = {
previewParserPath:"index.php?action=porte_plume_previsu", // ici une url relative pour prive/public
textEditer:"<:barre_outils:editer:>",
textVoir:"<:barre_outils:voir:>"
textEditer:"<:barreoutils:editer:>",
textVoir:"<:barreoutils:voir:>"
};
$.extend(options, settings);

6
tests/barre_outil_markitup.php

@ -23,7 +23,7 @@ class Test_barre_outil_markitup extends SpipTest{
// H1 - {{{
array(
"id" => 'header1',
"name" => _T('barre_outils:barre_intertitre'),
"name" => _T('barreoutils:barre_intertitre'),
"key" => "H",
"className" => "outil_header1",
"openWith" => "{{{",
@ -33,7 +33,7 @@ class Test_barre_outil_markitup extends SpipTest{
$p = $this->baseParamsBarre;
$p['markupSet'][1] = array(
"id" => 'couleurs',
"name" => _T('barre_outils:barre_couleur'),
"name" => _T('barreoutils:barre_couleur'),
"key" => "C",
"className" => "outil_couleur",
"openWith" => '[color=[![Color]!]]',
@ -297,7 +297,7 @@ class Test_barre_outil_markitup extends SpipTest{
$b = new Barre_outils($this->baseParamsBarre);
$clean = array(
"id" => 'clean',
"name" => _T('barre_outils:barre_clean'),
"name" => _T('barreoutils:barre_clean'),
"className" => "outil_clean",
// function doit etre echappe
"replaceWith" => 'function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") }',

Loading…
Cancel
Save