Completed
Push — master ( 3caaa9...7e8601 )
by cam
01:42
created
prive/formulaires/configurer_preferences.php 1 patch
Indentation   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
  **/
22 22
 
23 23
 if (!defined('_ECRIRE_INC_VERSION')) {
24
-	return;
24
+    return;
25 25
 }
26 26
 
27 27
 /**
@@ -31,28 +31,28 @@  discard block
 block discarded – undo
31 31
  *     Environnement du formulaire
32 32
  **/
33 33
 function formulaires_configurer_preferences_charger_dist() {
34
-	// travailler sur des meta fraiches
35
-	include_spip('inc/meta');
36
-	lire_metas();
34
+    // travailler sur des meta fraiches
35
+    include_spip('inc/meta');
36
+    lire_metas();
37 37
 
38
-	$valeurs = [];
39
-	$valeurs['display_navigation'] = $GLOBALS['visiteur_session']['prefs']['display_navigation'] ?? 'navigation_avec_icones';
40
-	$valeurs['display_outils'] = $GLOBALS['visiteur_session']['prefs']['display_outils'] ?? 'oui';
41
-	$valeurs['display'] = (isset($GLOBALS['visiteur_session']['prefs']['display']) and $GLOBALS['visiteur_session']['prefs']['display'] > 0) ? $GLOBALS['visiteur_session']['prefs']['display'] : 2;
42
-	$valeurs['couleur'] = (isset($GLOBALS['visiteur_session']['prefs']['couleur']) and $GLOBALS['visiteur_session']['prefs']['couleur'] > 0) ? $GLOBALS['visiteur_session']['prefs']['couleur'] : 1;
38
+    $valeurs = [];
39
+    $valeurs['display_navigation'] = $GLOBALS['visiteur_session']['prefs']['display_navigation'] ?? 'navigation_avec_icones';
40
+    $valeurs['display_outils'] = $GLOBALS['visiteur_session']['prefs']['display_outils'] ?? 'oui';
41
+    $valeurs['display'] = (isset($GLOBALS['visiteur_session']['prefs']['display']) and $GLOBALS['visiteur_session']['prefs']['display'] > 0) ? $GLOBALS['visiteur_session']['prefs']['display'] : 2;
42
+    $valeurs['couleur'] = (isset($GLOBALS['visiteur_session']['prefs']['couleur']) and $GLOBALS['visiteur_session']['prefs']['couleur'] > 0) ? $GLOBALS['visiteur_session']['prefs']['couleur'] : 1;
43 43
 
44
-	$couleurs = charger_fonction('couleurs', 'inc');
45
-	$les_couleurs = $couleurs();
46
-	foreach ($les_couleurs as $k => $c) {
47
-		$valeurs['_couleurs_url'][$k] = generer_url_public('style_prive.css', 'ltr='
48
-			. $GLOBALS['spip_lang_left'] . '&'
49
-			. $couleurs($k));
50
-		$valeurs['couleurs'][$k] = $c;
51
-	}
44
+    $couleurs = charger_fonction('couleurs', 'inc');
45
+    $les_couleurs = $couleurs();
46
+    foreach ($les_couleurs as $k => $c) {
47
+        $valeurs['_couleurs_url'][$k] = generer_url_public('style_prive.css', 'ltr='
48
+            . $GLOBALS['spip_lang_left'] . '&'
49
+            . $couleurs($k));
50
+        $valeurs['couleurs'][$k] = $c;
51
+    }
52 52
 
53
-	$valeurs['imessage'] = $GLOBALS['visiteur_session']['imessage'];
53
+    $valeurs['imessage'] = $GLOBALS['visiteur_session']['imessage'];
54 54
 
55
-	return $valeurs;
55
+    return $valeurs;
56 56
 }
57 57
 
58 58
 /**
@@ -63,36 +63,36 @@  discard block
 block discarded – undo
63 63
  **/
64 64
 function formulaires_configurer_preferences_traiter_dist() {
65 65
 
66
-	if ($couleur = _request('couleur')) {
67
-		$couleurs = charger_fonction('couleurs', 'inc');
68
-		$les_couleurs = $couleurs([], true);
69
-		if (isset($les_couleurs[$couleur])) {
70
-			$GLOBALS['visiteur_session']['prefs']['couleur'] = $couleur;
71
-		}
72
-	}
73
-	if ($display = intval(_request('display'))) {
74
-		$GLOBALS['visiteur_session']['prefs']['display'] = $display;
75
-	}
76
-	if (
77
-		$display_navigation = _request('display_navigation')
78
-		and in_array($display_navigation, ['navigation_sans_icone', 'navigation_avec_icones'])
79
-	) {
80
-		$GLOBALS['visiteur_session']['prefs']['display_navigation'] = $display_navigation;
81
-	}
82
-	if (!is_null($display_outils = _request('display_outils'))) {
83
-		$GLOBALS['visiteur_session']['prefs']['display_outils'] = ($display_outils ? 'oui' : '');
84
-	}
66
+    if ($couleur = _request('couleur')) {
67
+        $couleurs = charger_fonction('couleurs', 'inc');
68
+        $les_couleurs = $couleurs([], true);
69
+        if (isset($les_couleurs[$couleur])) {
70
+            $GLOBALS['visiteur_session']['prefs']['couleur'] = $couleur;
71
+        }
72
+    }
73
+    if ($display = intval(_request('display'))) {
74
+        $GLOBALS['visiteur_session']['prefs']['display'] = $display;
75
+    }
76
+    if (
77
+        $display_navigation = _request('display_navigation')
78
+        and in_array($display_navigation, ['navigation_sans_icone', 'navigation_avec_icones'])
79
+    ) {
80
+        $GLOBALS['visiteur_session']['prefs']['display_navigation'] = $display_navigation;
81
+    }
82
+    if (!is_null($display_outils = _request('display_outils'))) {
83
+        $GLOBALS['visiteur_session']['prefs']['display_outils'] = ($display_outils ? 'oui' : '');
84
+    }
85 85
 
86
-	if (intval($GLOBALS['visiteur_session']['id_auteur'])) {
87
-		include_spip('action/editer_auteur');
88
-		$c = ['prefs' => serialize($GLOBALS['visiteur_session']['prefs'])];
86
+    if (intval($GLOBALS['visiteur_session']['id_auteur'])) {
87
+        include_spip('action/editer_auteur');
88
+        $c = ['prefs' => serialize($GLOBALS['visiteur_session']['prefs'])];
89 89
 
90
-		if ($imessage = _request('imessage') and in_array($imessage, ['oui', 'non'])) {
91
-			$c['imessage'] = $imessage;
92
-		}
90
+        if ($imessage = _request('imessage') and in_array($imessage, ['oui', 'non'])) {
91
+            $c['imessage'] = $imessage;
92
+        }
93 93
 
94
-		auteur_modifier($GLOBALS['visiteur_session']['id_auteur'], $c);
95
-	}
94
+        auteur_modifier($GLOBALS['visiteur_session']['id_auteur'], $c);
95
+    }
96 96
 
97
-	return ['message_ok' => _T('config_info_enregistree'), 'editable' => true];
97
+    return ['message_ok' => _T('config_info_enregistree'), 'editable' => true];
98 98
 }
Please login to merge, or discard this patch.
prive/formulaires/configurer_identite.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -11,56 +11,56 @@
 block discarded – undo
11 11
 \***************************************************************************/
12 12
 
13 13
 if (!defined('_ECRIRE_INC_VERSION')) {
14
-	return;
14
+    return;
15 15
 }
16 16
 
17 17
 function formulaires_configurer_identite_charger_dist() {
18
-	// travailler sur des meta fraiches
19
-	include_spip('inc/meta');
20
-	lire_metas();
18
+    // travailler sur des meta fraiches
19
+    include_spip('inc/meta');
20
+    lire_metas();
21 21
 
22
-	$valeurs = [];
23
-	foreach (['nom_site', 'adresse_site', 'slogan_site', 'descriptif_site', 'email_webmaster'] as $k) {
24
-		$valeurs[$k] = $GLOBALS['meta'][$k] ?? '';
25
-	}
22
+    $valeurs = [];
23
+    foreach (['nom_site', 'adresse_site', 'slogan_site', 'descriptif_site', 'email_webmaster'] as $k) {
24
+        $valeurs[$k] = $GLOBALS['meta'][$k] ?? '';
25
+    }
26 26
 
27
-	return $valeurs;
27
+    return $valeurs;
28 28
 }
29 29
 
30 30
 function formulaires_configurer_identite_verifier_dist() {
31
-	$erreurs = [];
31
+    $erreurs = [];
32 32
 
33
-	// adresse_site est obligatoire mais rempli automatiquement si absent !
34
-	foreach (['nom_site'/*,'adresse_site'*/] as $obli) {
35
-		if (!_request($obli)) {
36
-			$erreurs[$obli] = _T('info_obligatoire');
37
-		}
38
-	}
33
+    // adresse_site est obligatoire mais rempli automatiquement si absent !
34
+    foreach (['nom_site'/*,'adresse_site'*/] as $obli) {
35
+        if (!_request($obli)) {
36
+            $erreurs[$obli] = _T('info_obligatoire');
37
+        }
38
+    }
39 39
 
40
-	if ($email = _request('email_webmaster') and !email_valide($email)) {
41
-		$erreurs['email_webmaster'] = _T('info_email_invalide');
42
-	}
40
+    if ($email = _request('email_webmaster') and !email_valide($email)) {
41
+        $erreurs['email_webmaster'] = _T('info_email_invalide');
42
+    }
43 43
 
44
-	return $erreurs;
44
+    return $erreurs;
45 45
 }
46 46
 
47 47
 function formulaires_configurer_identite_traiter_dist() {
48
-	include_spip('inc/config');
49
-	$adresse_site = $GLOBALS['meta']['adresse_site'] ?? '';
50
-	if (_request('adresse_site') != $adresse_site) {
51
-		refuser_traiter_formulaire_ajax();
52
-	}
48
+    include_spip('inc/config');
49
+    $adresse_site = $GLOBALS['meta']['adresse_site'] ?? '';
50
+    if (_request('adresse_site') != $adresse_site) {
51
+        refuser_traiter_formulaire_ajax();
52
+    }
53 53
 
54
-	set_request('adresse_site', appliquer_adresse_site(_request('adresse_site')));
54
+    set_request('adresse_site', appliquer_adresse_site(_request('adresse_site')));
55 55
 
56
-	include_spip('inc/meta');
57
-	foreach (['nom_site', 'slogan_site', 'descriptif_site', 'email_webmaster'] as $k) {
58
-		ecrire_meta($k, _request($k));
59
-	}
56
+    include_spip('inc/meta');
57
+    foreach (['nom_site', 'slogan_site', 'descriptif_site', 'email_webmaster'] as $k) {
58
+        ecrire_meta($k, _request($k));
59
+    }
60 60
 
61
-	include_spip('inc/texte_mini');
62
-	$reload = texte_script(couper(_request('nom_site'), 35));
63
-	$reload = "<script type='text/javascript'>if (window.jQuery) jQuery('#bando_identite .nom_site_spip .nom').html('$reload');</script>";
61
+    include_spip('inc/texte_mini');
62
+    $reload = texte_script(couper(_request('nom_site'), 35));
63
+    $reload = "<script type='text/javascript'>if (window.jQuery) jQuery('#bando_identite .nom_site_spip .nom').html('$reload');</script>";
64 64
 
65
-	return ['message_ok' => _T('config_info_enregistree') . $reload, 'editable' => true];
65
+    return ['message_ok' => _T('config_info_enregistree') . $reload, 'editable' => true];
66 66
 }
Please login to merge, or discard this patch.
prive/formulaires/editer_logo.php 1 patch
Indentation   +160 added lines, -160 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
  **/
31 31
 
32 32
 if (!defined('_ECRIRE_INC_VERSION')) {
33
-	return;
33
+    return;
34 34
 }
35 35
 
36 36
 global $logo_libelles;
@@ -49,91 +49,91 @@  discard block
 block discarded – undo
49 49
  * @return array               Variables d'environnement pour le fond
50 50
  */
51 51
 function formulaires_editer_logo_charger_dist($objet, $id_objet, $retour = '', $options = []) {
52
-	// pas dans une boucle ? formulaire pour le logo du site
53
-	// dans ce cas, il faut chercher un 'siteon0.ext'
54
-	if (!$objet) {
55
-		$objet = 'site';
56
-	}
52
+    // pas dans une boucle ? formulaire pour le logo du site
53
+    // dans ce cas, il faut chercher un 'siteon0.ext'
54
+    if (!$objet) {
55
+        $objet = 'site';
56
+    }
57 57
 
58
-	$objet = objet_type($objet);
59
-	$_id_objet = id_table_objet($objet);
58
+    $objet = objet_type($objet);
59
+    $_id_objet = id_table_objet($objet);
60 60
 
61
-	if (!is_array($options)) {
62
-		$options = unserialize($options);
63
-	}
64
-	$options = spip_sanitize_from_request($options, '*');
61
+    if (!is_array($options)) {
62
+        $options = unserialize($options);
63
+    }
64
+    $options = spip_sanitize_from_request($options, '*');
65 65
 
66
-	if (!isset($options['titre'])) {
67
-		$balise_img = chercher_filtre('balise_img');
68
-		$img = $balise_img(chemin_image('image-24.png'), '', 'cadre-icone');
69
-		$libelles = pipeline('libeller_logo', $GLOBALS['logo_libelles']);
70
-		$libelle = (($id_objet or $objet != 'rubrique') ? $objet : 'racine');
71
-		if (isset($libelles[$libelle])) {
72
-			$libelle = $libelles[$libelle];
73
-		} elseif ($libelle = objet_info($objet, 'texte_logo_objet')) {
74
-			$libelle = _T($libelle);
75
-		} else {
76
-			$libelle = _L('Logo');
77
-		}
78
-		switch ($objet) {
79
-			case 'article':
80
-				$libelle .= ' ' . aider('logoart');
81
-				break;
82
-			case 'breve':
83
-				$libelle .= ' ' . aider('breveslogo');
84
-				break;
85
-			case 'rubrique':
86
-				$libelle .= ' ' . aider('rublogo');
87
-				break;
88
-			default:
89
-				break;
90
-		}
66
+    if (!isset($options['titre'])) {
67
+        $balise_img = chercher_filtre('balise_img');
68
+        $img = $balise_img(chemin_image('image-24.png'), '', 'cadre-icone');
69
+        $libelles = pipeline('libeller_logo', $GLOBALS['logo_libelles']);
70
+        $libelle = (($id_objet or $objet != 'rubrique') ? $objet : 'racine');
71
+        if (isset($libelles[$libelle])) {
72
+            $libelle = $libelles[$libelle];
73
+        } elseif ($libelle = objet_info($objet, 'texte_logo_objet')) {
74
+            $libelle = _T($libelle);
75
+        } else {
76
+            $libelle = _L('Logo');
77
+        }
78
+        switch ($objet) {
79
+            case 'article':
80
+                $libelle .= ' ' . aider('logoart');
81
+                break;
82
+            case 'breve':
83
+                $libelle .= ' ' . aider('breveslogo');
84
+                break;
85
+            case 'rubrique':
86
+                $libelle .= ' ' . aider('rublogo');
87
+                break;
88
+            default:
89
+                break;
90
+        }
91 91
 
92
-		$options['titre'] = $img . $libelle;
93
-	}
94
-	if (!isset($options['editable'])) {
95
-		include_spip('inc/autoriser');
96
-		$options['editable'] = autoriser('iconifier', $objet, $id_objet);
97
-	}
92
+        $options['titre'] = $img . $libelle;
93
+    }
94
+    if (!isset($options['editable'])) {
95
+        include_spip('inc/autoriser');
96
+        $options['editable'] = autoriser('iconifier', $objet, $id_objet);
97
+    }
98 98
 
99
-	$res = [
100
-		'editable' => ($GLOBALS['meta']['activer_logos'] == 'oui' ? ' ' : '') && (!isset($options['editable']) or $options['editable']),
101
-		'logo_survol' => ($GLOBALS['meta']['activer_logos_survol'] == 'oui' ? ' ' : ''),
102
-		'objet' => $objet,
103
-		'id_objet' => $id_objet,
104
-		'_options' => $options,
105
-		'_show_upload_off' => '',
106
-	];
99
+    $res = [
100
+        'editable' => ($GLOBALS['meta']['activer_logos'] == 'oui' ? ' ' : '') && (!isset($options['editable']) or $options['editable']),
101
+        'logo_survol' => ($GLOBALS['meta']['activer_logos_survol'] == 'oui' ? ' ' : ''),
102
+        'objet' => $objet,
103
+        'id_objet' => $id_objet,
104
+        '_options' => $options,
105
+        '_show_upload_off' => '',
106
+    ];
107 107
 
108
-	// rechercher le logo de l'objet
109
-	// la fonction prend un parametre '_id_objet' etrange :
110
-	// le nom de la cle primaire (et non le nom de la table)
111
-	// ou directement le nom du raccourcis a chercher
112
-	$chercher_logo = charger_fonction('chercher_logo', 'inc');
113
-	$etats = $res['logo_survol'] ? ['on', 'off'] : ['on'];
114
-	foreach ($etats as $etat) {
115
-		$logo = $chercher_logo($id_objet, $_id_objet, $etat);
116
-		if ($logo) {
117
-			$res['logo_' . $etat] = $logo[0];
118
-		}
119
-	}
120
-	// pas de logo_on -> pas de formulaire pour le survol
121
-	if (!isset($res['logo_on'])) {
122
-		$res['logo_survol'] = '';
123
-	} elseif (!isset($res['logo_off']) and _request('logo_up')) {
124
-		$res['_show_upload_off'] = ' ';
125
-	}
108
+    // rechercher le logo de l'objet
109
+    // la fonction prend un parametre '_id_objet' etrange :
110
+    // le nom de la cle primaire (et non le nom de la table)
111
+    // ou directement le nom du raccourcis a chercher
112
+    $chercher_logo = charger_fonction('chercher_logo', 'inc');
113
+    $etats = $res['logo_survol'] ? ['on', 'off'] : ['on'];
114
+    foreach ($etats as $etat) {
115
+        $logo = $chercher_logo($id_objet, $_id_objet, $etat);
116
+        if ($logo) {
117
+            $res['logo_' . $etat] = $logo[0];
118
+        }
119
+    }
120
+    // pas de logo_on -> pas de formulaire pour le survol
121
+    if (!isset($res['logo_on'])) {
122
+        $res['logo_survol'] = '';
123
+    } elseif (!isset($res['logo_off']) and _request('logo_up')) {
124
+        $res['_show_upload_off'] = ' ';
125
+    }
126 126
 
127
-	// si le logo n'est pas editable et qu'il n'y en a pas, on affiche pas du tout le formulaire
128
-	if (
129
-		!$res['editable']
130
-		and !isset($res['logo_off'])
131
-		and !isset($res['logo_on'])
132
-	) {
133
-		return false;
134
-	}
127
+    // si le logo n'est pas editable et qu'il n'y en a pas, on affiche pas du tout le formulaire
128
+    if (
129
+        !$res['editable']
130
+        and !isset($res['logo_off'])
131
+        and !isset($res['logo_on'])
132
+    ) {
133
+        return false;
134
+    }
135 135
 
136
-	return $res;
136
+    return $res;
137 137
 }
138 138
 
139 139
 /**
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
  * @return string              Hash du formulaire
148 148
  */
149 149
 function formulaires_editer_logo_identifier_dist($objet, $id_objet, $retour = '', $options = []) {
150
-	return serialize([$objet, $id_objet]);
150
+    return serialize([$objet, $id_objet]);
151 151
 }
152 152
 
153 153
 /**
@@ -163,31 +163,31 @@  discard block
 block discarded – undo
163 163
  * @return array               Erreurs du formulaire
164 164
  */
165 165
 function formulaires_editer_logo_verifier_dist($objet, $id_objet, $retour = '', $options = []) {
166
-	$erreurs = [];
167
-	// verifier les extensions
168
-	$sources = formulaire_editer_logo_get_sources();
169
-	include_spip('action/editer_logo');
170
-	$extensions_possibles = $GLOBALS['formats_logos'];
171
-	if (in_array('jpg', $extensions_possibles)) {
172
-		$extensions_possibles[] = 'jpeg';
173
-	}
174
-	foreach ($sources as $etat => $file) {
175
-		// seulement si une reception correcte a eu lieu
176
-		if ($file and $file['error'] == 0) {
177
-			if (
178
-				!in_array(
179
-					strtolower(pathinfo($file['name'], PATHINFO_EXTENSION)),
180
-					$extensions_possibles
181
-				)
182
-			) {
183
-				$erreurs['logo_' . $etat] = _L('Extension non reconnue');
184
-			}
185
-		} elseif ($file and $file['error'] != 0 and isset($file['msg'])) {
186
-			$erreurs['message_erreur'] = $file['msg'];
187
-		}
188
-	}
166
+    $erreurs = [];
167
+    // verifier les extensions
168
+    $sources = formulaire_editer_logo_get_sources();
169
+    include_spip('action/editer_logo');
170
+    $extensions_possibles = $GLOBALS['formats_logos'];
171
+    if (in_array('jpg', $extensions_possibles)) {
172
+        $extensions_possibles[] = 'jpeg';
173
+    }
174
+    foreach ($sources as $etat => $file) {
175
+        // seulement si une reception correcte a eu lieu
176
+        if ($file and $file['error'] == 0) {
177
+            if (
178
+                !in_array(
179
+                    strtolower(pathinfo($file['name'], PATHINFO_EXTENSION)),
180
+                    $extensions_possibles
181
+                )
182
+            ) {
183
+                $erreurs['logo_' . $etat] = _L('Extension non reconnue');
184
+            }
185
+        } elseif ($file and $file['error'] != 0 and isset($file['msg'])) {
186
+            $erreurs['message_erreur'] = $file['msg'];
187
+        }
188
+    }
189 189
 
190
-	return $erreurs;
190
+    return $erreurs;
191 191
 }
192 192
 
193 193
 /**
@@ -203,47 +203,47 @@  discard block
 block discarded – undo
203 203
  * @return array               Retour des traitements
204 204
  */
205 205
 function formulaires_editer_logo_traiter_dist($objet, $id_objet, $retour = '', $options = []) {
206
-	$res = ['editable' => ' '];
206
+    $res = ['editable' => ' '];
207 207
 
208
-	// pas dans une boucle ? formulaire pour le logo du site
209
-	// dans ce cas, il faut chercher un 'siteon0.ext'
210
-	if (!$objet) {
211
-		$objet = 'site';
212
-	}
208
+    // pas dans une boucle ? formulaire pour le logo du site
209
+    // dans ce cas, il faut chercher un 'siteon0.ext'
210
+    if (!$objet) {
211
+        $objet = 'site';
212
+    }
213 213
 
214
-	include_spip('action/editer_logo');
214
+    include_spip('action/editer_logo');
215 215
 
216
-	// effectuer la suppression si demandee d'un logo
217
-	$on = _request('supprimer_logo_on');
218
-	if ($on or _request('supprimer_logo_off')) {
219
-		logo_supprimer($objet, $id_objet, $on ? 'on' : 'off');
220
-		$res['message_ok'] = ''; // pas besoin de message : la validation est visuelle
221
-		set_request('logo_up', ' ');
222
-	} // sinon supprimer ancien logo puis copier le nouveau
223
-	else {
224
-		$sources = formulaire_editer_logo_get_sources();
225
-		foreach ($sources as $etat => $file) {
226
-			if ($file and $file['error'] == 0) {
227
-				if ($err = logo_modifier($objet, $id_objet, $etat, $file)) {
228
-					$res['message_erreur'] = $err;
229
-				} else {
230
-					$res['message_ok'] = '';
231
-				} // pas besoin de message : la validation est visuelle
232
-				set_request('logo_up', ' ');
233
-			}
234
-		}
235
-	}
216
+    // effectuer la suppression si demandee d'un logo
217
+    $on = _request('supprimer_logo_on');
218
+    if ($on or _request('supprimer_logo_off')) {
219
+        logo_supprimer($objet, $id_objet, $on ? 'on' : 'off');
220
+        $res['message_ok'] = ''; // pas besoin de message : la validation est visuelle
221
+        set_request('logo_up', ' ');
222
+    } // sinon supprimer ancien logo puis copier le nouveau
223
+    else {
224
+        $sources = formulaire_editer_logo_get_sources();
225
+        foreach ($sources as $etat => $file) {
226
+            if ($file and $file['error'] == 0) {
227
+                if ($err = logo_modifier($objet, $id_objet, $etat, $file)) {
228
+                    $res['message_erreur'] = $err;
229
+                } else {
230
+                    $res['message_ok'] = '';
231
+                } // pas besoin de message : la validation est visuelle
232
+                set_request('logo_up', ' ');
233
+            }
234
+        }
235
+    }
236 236
 
237
-	// Invalider les caches de l'objet
238
-	include_spip('inc/invalideur');
239
-	suivre_invalideur("id='$objet/$id_objet'");
237
+    // Invalider les caches de l'objet
238
+    include_spip('inc/invalideur');
239
+    suivre_invalideur("id='$objet/$id_objet'");
240 240
 
241 241
 
242
-	if ($retour) {
243
-		$res['redirect'] = $retour;
244
-	}
242
+    if ($retour) {
243
+        $res['redirect'] = $retour;
244
+    }
245 245
 
246
-	return $res;
246
+    return $res;
247 247
 }
248 248
 
249 249
 
@@ -255,29 +255,29 @@  discard block
 block discarded – undo
255 255
  *     Sources des fichiers dans les clés `on` ou `off`
256 256
  */
257 257
 function formulaire_editer_logo_get_sources() {
258
-	if (!$_FILES) {
259
-		$_FILES = $GLOBALS['HTTP_POST_FILES'] ?? [];
260
-	}
261
-	if (!is_array($_FILES)) {
262
-		return [];
263
-	}
258
+    if (!$_FILES) {
259
+        $_FILES = $GLOBALS['HTTP_POST_FILES'] ?? [];
260
+    }
261
+    if (!is_array($_FILES)) {
262
+        return [];
263
+    }
264 264
 
265
-	include_spip('inc/documents');
266
-	$sources = [];
267
-	foreach (['on', 'off'] as $etat) {
268
-		$logo = 'logo_' . $etat;
269
-		if (isset($_FILES[$logo])) {
270
-			if ($_FILES[$logo]['error'] == 0) {
271
-				$sources[$etat] = $_FILES[$logo];
272
-			} elseif ($_FILES[$logo]['error'] != 0) {
273
-				$msg = check_upload_error($_FILES[$logo]['error'], false, true);
274
-				if ($msg and is_string($msg)) {
275
-					$sources[$etat] = $_FILES[$logo];
276
-					$sources[$etat]['msg'] = $msg;
277
-				}
278
-			}
279
-		}
280
-	}
265
+    include_spip('inc/documents');
266
+    $sources = [];
267
+    foreach (['on', 'off'] as $etat) {
268
+        $logo = 'logo_' . $etat;
269
+        if (isset($_FILES[$logo])) {
270
+            if ($_FILES[$logo]['error'] == 0) {
271
+                $sources[$etat] = $_FILES[$logo];
272
+            } elseif ($_FILES[$logo]['error'] != 0) {
273
+                $msg = check_upload_error($_FILES[$logo]['error'], false, true);
274
+                if ($msg and is_string($msg)) {
275
+                    $sources[$etat] = $_FILES[$logo];
276
+                    $sources[$etat]['msg'] = $msg;
277
+                }
278
+            }
279
+        }
280
+    }
281 281
 
282
-	return $sources;
282
+    return $sources;
283 283
 }
Please login to merge, or discard this patch.
prive/formulaires/dater.php 1 patch
Indentation   +266 added lines, -266 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  **/
18 18
 
19 19
 if (!defined('_ECRIRE_INC_VERSION')) {
20
-	return;
20
+    return;
21 21
 }
22 22
 
23 23
 
@@ -45,136 +45,136 @@  discard block
 block discarded – undo
45 45
  **/
46 46
 function formulaires_dater_charger_dist($objet, $id_objet, $retour = '', $options = []) {
47 47
 
48
-	$jour = null;
49
-	$mois = null;
50
-	$annee = null;
51
-	$heure = null;
52
-	$minute = null;
53
-	$objet = objet_type($objet);
54
-	if (!$objet or !intval($id_objet)) {
55
-		return false;
56
-	}
57
-
58
-	if (!is_array($options)) {
59
-		$options = unserialize($options);
60
-	}
61
-
62
-	$_id_objet = id_table_objet($objet);
63
-	$table = table_objet($objet);
64
-	$trouver_table = charger_fonction('trouver_table', 'base');
65
-	$desc = $trouver_table($table);
66
-
67
-	if (!$desc) {
68
-		return false;
69
-	}
70
-
71
-	$champ_date = $desc['date'] ?: 'date';
72
-	if (isset($options['champ_date']) and $options['champ_date']) {
73
-		$champ_date = $options['champ_date'];
74
-	}
75
-	if (!isset($desc['field'][$champ_date])) {
76
-		return false;
77
-	}
78
-
79
-	$valeurs = [
80
-		'objet' => $objet,
81
-		'id_objet' => $id_objet,
82
-		'id' => $id_objet,
83
-	];
84
-
85
-
86
-	$select = "$champ_date as date";
87
-	$champ_date_redac = 'date_redac';
88
-	if (isset($options['champ_date_redac']) and $options['champ_date_redac']) {
89
-		$champ_date_redac = $options['champ_date_redac'];
90
-	}
91
-	if (isset($desc['field'][$champ_date_redac])) {
92
-		$select .= ",$champ_date_redac as date_redac";
93
-	}
94
-	if (isset($desc['field']['statut'])) {
95
-		$select .= ',statut';
96
-	}
97
-
98
-
99
-	$row = sql_fetsel($select, $desc['table'], "$_id_objet=" . intval($id_objet));
100
-	$statut = $row['statut'] ?? 'publie'; // pas de statut => publie
101
-
102
-	$valeurs['editable'] = autoriser('dater', $objet, $id_objet, null, ['statut' => $statut]);
103
-
104
-	$possedeDateRedac = false;
105
-
106
-	if (
107
-		isset($row['date_redac']) and
108
-		$regs = recup_date($row['date_redac'], false)
109
-	) {
110
-		$annee_redac = $regs[0];
111
-		$mois_redac = $regs[1];
112
-		$jour_redac = $regs[2];
113
-		$heure_redac = $regs[3];
114
-		$minute_redac = $regs[4];
115
-		$possedeDateRedac = true;
116
-		// attention : les vrai dates de l'annee 1 sont stockee avec +9000 => 9001
117
-		// mais reviennent ici en annee 1 par recup_date
118
-		// on verifie donc que le intval($row['date_redac']) qui ressort l'annee
119
-		// est bien lui aussi <=1 : dans ce cas c'est une date sql 'nulle' ou presque, selon
120
-		// le gestionnnaire sql utilise (0001-01-01 pour PG par exemple)
121
-		if (intval($row['date_redac']) <= 1 and ($annee_redac <= 1) and ($mois_redac <= 1) and ($jour_redac <= 1)) {
122
-			$possedeDateRedac = false;
123
-		}
124
-	} else {
125
-		$annee_redac = $mois_redac = $jour_redac = $heure_redac = $minute_redac = 0;
126
-	}
127
-
128
-	if ($regs = recup_date($row['date'], false)) {
129
-		$annee = $regs[0];
130
-		$mois = $regs[1];
131
-		$jour = $regs[2];
132
-		$heure = $regs[3];
133
-		$minute = $regs[4];
134
-	}
135
-
136
-	// attention, si la variable s'appelle date ou date_redac, le compilo va
137
-	// la normaliser, ce qu'on ne veut pas ici.
138
-	$valeurs['afficher_date_redac'] = ($possedeDateRedac ? $row['date_redac'] : '');
139
-	$valeurs['date_redac_jour'] = dater_formater_saisie_jour($jour_redac, $mois_redac, $annee_redac);
140
-	$valeurs['date_redac_heure'] = "$heure_redac:$minute_redac";
141
-
142
-	$valeurs['afficher_date'] = $row['date'];
143
-	$valeurs['date_jour'] = dater_formater_saisie_jour($jour, $mois, $annee);
144
-	$valeurs['date_heure'] = "$heure:$minute";
145
-
146
-	$valeurs['sans_redac'] = !$possedeDateRedac;
147
-
148
-	if (isset($options['date_redac'])) {
149
-		$valeurs['_editer_date_anterieure'] = $options['date_redac'];
150
-	} else {
151
-		$valeurs['_editer_date_anterieure'] = ($objet == 'article' and ($GLOBALS['meta']['articles_redac'] != 'non' or $possedeDateRedac));
152
-	}
153
-	$valeurs['_label_date'] = (($statut == 'publie') ?
154
-		_T('texte_date_publication_objet') : _T('texte_date_creation_objet'));
155
-	if (isset($options['label_date']) and $options['label_date']) {
156
-		$valeurs['_label_date'] = $options['label_date'];
157
-	}
158
-	if (isset($options['label_date_redac']) and $options['label_date_redac']) {
159
-		$valeurs['_label_date_redac'] = $options['label_date_redac'];
160
-	}
161
-	if (isset($options['texte_sans_date_redac']) and $options['texte_sans_date_redac']) {
162
-		$valeurs['_texte_sans_date_redac'] = $options['texte_sans_date_redac'];
163
-	}
164
-	if (isset($options['class']) and $options['class']) {
165
-		$valeurs['_class'] = $options['class'];
166
-	}
167
-
168
-	$valeurs['_saisie_en_cours'] = (_request('_saisie_en_cours') !== null or _request('date_jour') !== null);
169
-
170
-	// cas ou l'on ne peut pas dater mais on peut modifier la date de redac anterieure
171
-	// https://core.spip.net/issues/3494
172
-	$valeurs['_editer_date'] = $valeurs['editable'];
173
-	if ($valeurs['_editer_date_anterieure'] and !$valeurs['editable']) {
174
-		$valeurs['editable'] = autoriser('modifier', $objet, $id_objet);
175
-	}
176
-
177
-	return $valeurs;
48
+    $jour = null;
49
+    $mois = null;
50
+    $annee = null;
51
+    $heure = null;
52
+    $minute = null;
53
+    $objet = objet_type($objet);
54
+    if (!$objet or !intval($id_objet)) {
55
+        return false;
56
+    }
57
+
58
+    if (!is_array($options)) {
59
+        $options = unserialize($options);
60
+    }
61
+
62
+    $_id_objet = id_table_objet($objet);
63
+    $table = table_objet($objet);
64
+    $trouver_table = charger_fonction('trouver_table', 'base');
65
+    $desc = $trouver_table($table);
66
+
67
+    if (!$desc) {
68
+        return false;
69
+    }
70
+
71
+    $champ_date = $desc['date'] ?: 'date';
72
+    if (isset($options['champ_date']) and $options['champ_date']) {
73
+        $champ_date = $options['champ_date'];
74
+    }
75
+    if (!isset($desc['field'][$champ_date])) {
76
+        return false;
77
+    }
78
+
79
+    $valeurs = [
80
+        'objet' => $objet,
81
+        'id_objet' => $id_objet,
82
+        'id' => $id_objet,
83
+    ];
84
+
85
+
86
+    $select = "$champ_date as date";
87
+    $champ_date_redac = 'date_redac';
88
+    if (isset($options['champ_date_redac']) and $options['champ_date_redac']) {
89
+        $champ_date_redac = $options['champ_date_redac'];
90
+    }
91
+    if (isset($desc['field'][$champ_date_redac])) {
92
+        $select .= ",$champ_date_redac as date_redac";
93
+    }
94
+    if (isset($desc['field']['statut'])) {
95
+        $select .= ',statut';
96
+    }
97
+
98
+
99
+    $row = sql_fetsel($select, $desc['table'], "$_id_objet=" . intval($id_objet));
100
+    $statut = $row['statut'] ?? 'publie'; // pas de statut => publie
101
+
102
+    $valeurs['editable'] = autoriser('dater', $objet, $id_objet, null, ['statut' => $statut]);
103
+
104
+    $possedeDateRedac = false;
105
+
106
+    if (
107
+        isset($row['date_redac']) and
108
+        $regs = recup_date($row['date_redac'], false)
109
+    ) {
110
+        $annee_redac = $regs[0];
111
+        $mois_redac = $regs[1];
112
+        $jour_redac = $regs[2];
113
+        $heure_redac = $regs[3];
114
+        $minute_redac = $regs[4];
115
+        $possedeDateRedac = true;
116
+        // attention : les vrai dates de l'annee 1 sont stockee avec +9000 => 9001
117
+        // mais reviennent ici en annee 1 par recup_date
118
+        // on verifie donc que le intval($row['date_redac']) qui ressort l'annee
119
+        // est bien lui aussi <=1 : dans ce cas c'est une date sql 'nulle' ou presque, selon
120
+        // le gestionnnaire sql utilise (0001-01-01 pour PG par exemple)
121
+        if (intval($row['date_redac']) <= 1 and ($annee_redac <= 1) and ($mois_redac <= 1) and ($jour_redac <= 1)) {
122
+            $possedeDateRedac = false;
123
+        }
124
+    } else {
125
+        $annee_redac = $mois_redac = $jour_redac = $heure_redac = $minute_redac = 0;
126
+    }
127
+
128
+    if ($regs = recup_date($row['date'], false)) {
129
+        $annee = $regs[0];
130
+        $mois = $regs[1];
131
+        $jour = $regs[2];
132
+        $heure = $regs[3];
133
+        $minute = $regs[4];
134
+    }
135
+
136
+    // attention, si la variable s'appelle date ou date_redac, le compilo va
137
+    // la normaliser, ce qu'on ne veut pas ici.
138
+    $valeurs['afficher_date_redac'] = ($possedeDateRedac ? $row['date_redac'] : '');
139
+    $valeurs['date_redac_jour'] = dater_formater_saisie_jour($jour_redac, $mois_redac, $annee_redac);
140
+    $valeurs['date_redac_heure'] = "$heure_redac:$minute_redac";
141
+
142
+    $valeurs['afficher_date'] = $row['date'];
143
+    $valeurs['date_jour'] = dater_formater_saisie_jour($jour, $mois, $annee);
144
+    $valeurs['date_heure'] = "$heure:$minute";
145
+
146
+    $valeurs['sans_redac'] = !$possedeDateRedac;
147
+
148
+    if (isset($options['date_redac'])) {
149
+        $valeurs['_editer_date_anterieure'] = $options['date_redac'];
150
+    } else {
151
+        $valeurs['_editer_date_anterieure'] = ($objet == 'article' and ($GLOBALS['meta']['articles_redac'] != 'non' or $possedeDateRedac));
152
+    }
153
+    $valeurs['_label_date'] = (($statut == 'publie') ?
154
+        _T('texte_date_publication_objet') : _T('texte_date_creation_objet'));
155
+    if (isset($options['label_date']) and $options['label_date']) {
156
+        $valeurs['_label_date'] = $options['label_date'];
157
+    }
158
+    if (isset($options['label_date_redac']) and $options['label_date_redac']) {
159
+        $valeurs['_label_date_redac'] = $options['label_date_redac'];
160
+    }
161
+    if (isset($options['texte_sans_date_redac']) and $options['texte_sans_date_redac']) {
162
+        $valeurs['_texte_sans_date_redac'] = $options['texte_sans_date_redac'];
163
+    }
164
+    if (isset($options['class']) and $options['class']) {
165
+        $valeurs['_class'] = $options['class'];
166
+    }
167
+
168
+    $valeurs['_saisie_en_cours'] = (_request('_saisie_en_cours') !== null or _request('date_jour') !== null);
169
+
170
+    // cas ou l'on ne peut pas dater mais on peut modifier la date de redac anterieure
171
+    // https://core.spip.net/issues/3494
172
+    $valeurs['_editer_date'] = $valeurs['editable'];
173
+    if ($valeurs['_editer_date_anterieure'] and !$valeurs['editable']) {
174
+        $valeurs['editable'] = autoriser('modifier', $objet, $id_objet);
175
+    }
176
+
177
+    return $valeurs;
178 178
 }
179 179
 
180 180
 /**
@@ -192,20 +192,20 @@  discard block
 block discarded – undo
192 192
  *     Date formatée tel que `02/10/2012`
193 193
  **/
194 194
 function dater_formater_saisie_jour($jour, $mois, $annee, $sep = '/') {
195
-	$annee = str_pad($annee, 4, '0', STR_PAD_LEFT);
196
-	if (intval($jour)) {
197
-		$jour = str_pad($jour, 2, '0', STR_PAD_LEFT);
198
-		$mois = str_pad($mois, 2, '0', STR_PAD_LEFT);
195
+    $annee = str_pad($annee, 4, '0', STR_PAD_LEFT);
196
+    if (intval($jour)) {
197
+        $jour = str_pad($jour, 2, '0', STR_PAD_LEFT);
198
+        $mois = str_pad($mois, 2, '0', STR_PAD_LEFT);
199 199
 
200
-		return "$jour$sep$mois$sep$annee";
201
-	}
202
-	if (intval($mois)) {
203
-		$mois = str_pad($mois, 2, '0', STR_PAD_LEFT);
200
+        return "$jour$sep$mois$sep$annee";
201
+    }
202
+    if (intval($mois)) {
203
+        $mois = str_pad($mois, 2, '0', STR_PAD_LEFT);
204 204
 
205
-		return "$mois$sep$annee";
206
-	}
205
+        return "$mois$sep$annee";
206
+    }
207 207
 
208
-	return $annee;
208
+    return $annee;
209 209
 }
210 210
 
211 211
 /**
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
  *     Hash du formulaire
225 225
  **/
226 226
 function formulaires_dater_identifier_dist($objet, $id_objet, $retour = '', $options = []) {
227
-	return serialize([$objet, $id_objet]);
227
+    return serialize([$objet, $id_objet]);
228 228
 }
229 229
 
230 230
 /**
@@ -242,30 +242,30 @@  discard block
 block discarded – undo
242 242
  *     Tableau des erreurs
243 243
  */
244 244
 function formulaires_dater_verifier_dist($objet, $id_objet, $retour = '', $options = []) {
245
-	$erreurs = [];
246
-
247
-	// ouvrir le formulaire en edition ?
248
-	if (_request('_saisie_en_cours')) {
249
-		$erreurs['message_erreur'] = '';
250
-
251
-		return $erreurs;
252
-	}
253
-
254
-	if (_request('changer')) {
255
-		foreach (['date', 'date_redac'] as $k) {
256
-			if ($v = _request($k . '_jour') and !dater_recuperer_date_saisie($v, $k)) {
257
-				$erreurs[$k] = _T('format_date_incorrecte');
258
-			} elseif ($v = _request($k . '_heure') and !dater_recuperer_heure_saisie($v)) {
259
-				$erreurs[$k] = _T('format_heure_incorrecte');
260
-			}
261
-		}
262
-
263
-		if (!_request('date_jour')) {
264
-			$erreurs['date'] = _T('info_obligatoire');
265
-		}
266
-	}
267
-
268
-	return $erreurs;
245
+    $erreurs = [];
246
+
247
+    // ouvrir le formulaire en edition ?
248
+    if (_request('_saisie_en_cours')) {
249
+        $erreurs['message_erreur'] = '';
250
+
251
+        return $erreurs;
252
+    }
253
+
254
+    if (_request('changer')) {
255
+        foreach (['date', 'date_redac'] as $k) {
256
+            if ($v = _request($k . '_jour') and !dater_recuperer_date_saisie($v, $k)) {
257
+                $erreurs[$k] = _T('format_date_incorrecte');
258
+            } elseif ($v = _request($k . '_heure') and !dater_recuperer_heure_saisie($v)) {
259
+                $erreurs[$k] = _T('format_heure_incorrecte');
260
+            }
261
+        }
262
+
263
+        if (!_request('date_jour')) {
264
+            $erreurs['date'] = _T('info_obligatoire');
265
+        }
266
+    }
267
+
268
+    return $erreurs;
269 269
 }
270 270
 
271 271
 /**
@@ -283,79 +283,79 @@  discard block
 block discarded – undo
283 283
  *     Retours des traitements
284 284
  */
285 285
 function formulaires_dater_traiter_dist($objet, $id_objet, $retour = '', $options = []) {
286
-	$res = ['editable' => ' '];
287
-
288
-	if (_request('changer')) {
289
-		$table = table_objet($objet);
290
-		$trouver_table = charger_fonction('trouver_table', 'base');
291
-		$desc = $trouver_table($table);
292
-
293
-		if (!$desc) {
294
-			return ['message_erreur' => _L('erreur')];
295
-		} #impossible en principe
296
-
297
-		$champ_date = $desc['date'] ?: 'date';
298
-		if (isset($options['champ_date']) and $options['champ_date']) {
299
-			$champ_date = $options['champ_date'];
300
-		}
301
-
302
-		$set = [];
303
-
304
-		$charger = charger_fonction('charger', 'formulaires/dater/');
305
-		$v = $charger($objet, $id_objet, $retour, $options);
306
-
307
-		if ($v['_editer_date']) {
308
-			if (!$d = dater_recuperer_date_saisie(_request('date_jour'))) {
309
-				$d = [date('Y'), date('m'), date('d')];
310
-			}
311
-			if (!$h = dater_recuperer_heure_saisie(_request('date_heure'))) {
312
-				$h = [0, 0];
313
-			}
314
-
315
-			$set[$champ_date] = sql_format_date($d[0], $d[1], $d[2], $h[0], $h[1]);
316
-		}
317
-
318
-		$champ_date_redac = 'date_redac';
319
-		if (isset($options['champ_date_redac']) and $options['champ_date_redac']) {
320
-			$champ_date_redac = $options['champ_date_redac'];
321
-		}
322
-		if (isset($desc['field'][$champ_date_redac]) and $v['_editer_date_anterieure']) {
323
-			if (!_request('date_redac_jour') or _request('sans_redac')) {
324
-				$set[$champ_date_redac] = sql_format_date(0, 0, 0, 0, 0, 0);
325
-			} else {
326
-				if (!$d = dater_recuperer_date_saisie(_request('date_redac_jour'), 'date_redac')) {
327
-					$d = [date('Y'), date('m'), date('d')];
328
-				}
329
-				if (!$h = dater_recuperer_heure_saisie(_request('date_redac_heure'))) {
330
-					$h = [0, 0];
331
-				}
332
-				$set[$champ_date_redac] = sql_format_date($d[0], $d[1], $d[2], $h[0], $h[1]);
333
-			}
334
-		}
335
-
336
-		if (count($set)) {
337
-			$publie_avant = objet_test_si_publie($objet, $id_objet);
338
-			include_spip('action/editer_objet');
339
-			objet_modifier($objet, $id_objet, $set);
340
-			$publie_apres = objet_test_si_publie($objet, $id_objet);
341
-			if ($publie_avant !== $publie_apres) {
342
-				// on refuse ajax pour forcer le rechargement de la page ici
343
-				// on refera traiter une 2eme fois, mais c'est sans consequence
344
-				refuser_traiter_formulaire_ajax();
345
-			}
346
-		}
347
-	}
348
-
349
-	if ($retour) {
350
-		$res['redirect'] = $retour;
351
-	}
352
-
353
-	set_request('date_jour');
354
-	set_request('date_redac_jour');
355
-	set_request('date_heure');
356
-	set_request('date_redac_heure');
357
-
358
-	return $res;
286
+    $res = ['editable' => ' '];
287
+
288
+    if (_request('changer')) {
289
+        $table = table_objet($objet);
290
+        $trouver_table = charger_fonction('trouver_table', 'base');
291
+        $desc = $trouver_table($table);
292
+
293
+        if (!$desc) {
294
+            return ['message_erreur' => _L('erreur')];
295
+        } #impossible en principe
296
+
297
+        $champ_date = $desc['date'] ?: 'date';
298
+        if (isset($options['champ_date']) and $options['champ_date']) {
299
+            $champ_date = $options['champ_date'];
300
+        }
301
+
302
+        $set = [];
303
+
304
+        $charger = charger_fonction('charger', 'formulaires/dater/');
305
+        $v = $charger($objet, $id_objet, $retour, $options);
306
+
307
+        if ($v['_editer_date']) {
308
+            if (!$d = dater_recuperer_date_saisie(_request('date_jour'))) {
309
+                $d = [date('Y'), date('m'), date('d')];
310
+            }
311
+            if (!$h = dater_recuperer_heure_saisie(_request('date_heure'))) {
312
+                $h = [0, 0];
313
+            }
314
+
315
+            $set[$champ_date] = sql_format_date($d[0], $d[1], $d[2], $h[0], $h[1]);
316
+        }
317
+
318
+        $champ_date_redac = 'date_redac';
319
+        if (isset($options['champ_date_redac']) and $options['champ_date_redac']) {
320
+            $champ_date_redac = $options['champ_date_redac'];
321
+        }
322
+        if (isset($desc['field'][$champ_date_redac]) and $v['_editer_date_anterieure']) {
323
+            if (!_request('date_redac_jour') or _request('sans_redac')) {
324
+                $set[$champ_date_redac] = sql_format_date(0, 0, 0, 0, 0, 0);
325
+            } else {
326
+                if (!$d = dater_recuperer_date_saisie(_request('date_redac_jour'), 'date_redac')) {
327
+                    $d = [date('Y'), date('m'), date('d')];
328
+                }
329
+                if (!$h = dater_recuperer_heure_saisie(_request('date_redac_heure'))) {
330
+                    $h = [0, 0];
331
+                }
332
+                $set[$champ_date_redac] = sql_format_date($d[0], $d[1], $d[2], $h[0], $h[1]);
333
+            }
334
+        }
335
+
336
+        if (count($set)) {
337
+            $publie_avant = objet_test_si_publie($objet, $id_objet);
338
+            include_spip('action/editer_objet');
339
+            objet_modifier($objet, $id_objet, $set);
340
+            $publie_apres = objet_test_si_publie($objet, $id_objet);
341
+            if ($publie_avant !== $publie_apres) {
342
+                // on refuse ajax pour forcer le rechargement de la page ici
343
+                // on refera traiter une 2eme fois, mais c'est sans consequence
344
+                refuser_traiter_formulaire_ajax();
345
+            }
346
+        }
347
+    }
348
+
349
+    if ($retour) {
350
+        $res['redirect'] = $retour;
351
+    }
352
+
353
+    set_request('date_jour');
354
+    set_request('date_redac_jour');
355
+    set_request('date_heure');
356
+    set_request('date_redac_heure');
357
+
358
+    return $res;
359 359
 }
360 360
 
361 361
 /**
@@ -366,24 +366,24 @@  discard block
 block discarded – undo
366 366
  * @return array|string Chaîne vide si date invalide, tableau (année, mois, jour) sinon.
367 367
  */
368 368
 function dater_recuperer_date_saisie($post, $quoi = 'date') {
369
-	if (!preg_match('#^(?:(?:([0-9]{1,2})[/-])?([0-9]{1,2})[/-])?([0-9]{4}|[0-9]{1,2})#', $post, $regs)) {
370
-		return '';
371
-	}
372
-	if ($quoi == 'date_redac') {
373
-		if ($regs[3] <> '' and $regs[3] < 1001) {
374
-			$regs[3] += 9000;
375
-		}
376
-
377
-		return [$regs[3], $regs[2], $regs[1]];
378
-	} else {
379
-		if (
380
-			checkdate(intval($regs[2]), intval($regs[1]), intval($regs[3]))
381
-			and $t = mktime(0, 0, 0, $regs[2], $regs[1], $regs[3])
382
-		) {
383
-			return [date('Y', $t), date('m', $t), date('d', $t)];
384
-		}
385
-		return '';
386
-	}
369
+    if (!preg_match('#^(?:(?:([0-9]{1,2})[/-])?([0-9]{1,2})[/-])?([0-9]{4}|[0-9]{1,2})#', $post, $regs)) {
370
+        return '';
371
+    }
372
+    if ($quoi == 'date_redac') {
373
+        if ($regs[3] <> '' and $regs[3] < 1001) {
374
+            $regs[3] += 9000;
375
+        }
376
+
377
+        return [$regs[3], $regs[2], $regs[1]];
378
+    } else {
379
+        if (
380
+            checkdate(intval($regs[2]), intval($regs[1]), intval($regs[3]))
381
+            and $t = mktime(0, 0, 0, $regs[2], $regs[1], $regs[3])
382
+        ) {
383
+            return [date('Y', $t), date('m', $t), date('d', $t)];
384
+        }
385
+        return '';
386
+    }
387 387
 }
388 388
 
389 389
 /**
@@ -393,12 +393,12 @@  discard block
 block discarded – undo
393 393
  * @return array
394 394
  */
395 395
 function dater_recuperer_heure_saisie($post) {
396
-	if (!preg_match('#([0-9]{1,2})(?:[h:](?:([0-9]{1,2}))?)?#', $post, $regs)) {
397
-		return '';
398
-	}
399
-	if ($regs[1] > 23 or $regs[2] > 59) {
400
-		return '';
401
-	}
402
-
403
-	return [$regs[1], $regs[2]];
396
+    if (!preg_match('#([0-9]{1,2})(?:[h:](?:([0-9]{1,2}))?)?#', $post, $regs)) {
397
+        return '';
398
+    }
399
+    if ($regs[1] > 23 or $regs[2] > 59) {
400
+        return '';
401
+    }
402
+
403
+    return [$regs[1], $regs[2]];
404 404
 }
Please login to merge, or discard this patch.
prive/formulaires/configurer_multilinguisme.php 1 patch
Indentation   +104 added lines, -104 removed lines patch added patch discarded remove patch
@@ -11,53 +11,53 @@  discard block
 block discarded – undo
11 11
 \***************************************************************************/
12 12
 
13 13
 if (!defined('_ECRIRE_INC_VERSION')) {
14
-	return;
14
+    return;
15 15
 }
16 16
 
17 17
 function formulaires_configurer_multilinguisme_charger_dist() {
18
-	$valeurs = [];
19
-	$valeurs['multi_secteurs'] = $GLOBALS['meta']['multi_secteurs'];
20
-	foreach (['multi_objets', 'gerer_trad_objets'] as $m) {
21
-		$valeurs[$m] = explode(',', $GLOBALS['meta'][$m] ?? '');
22
-	}
23
-
24
-	if (
25
-		is_countable($valeurs['multi_objets']) ? count($valeurs['multi_objets']) : 0
26
-		or count(explode(',', $GLOBALS['meta']['langues_utilisees'])) > 1
27
-	) {
28
-		$selection = (is_null(_request('multi_objets')) ?
29
-			explode(',', $GLOBALS['meta']['langues_multilingue']) : _request('langues_auth'));
30
-		$valeurs['_langues'] = saisie_langues_utiles('langues_auth', $selection ?: []);
31
-		$valeurs['_nb_langues_selection'] = is_countable($selection) ? count($selection) : 0;
32
-	}
33
-
34
-	return $valeurs;
18
+    $valeurs = [];
19
+    $valeurs['multi_secteurs'] = $GLOBALS['meta']['multi_secteurs'];
20
+    foreach (['multi_objets', 'gerer_trad_objets'] as $m) {
21
+        $valeurs[$m] = explode(',', $GLOBALS['meta'][$m] ?? '');
22
+    }
23
+
24
+    if (
25
+        is_countable($valeurs['multi_objets']) ? count($valeurs['multi_objets']) : 0
26
+        or count(explode(',', $GLOBALS['meta']['langues_utilisees'])) > 1
27
+    ) {
28
+        $selection = (is_null(_request('multi_objets')) ?
29
+            explode(',', $GLOBALS['meta']['langues_multilingue']) : _request('langues_auth'));
30
+        $valeurs['_langues'] = saisie_langues_utiles('langues_auth', $selection ?: []);
31
+        $valeurs['_nb_langues_selection'] = is_countable($selection) ? count($selection) : 0;
32
+    }
33
+
34
+    return $valeurs;
35 35
 }
36 36
 
37 37
 
38 38
 function formulaires_configurer_multilinguisme_traiter_dist() {
39
-	$res = ['editable' => true];
40
-	// un checkbox seul de name X non coche n'est pas poste.
41
-	// on verifie le champ X_check qui indique que la checkbox etait presente dans le formulaire.
42
-	foreach (['multi_secteurs'] as $m) {
43
-		if (!is_null(_request($m . '_check'))) {
44
-			ecrire_meta($m, _request($m) ? 'oui' : 'non');
45
-		}
46
-	}
47
-	foreach (['multi_objets', 'gerer_trad_objets'] as $m) {
48
-		if (!is_null($v = _request($m))) {
49
-			// join et enlever la valeur vide ''
50
-			ecrire_meta($m, implode(',', array_diff($v, [''])));
51
-		}
52
-	}
53
-
54
-	if ($i = _request('langues_auth') and is_array($i)) {
55
-		$i = array_unique(array_merge($i, explode(',', $GLOBALS['meta']['langues_utilisees'])));
56
-		ecrire_meta('langues_multilingue', implode(',', $i));
57
-	}
58
-	$res['message_ok'] = _T('config_info_enregistree');
59
-
60
-	return $res;
39
+    $res = ['editable' => true];
40
+    // un checkbox seul de name X non coche n'est pas poste.
41
+    // on verifie le champ X_check qui indique que la checkbox etait presente dans le formulaire.
42
+    foreach (['multi_secteurs'] as $m) {
43
+        if (!is_null(_request($m . '_check'))) {
44
+            ecrire_meta($m, _request($m) ? 'oui' : 'non');
45
+        }
46
+    }
47
+    foreach (['multi_objets', 'gerer_trad_objets'] as $m) {
48
+        if (!is_null($v = _request($m))) {
49
+            // join et enlever la valeur vide ''
50
+            ecrire_meta($m, implode(',', array_diff($v, [''])));
51
+        }
52
+    }
53
+
54
+    if ($i = _request('langues_auth') and is_array($i)) {
55
+        $i = array_unique(array_merge($i, explode(',', $GLOBALS['meta']['langues_utilisees'])));
56
+        ecrire_meta('langues_multilingue', implode(',', $i));
57
+    }
58
+    $res['message_ok'] = _T('config_info_enregistree');
59
+
60
+    return $res;
61 61
 }
62 62
 
63 63
 /**
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
67 67
  * @return string
68 68
  */
69 69
 function table_supporte_lang($table_sql) {
70
-	$trouver_table = charger_fonction('trouver_table', 'base');
71
-	$desc = $trouver_table($table_sql);
72
-	if (!$desc or !isset($desc['field']['lang'])) {
73
-		return '';
74
-	}
70
+    $trouver_table = charger_fonction('trouver_table', 'base');
71
+    $desc = $trouver_table($table_sql);
72
+    if (!$desc or !isset($desc['field']['lang'])) {
73
+        return '';
74
+    }
75 75
 
76
-	return ' ';
76
+    return ' ';
77 77
 }
78 78
 
79 79
 /**
@@ -83,67 +83,67 @@  discard block
 block discarded – undo
83 83
  * @return string
84 84
  */
85 85
 function table_supporte_trad($table_sql) {
86
-	$trouver_table = charger_fonction('trouver_table', 'base');
87
-	$desc = $trouver_table($table_sql);
88
-	if (!$desc or !isset($desc['field']['id_trad'])) {
89
-		return '';
90
-	}
86
+    $trouver_table = charger_fonction('trouver_table', 'base');
87
+    $desc = $trouver_table($table_sql);
88
+    if (!$desc or !isset($desc['field']['id_trad'])) {
89
+        return '';
90
+    }
91 91
 
92
-	return ' ';
92
+    return ' ';
93 93
 }
94 94
 
95 95
 
96 96
 function saisie_langues_utiles($name, $selection) {
97
-	include_spip('inc/lang_liste');
98
-	$langues = $GLOBALS['codes_langues'];
99
-
100
-	$langues_installees = explode(',', $GLOBALS['meta']['langues_proposees']);
101
-	$langues_trad = array_flip($langues_installees);
102
-
103
-	$langues_bloquees = explode(',', $GLOBALS['meta']['langues_utilisees']);
104
-
105
-	$res = '';
106
-
107
-	$i = 0;
108
-	foreach ($langues_bloquees as $code_langue) {
109
-		$nom_langue = $langues[$code_langue];
110
-		$res .= "<li class='choix "
111
-			. alterner(++$i, 'odd', 'even')
112
-			. (isset($langues_trad[$code_langue]) ? ' traduite' : '')
113
-			. "'>"
114
-			. "<input type='hidden' name='{$name}[]' value='$code_langue'>" // necessaire ...
115
-			. "<input type='checkbox' name='{$name}[]' id='{$name}_$code_langue' value='$code_langue' checked='checked' disabled='disabled' />"
116
-			. "<label for='{$name}_$code_langue'>" . $nom_langue . "&nbsp;&nbsp; <span class='code_langue'>[$code_langue]</span></label>"
117
-			. '</li>';
118
-	}
119
-
120
-	if ($res) {
121
-		$res = "<ul id='langues_bloquees'>" . $res . "</ul><div class='nettoyeur'></div>";
122
-	}
123
-
124
-	$res .= "<ul id='langues_proposees'>";
125
-
126
-	$i = 0;
127
-	$langues_bloquees = array_flip($langues_bloquees);
128
-	foreach ($langues as $code_langue => $nom_langue) {
129
-		if (!isset($langues_bloquees[$code_langue])) {
130
-			$checked = (in_array($code_langue, $selection) ? ' checked="checked"' : '');
131
-			$res .= "<li class='choix "
132
-				. alterner(++$i, 'odd', 'even')
133
-				. (isset($langues_trad[$code_langue]) ? ' traduite' : '')
134
-				. "'>"
135
-				. "<input type='checkbox' name='{$name}[]' id='{$name}_$code_langue' value='$code_langue'"
136
-				. $checked
137
-				. '/>'
138
-				. "<label for='{$name}_$code_langue'"
139
-				. ($checked ? " class='on'" : '')
140
-				. '>'
141
-				. $nom_langue . "&nbsp;&nbsp; <span class='code_langue'>[$code_langue]</span></label>"
142
-				. '</li>';
143
-		}
144
-	}
145
-
146
-	$res .= "</ul><div class='nettoyeur'></div>";
147
-
148
-	return $res;
97
+    include_spip('inc/lang_liste');
98
+    $langues = $GLOBALS['codes_langues'];
99
+
100
+    $langues_installees = explode(',', $GLOBALS['meta']['langues_proposees']);
101
+    $langues_trad = array_flip($langues_installees);
102
+
103
+    $langues_bloquees = explode(',', $GLOBALS['meta']['langues_utilisees']);
104
+
105
+    $res = '';
106
+
107
+    $i = 0;
108
+    foreach ($langues_bloquees as $code_langue) {
109
+        $nom_langue = $langues[$code_langue];
110
+        $res .= "<li class='choix "
111
+            . alterner(++$i, 'odd', 'even')
112
+            . (isset($langues_trad[$code_langue]) ? ' traduite' : '')
113
+            . "'>"
114
+            . "<input type='hidden' name='{$name}[]' value='$code_langue'>" // necessaire ...
115
+            . "<input type='checkbox' name='{$name}[]' id='{$name}_$code_langue' value='$code_langue' checked='checked' disabled='disabled' />"
116
+            . "<label for='{$name}_$code_langue'>" . $nom_langue . "&nbsp;&nbsp; <span class='code_langue'>[$code_langue]</span></label>"
117
+            . '</li>';
118
+    }
119
+
120
+    if ($res) {
121
+        $res = "<ul id='langues_bloquees'>" . $res . "</ul><div class='nettoyeur'></div>";
122
+    }
123
+
124
+    $res .= "<ul id='langues_proposees'>";
125
+
126
+    $i = 0;
127
+    $langues_bloquees = array_flip($langues_bloquees);
128
+    foreach ($langues as $code_langue => $nom_langue) {
129
+        if (!isset($langues_bloquees[$code_langue])) {
130
+            $checked = (in_array($code_langue, $selection) ? ' checked="checked"' : '');
131
+            $res .= "<li class='choix "
132
+                . alterner(++$i, 'odd', 'even')
133
+                . (isset($langues_trad[$code_langue]) ? ' traduite' : '')
134
+                . "'>"
135
+                . "<input type='checkbox' name='{$name}[]' id='{$name}_$code_langue' value='$code_langue'"
136
+                . $checked
137
+                . '/>'
138
+                . "<label for='{$name}_$code_langue'"
139
+                . ($checked ? " class='on'" : '')
140
+                . '>'
141
+                . $nom_langue . "&nbsp;&nbsp; <span class='code_langue'>[$code_langue]</span></label>"
142
+                . '</li>';
143
+        }
144
+    }
145
+
146
+    $res .= "</ul><div class='nettoyeur'></div>";
147
+
148
+    return $res;
149 149
 }
Please login to merge, or discard this patch.
ecrire/inc/prepare_recherche.php 1 patch
Indentation   +142 added lines, -142 removed lines patch added patch discarded remove patch
@@ -17,12 +17,12 @@  discard block
 block discarded – undo
17 17
  **/
18 18
 
19 19
 if (!defined('_ECRIRE_INC_VERSION')) {
20
-	return;
20
+    return;
21 21
 }
22 22
 
23 23
 include_spip('inc/rechercher');
24 24
 if (!defined('_DELAI_CACHE_resultats')) {
25
-	define('_DELAI_CACHE_resultats', 600);
25
+    define('_DELAI_CACHE_resultats', 600);
26 26
 }
27 27
 
28 28
 /**
@@ -49,129 +49,129 @@  discard block
 block discarded – undo
49 49
  * @return array
50 50
  */
51 51
 function inc_prepare_recherche_dist(
52
-	$recherche,
53
-	$table = 'articles',
54
-	$cond = false,
55
-	$serveur = '',
56
-	$modificateurs = [],
57
-	$primary = ''
52
+    $recherche,
53
+    $table = 'articles',
54
+    $cond = false,
55
+    $serveur = '',
56
+    $modificateurs = [],
57
+    $primary = ''
58 58
 ) {
59
-	$where = null;
60
-	$rows = null;
61
-	static $cache = [];
62
-	$delai_fraicheur = min(
63
-		\_DELAI_CACHE_resultats,
64
-		time() - ($GLOBALS['meta']['derniere_modif'] ?? 0)
65
-	);
66
-
67
-	// si recherche n'est pas dans le contexte, on va prendre en globals
68
-	// ca permet de faire des inclure simple.
69
-	if (!isset($recherche) and isset($GLOBALS['recherche'])) {
70
-		$recherche = $GLOBALS['recherche'];
71
-	}
72
-
73
-	// traiter le cas {recherche?}
74
-	if ($cond and !strlen($recherche)) {
75
-		return [
76
-			'0 as points' /* as points */, /* where */
77
-			''
78
-		];
79
-	}
80
-
81
-
82
-	$rechercher = false;
83
-
84
-	$where_resultat_recent = sql_date_proche('maj', (0 - ($delai_fraicheur + 100)), ' SECOND');
85
-	if (!isset($cache[$serveur][$table][$recherche])) {
86
-		$hash_serv = ($serveur ? substr(md5($serveur), 0, 16) : '');
87
-		$hash = substr(md5($recherche . $table), 0, 16);
88
-		$where = "(resultats.recherche='$hash' AND resultats.table_objet=" . sql_quote($table) . " AND resultats.serveur='$hash_serv')";
89
-		$row = sql_fetsel(
90
-			'recherche',
91
-			'spip_resultats AS resultats',
92
-			$where . " AND $where_resultat_recent",
93
-			'',
94
-			'',
95
-			'0,1'
96
-		);
97
-		if (
98
-			!$row
99
-			or (defined('_VAR_MODE') and _VAR_MODE == 'recalcul')
100
-		) {
101
-			$rechercher = true;
102
-		}
103
-	}
104
-
105
-	// si on n'a pas encore traite les donnees dans une boucle precedente
106
-	if ($rechercher) {
107
-		//$tables = liste_des_champs();
108
-		$x = objet_type($table);
109
-		$points = recherche_en_base(
110
-			$recherche,
111
-			$x,
112
-			[
113
-				'score' => true,
114
-				'toutvoir' => true,
115
-				'jointures' => true
116
-			],
117
-			$serveur
118
-		);
119
-		// pas de résultat, pas de point
120
-		$points = $points[$x] ?? [];
121
-
122
-		// permettre aux plugins de modifier le resultat
123
-		$points = pipeline('prepare_recherche', [
124
-			'args' => [
125
-				'type' => $x,
126
-				'recherche' => $recherche,
127
-				'serveur' => $serveur,
128
-				'modificateurs' => $modificateurs
129
-			],
130
-			'data' => $points
131
-		]);
132
-
133
-		// supprimer les anciens resultats de cette recherche
134
-		// et les resultats trop vieux avec une marge
135
-		// pas de AS resultats dans un delete (mysql)
136
-		$whered = str_replace(
137
-			['resultats.recherche', 'resultats.table_objet', 'resultats.serveur'],
138
-			['recherche', 'table_objet', 'serveur'],
139
-			$where
140
-		);
141
-
142
-		sql_delete(
143
-			'spip_resultats',
144
-			"NOT($where_resultat_recent) OR ($whered)"
145
-		);
146
-
147
-		// inserer les resultats dans la table de cache des resultats
148
-		if (is_countable($points) ? count($points) : 0) {
149
-			$tab_couples = [];
150
-			foreach ($points as $id => $p) {
151
-				$tab_couples[] = [
152
-					'recherche' => $hash,
153
-					'id' => $id,
154
-					'points' => $p['score'],
155
-					'table_objet' => $table,
156
-					'serveur' => $hash_serv,
157
-				];
158
-			}
159
-			sql_insertq_multi('spip_resultats', $tab_couples, []);
160
-		}
161
-	}
162
-
163
-	if (!isset($cache[$serveur][$table][$recherche])) {
164
-		if (!$serveur) {
165
-			$cache[$serveur][$table][$recherche] = ['resultats.points AS points', $where];
166
-		} else {
167
-			if (sql_countsel('spip_resultats as resultats', $where)) {
168
-				$rows = sql_allfetsel('resultats.id,resultats.points', 'spip_resultats as resultats', $where);
169
-			}
170
-			$cache[$serveur][$table][$recherche] = generer_select_where_explicites($table, $primary, $rows, $serveur);
171
-		}
172
-	}
173
-
174
-	return $cache[$serveur][$table][$recherche];
59
+    $where = null;
60
+    $rows = null;
61
+    static $cache = [];
62
+    $delai_fraicheur = min(
63
+        \_DELAI_CACHE_resultats,
64
+        time() - ($GLOBALS['meta']['derniere_modif'] ?? 0)
65
+    );
66
+
67
+    // si recherche n'est pas dans le contexte, on va prendre en globals
68
+    // ca permet de faire des inclure simple.
69
+    if (!isset($recherche) and isset($GLOBALS['recherche'])) {
70
+        $recherche = $GLOBALS['recherche'];
71
+    }
72
+
73
+    // traiter le cas {recherche?}
74
+    if ($cond and !strlen($recherche)) {
75
+        return [
76
+            '0 as points' /* as points */, /* where */
77
+            ''
78
+        ];
79
+    }
80
+
81
+
82
+    $rechercher = false;
83
+
84
+    $where_resultat_recent = sql_date_proche('maj', (0 - ($delai_fraicheur + 100)), ' SECOND');
85
+    if (!isset($cache[$serveur][$table][$recherche])) {
86
+        $hash_serv = ($serveur ? substr(md5($serveur), 0, 16) : '');
87
+        $hash = substr(md5($recherche . $table), 0, 16);
88
+        $where = "(resultats.recherche='$hash' AND resultats.table_objet=" . sql_quote($table) . " AND resultats.serveur='$hash_serv')";
89
+        $row = sql_fetsel(
90
+            'recherche',
91
+            'spip_resultats AS resultats',
92
+            $where . " AND $where_resultat_recent",
93
+            '',
94
+            '',
95
+            '0,1'
96
+        );
97
+        if (
98
+            !$row
99
+            or (defined('_VAR_MODE') and _VAR_MODE == 'recalcul')
100
+        ) {
101
+            $rechercher = true;
102
+        }
103
+    }
104
+
105
+    // si on n'a pas encore traite les donnees dans une boucle precedente
106
+    if ($rechercher) {
107
+        //$tables = liste_des_champs();
108
+        $x = objet_type($table);
109
+        $points = recherche_en_base(
110
+            $recherche,
111
+            $x,
112
+            [
113
+                'score' => true,
114
+                'toutvoir' => true,
115
+                'jointures' => true
116
+            ],
117
+            $serveur
118
+        );
119
+        // pas de résultat, pas de point
120
+        $points = $points[$x] ?? [];
121
+
122
+        // permettre aux plugins de modifier le resultat
123
+        $points = pipeline('prepare_recherche', [
124
+            'args' => [
125
+                'type' => $x,
126
+                'recherche' => $recherche,
127
+                'serveur' => $serveur,
128
+                'modificateurs' => $modificateurs
129
+            ],
130
+            'data' => $points
131
+        ]);
132
+
133
+        // supprimer les anciens resultats de cette recherche
134
+        // et les resultats trop vieux avec une marge
135
+        // pas de AS resultats dans un delete (mysql)
136
+        $whered = str_replace(
137
+            ['resultats.recherche', 'resultats.table_objet', 'resultats.serveur'],
138
+            ['recherche', 'table_objet', 'serveur'],
139
+            $where
140
+        );
141
+
142
+        sql_delete(
143
+            'spip_resultats',
144
+            "NOT($where_resultat_recent) OR ($whered)"
145
+        );
146
+
147
+        // inserer les resultats dans la table de cache des resultats
148
+        if (is_countable($points) ? count($points) : 0) {
149
+            $tab_couples = [];
150
+            foreach ($points as $id => $p) {
151
+                $tab_couples[] = [
152
+                    'recherche' => $hash,
153
+                    'id' => $id,
154
+                    'points' => $p['score'],
155
+                    'table_objet' => $table,
156
+                    'serveur' => $hash_serv,
157
+                ];
158
+            }
159
+            sql_insertq_multi('spip_resultats', $tab_couples, []);
160
+        }
161
+    }
162
+
163
+    if (!isset($cache[$serveur][$table][$recherche])) {
164
+        if (!$serveur) {
165
+            $cache[$serveur][$table][$recherche] = ['resultats.points AS points', $where];
166
+        } else {
167
+            if (sql_countsel('spip_resultats as resultats', $where)) {
168
+                $rows = sql_allfetsel('resultats.id,resultats.points', 'spip_resultats as resultats', $where);
169
+            }
170
+            $cache[$serveur][$table][$recherche] = generer_select_where_explicites($table, $primary, $rows, $serveur);
171
+        }
172
+    }
173
+
174
+    return $cache[$serveur][$table][$recherche];
175 175
 }
176 176
 
177 177
 
@@ -187,22 +187,22 @@  discard block
 block discarded – undo
187 187
  * @return array
188 188
  */
189 189
 function generer_select_where_explicites($table, $primary, $rows, $serveur) {
190
-	# calculer le {id_article IN()} et le {... as points}
191
-	if (!count($rows)) {
192
-		return ["''", '0=1'];
193
-	} else {
194
-		$listes_ids = [];
195
-		$select = '0';
196
-		foreach ($rows as $r) {
197
-			$listes_ids[$r['points']][] = $r['id'];
198
-		}
199
-
200
-		foreach ($listes_ids as $p => $ids) {
201
-			$select .= "+$p*(" .
202
-				sql_in("$table.$primary", $ids, '', $serveur)
203
-				. ') ';
204
-		}
205
-
206
-		return ["$select AS points ", sql_in("$table.$primary", array_map('reset', $rows), '', $serveur)];
207
-	}
190
+    # calculer le {id_article IN()} et le {... as points}
191
+    if (!count($rows)) {
192
+        return ["''", '0=1'];
193
+    } else {
194
+        $listes_ids = [];
195
+        $select = '0';
196
+        foreach ($rows as $r) {
197
+            $listes_ids[$r['points']][] = $r['id'];
198
+        }
199
+
200
+        foreach ($listes_ids as $p => $ids) {
201
+            $select .= "+$p*(" .
202
+                sql_in("$table.$primary", $ids, '', $serveur)
203
+                . ') ';
204
+        }
205
+
206
+        return ["$select AS points ", sql_in("$table.$primary", array_map('reset', $rows), '', $serveur)];
207
+    }
208 208
 }
Please login to merge, or discard this patch.
ecrire/inc/pipelines.php 1 patch
Indentation   +129 added lines, -129 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@  discard block
 block discarded – undo
16 16
  * @package SPIP\Core\Pipelines
17 17
  **/
18 18
 if (!defined('_ECRIRE_INC_VERSION')) {
19
-	return;
19
+    return;
20 20
 }
21 21
 if (test_espace_prive()) {
22
-	include_spip('inc/pipelines_ecrire');
22
+    include_spip('inc/pipelines_ecrire');
23 23
 }
24 24
 
25 25
 
@@ -45,28 +45,28 @@  discard block
 block discarded – undo
45 45
  * @return string          Contenu qui sera inséré dans le head HTML
46 46
  **/
47 47
 function f_jQuery($texte) {
48
-	$x = '';
49
-	$jquery_plugins = pipeline(
50
-		'jquery_plugins',
51
-		[
52
-			'javascript/jquery.js',
53
-			'javascript/jquery.form.js',
54
-			'javascript/jquery.autosave.js',
55
-			'javascript/jquery.placeholder-label.js',
56
-			'javascript/ajaxCallback.js',
57
-			'javascript/js.cookie.js',
58
-		]
59
-	);
60
-	foreach (array_unique($jquery_plugins) as $script) {
61
-		if ($script = find_in_path(supprimer_timestamp($script))) {
62
-			$script = timestamp($script);
63
-			$x .= "\n<script src=\"$script\" type=\"text/javascript\"></script>\n";
64
-		}
65
-	}
48
+    $x = '';
49
+    $jquery_plugins = pipeline(
50
+        'jquery_plugins',
51
+        [
52
+            'javascript/jquery.js',
53
+            'javascript/jquery.form.js',
54
+            'javascript/jquery.autosave.js',
55
+            'javascript/jquery.placeholder-label.js',
56
+            'javascript/ajaxCallback.js',
57
+            'javascript/js.cookie.js',
58
+        ]
59
+    );
60
+    foreach (array_unique($jquery_plugins) as $script) {
61
+        if ($script = find_in_path(supprimer_timestamp($script))) {
62
+            $script = timestamp($script);
63
+            $x .= "\n<script src=\"$script\" type=\"text/javascript\"></script>\n";
64
+        }
65
+    }
66 66
 
67
-	$texte = $x . $texte;
67
+    $texte = $x . $texte;
68 68
 
69
-	return $texte;
69
+    return $texte;
70 70
 }
71 71
 
72 72
 
@@ -85,28 +85,28 @@  discard block
 block discarded – undo
85 85
  * @return string         Contenu de la page envoyée au navigateur
86 86
  **/
87 87
 function f_surligne($texte) {
88
-	if (!$GLOBALS['html']) {
89
-		return $texte;
90
-	}
91
-	$rech = _request('var_recherche');
92
-	if (
93
-		!$rech
94
-		and (!defined('_SURLIGNE_RECHERCHE_REFERERS')
95
-			or !_SURLIGNE_RECHERCHE_REFERERS
96
-			or !isset($_SERVER['HTTP_REFERER']))
97
-	) {
98
-		return $texte;
99
-	}
100
-	include_spip('inc/surligne');
88
+    if (!$GLOBALS['html']) {
89
+        return $texte;
90
+    }
91
+    $rech = _request('var_recherche');
92
+    if (
93
+        !$rech
94
+        and (!defined('_SURLIGNE_RECHERCHE_REFERERS')
95
+            or !_SURLIGNE_RECHERCHE_REFERERS
96
+            or !isset($_SERVER['HTTP_REFERER']))
97
+    ) {
98
+        return $texte;
99
+    }
100
+    include_spip('inc/surligne');
101 101
 
102
-	if (isset($_SERVER['HTTP_REFERER'])) {
103
-		$_SERVER['HTTP_REFERER'] = preg_replace(',[^\w\,/#&;:-]+,', ' ', $_SERVER['HTTP_REFERER']);
104
-	}
105
-	if ($rech) {
106
-		$rech = preg_replace(',[^\w\,/#&;:-]+,', ' ', $rech);
107
-	}
102
+    if (isset($_SERVER['HTTP_REFERER'])) {
103
+        $_SERVER['HTTP_REFERER'] = preg_replace(',[^\w\,/#&;:-]+,', ' ', $_SERVER['HTTP_REFERER']);
104
+    }
105
+    if ($rech) {
106
+        $rech = preg_replace(',[^\w\,/#&;:-]+,', ' ', $rech);
107
+    }
108 108
 
109
-	return surligner_mots($texte, $rech);
109
+    return surligner_mots($texte, $rech);
110 110
 }
111 111
 
112 112
 /**
@@ -123,33 +123,33 @@  discard block
 block discarded – undo
123 123
  * @return string         Contenu de la page envoyée au navigateur
124 124
  **/
125 125
 function f_tidy($texte) {
126
-	/**
127
-	 * Indentation à faire ?
128
-	 *
129
-	 * - true : actif.
130
-	 * - false par défaut.
131
-	 */
126
+    /**
127
+     * Indentation à faire ?
128
+     *
129
+     * - true : actif.
130
+     * - false par défaut.
131
+     */
132 132
 
133
-	if (
134
-		$GLOBALS['xhtml'] # tidy demande
135
-		and $GLOBALS['html'] # verifie que la page avait l'entete text/html
136
-		and strlen($texte)
137
-		and !headers_sent()
138
-	) {
139
-		# Compatibilite ascendante
140
-		if (!is_string($GLOBALS['xhtml'])) {
141
-			$GLOBALS['xhtml'] = 'tidy';
142
-		}
133
+    if (
134
+        $GLOBALS['xhtml'] # tidy demande
135
+        and $GLOBALS['html'] # verifie que la page avait l'entete text/html
136
+        and strlen($texte)
137
+        and !headers_sent()
138
+    ) {
139
+        # Compatibilite ascendante
140
+        if (!is_string($GLOBALS['xhtml'])) {
141
+            $GLOBALS['xhtml'] = 'tidy';
142
+        }
143 143
 
144
-		if (!$f = charger_fonction($GLOBALS['xhtml'], 'inc', true)) {
145
-			spip_log("tidy absent, l'indenteur SPIP le remplace");
146
-			$f = charger_fonction('sax', 'xml');
147
-		}
144
+        if (!$f = charger_fonction($GLOBALS['xhtml'], 'inc', true)) {
145
+            spip_log("tidy absent, l'indenteur SPIP le remplace");
146
+            $f = charger_fonction('sax', 'xml');
147
+        }
148 148
 
149
-		return $f($texte);
150
-	}
149
+        return $f($texte);
150
+    }
151 151
 
152
-	return $texte;
152
+    return $texte;
153 153
 }
154 154
 
155 155
 
@@ -168,21 +168,21 @@  discard block
 block discarded – undo
168 168
  * @return string         Contenu de la page envoyée au navigateur
169 169
  **/
170 170
 function f_insert_head($texte) {
171
-	if (!$GLOBALS['html']) {
172
-		return $texte;
173
-	}
174
-	include_spip('public/admin'); // pour strripos
171
+    if (!$GLOBALS['html']) {
172
+        return $texte;
173
+    }
174
+    include_spip('public/admin'); // pour strripos
175 175
 
176
-	($pos = stripos($texte, '</head>'))
177
-	|| ($pos = stripos($texte, '<body>'))
178
-	|| ($pos = 0);
176
+    ($pos = stripos($texte, '</head>'))
177
+    || ($pos = stripos($texte, '<body>'))
178
+    || ($pos = 0);
179 179
 
180
-	if (false === strpos(substr($texte, 0, $pos), '<!-- insert_head -->')) {
181
-		$insert = "\n" . pipeline('insert_head', '<!-- f_insert_head -->') . "\n";
182
-		$texte = substr_replace($texte, $insert, $pos, 0);
183
-	}
180
+    if (false === strpos(substr($texte, 0, $pos), '<!-- insert_head -->')) {
181
+        $insert = "\n" . pipeline('insert_head', '<!-- f_insert_head -->') . "\n";
182
+        $texte = substr_replace($texte, $insert, $pos, 0);
183
+    }
184 184
 
185
-	return $texte;
185
+    return $texte;
186 186
 }
187 187
 
188 188
 
@@ -198,34 +198,34 @@  discard block
 block discarded – undo
198 198
  * @return string         Contenu de la page envoyée au navigateur
199 199
  **/
200 200
 function f_admin($texte) {
201
-	if (defined('_VAR_PREVIEW') and _VAR_PREVIEW and $GLOBALS['html']) {
202
-		include_spip('inc/filtres'); // pour http_img_pack
203
-		$x = "<div class='spip-previsu' "
204
-			. http_style_background('preview-32.png', '', 32)
205
-			. '>'
206
-			. _T('previsualisation')
207
-			. '</div>';
208
-		if (!$pos = stripos($texte, '</body>')) {
209
-			$pos = strlen($texte);
210
-		}
211
-		$texte = substr_replace($texte, $x, $pos, 0);
212
-		// pas de preview en fenetre enfant
213
-		$x = "<script type='text/javascript'>const frameEl = window.frameElement;if (frameEl) {frameEl.sandbox='sandbox';window.location.href='" . addslashes($GLOBALS['meta']['adresse_site']) . "';}</script>";
214
-		if (!$pos = stripos($texte, '<head') or !$pos = strpos($texte, '>', $pos)) {
215
-			$pos = -1;
216
-		}
217
-		$texte = substr_replace($texte, $x, $pos + 1, 0);
218
-	}
201
+    if (defined('_VAR_PREVIEW') and _VAR_PREVIEW and $GLOBALS['html']) {
202
+        include_spip('inc/filtres'); // pour http_img_pack
203
+        $x = "<div class='spip-previsu' "
204
+            . http_style_background('preview-32.png', '', 32)
205
+            . '>'
206
+            . _T('previsualisation')
207
+            . '</div>';
208
+        if (!$pos = stripos($texte, '</body>')) {
209
+            $pos = strlen($texte);
210
+        }
211
+        $texte = substr_replace($texte, $x, $pos, 0);
212
+        // pas de preview en fenetre enfant
213
+        $x = "<script type='text/javascript'>const frameEl = window.frameElement;if (frameEl) {frameEl.sandbox='sandbox';window.location.href='" . addslashes($GLOBALS['meta']['adresse_site']) . "';}</script>";
214
+        if (!$pos = stripos($texte, '<head') or !$pos = strpos($texte, '>', $pos)) {
215
+            $pos = -1;
216
+        }
217
+        $texte = substr_replace($texte, $x, $pos + 1, 0);
218
+    }
219 219
 
220
-	if (isset($GLOBALS['affiche_boutons_admin']) and $GLOBALS['affiche_boutons_admin']) {
221
-		include_spip('public/admin');
222
-		$texte = affiche_boutons_admin($texte);
223
-	}
224
-	if (_request('var_mode') == 'noajax') {
225
-		$texte = preg_replace(',(class=[\'"][^\'"]*)ajax([^\'"]*[\'"]),Uims', "\\1\\2", $texte);
226
-	}
220
+    if (isset($GLOBALS['affiche_boutons_admin']) and $GLOBALS['affiche_boutons_admin']) {
221
+        include_spip('public/admin');
222
+        $texte = affiche_boutons_admin($texte);
223
+    }
224
+    if (_request('var_mode') == 'noajax') {
225
+        $texte = preg_replace(',(class=[\'"][^\'"]*)ajax([^\'"]*[\'"]),Uims', "\\1\\2", $texte);
226
+    }
227 227
 
228
-	return $texte;
228
+    return $texte;
229 229
 }
230 230
 
231 231
 /**
@@ -243,11 +243,11 @@  discard block
 block discarded – undo
243 243
  * @return array $flux  Description et contenu de l'inclusion
244 244
  **/
245 245
 function f_recuperer_fond($flux) {
246
-	if (!test_espace_prive()) {
247
-		return $flux;
248
-	}
246
+    if (!test_espace_prive()) {
247
+        return $flux;
248
+    }
249 249
 
250
-	return f_afficher_blocs_ecrire($flux);
250
+    return f_afficher_blocs_ecrire($flux);
251 251
 }
252 252
 
253 253
 /**
@@ -261,30 +261,30 @@  discard block
 block discarded – undo
261 261
  * @return string         Contenu de la page envoyée au navigateur
262 262
  */
263 263
 function f_queue($texte) {
264
-	// eviter une inclusion si rien a faire
265
-	if (
266
-		_request('action') == 'cron'
267
-		or queue_sleep_time_to_next_job() > 0
268
-		or defined('_DEBUG_BLOCK_QUEUE')
269
-	) {
270
-		return $texte;
271
-	}
264
+    // eviter une inclusion si rien a faire
265
+    if (
266
+        _request('action') == 'cron'
267
+        or queue_sleep_time_to_next_job() > 0
268
+        or defined('_DEBUG_BLOCK_QUEUE')
269
+    ) {
270
+        return $texte;
271
+    }
272 272
 
273
-	include_spip('inc/queue');
274
-	$code = queue_affichage_cron();
273
+    include_spip('inc/queue');
274
+    $code = queue_affichage_cron();
275 275
 
276
-	// si rien a afficher
277
-	// ou si on est pas dans une page html, on ne sait rien faire de mieux
278
-	if (!$code or !isset($GLOBALS['html']) or !$GLOBALS['html']) {
279
-		return $texte;
280
-	}
276
+    // si rien a afficher
277
+    // ou si on est pas dans une page html, on ne sait rien faire de mieux
278
+    if (!$code or !isset($GLOBALS['html']) or !$GLOBALS['html']) {
279
+        return $texte;
280
+    }
281 281
 
282
-	// inserer avant le </body> fermant si on peut, a la fin de la page sinon
283
-	if (($p = strpos($texte, '</body>')) !== false) {
284
-		$texte = substr($texte, 0, $p) . $code . substr($texte, $p);
285
-	} else {
286
-		$texte .= $code;
287
-	}
282
+    // inserer avant le </body> fermant si on peut, a la fin de la page sinon
283
+    if (($p = strpos($texte, '</body>')) !== false) {
284
+        $texte = substr($texte, 0, $p) . $code . substr($texte, $p);
285
+    } else {
286
+        $texte .= $code;
287
+    }
288 288
 
289
-	return $texte;
289
+    return $texte;
290 290
 }
Please login to merge, or discard this patch.
ecrire/lang/ecrire_en.php 1 patch
Indentation   +836 added lines, -836 removed lines patch added patch discarded remove patch
@@ -4,429 +4,429 @@  discard block
 block discarded – undo
4 4
 // ** ne pas modifier le fichier **
5 5
 
6 6
 if (!defined('_ECRIRE_INC_VERSION')) {
7
-	return;
7
+    return;
8 8
 }
9 9
 
10 10
 $GLOBALS[$GLOBALS['idx_lang']] = array(
11 11
 
12
-	// A
13
-	'activer_plugin' => 'Enable plugin',
14
-	'affichage' => 'Display',
15
-	'aide_non_disponible' => 'This part of the online help is not yet available in this language.',
16
-	'annuler_recherche' => 'Cancel the search',
17
-	'auteur' => 'Author:',
18
-	'avis_acces_interdit' => 'Access forbidden.',
19
-	'avis_acces_interdit_prive' => 'You are not allowed to access the page <b>@exec@</b>.',
20
-	'avis_article_modifie' => 'Warning: @nom_auteur_modif@ modified this article @date_diff@ minutes ago',
21
-	'avis_aucun_resultat' => 'No results found.',
22
-	'avis_base_inaccessible' => 'Impossible to connect to the database @base@.',
23
-	'avis_chemin_invalide_1' => 'The path you selected',
24
-	'avis_chemin_invalide_2' => 'does not seem to be valid. Please go back to previous page and check the information you provided.',
25
-	'avis_connexion_echec_1' => 'Connection to the SQL server failed.',
26
-	'avis_connexion_echec_2' => 'Go back to the previous page, and check the information you provided.',
27
-	'avis_connexion_echec_3' => '<b>N.B.</b> On many servers, you must <b>request</b> activation of your access to the SQL database before you can use it. If you cannot connect to your database, check that activation has been done.',
28
-	'avis_connexion_erreur_creer_base' => 'The database could not be created.',
29
-	'avis_connexion_erreur_nom_base' => 'The database’s name should only contain letters, digits and hyphens.',
30
-	'avis_connexion_ldap_echec_1' => 'Connection to the LDAP server failed.',
31
-	'avis_connexion_ldap_echec_2' => 'Go back to the previous page, and check the information you provided.',
32
-	'avis_connexion_ldap_echec_3' => 'Alternatively, do not use LDAP support to import users.',
33
-	'avis_deplacement_rubrique' => 'Warning! This section contains @contient_breves@ news item@scb@: if you move it, please check this box to confirm.',
34
-	'avis_erreur_connexion_mysql' => 'SQL connection error',
35
-	'avis_espace_interdit' => '<b>Forbidden area</b> <div>SPIP is already installed.</div>',
36
-	'avis_lecture_noms_bases_1' => 'The installer could not read the names of any databases already installed.',
37
-	'avis_lecture_noms_bases_2' => 'Either no database is available, or the option listing databases was disabled for security reasons (which is the case with various hosting services).',
38
-	'avis_lecture_noms_bases_3' => 'In the second case, a database named after your login might already be available:',
39
-	'avis_non_acces_page' => 'You do not have access to this page.',
40
-	'avis_operation_echec' => 'The operation failed.',
41
-	'avis_operation_impossible' => 'Operation impossible',
42
-	'avis_suppression_base' => 'WARNING: data deletion is irreversible',
12
+    // A
13
+    'activer_plugin' => 'Enable plugin',
14
+    'affichage' => 'Display',
15
+    'aide_non_disponible' => 'This part of the online help is not yet available in this language.',
16
+    'annuler_recherche' => 'Cancel the search',
17
+    'auteur' => 'Author:',
18
+    'avis_acces_interdit' => 'Access forbidden.',
19
+    'avis_acces_interdit_prive' => 'You are not allowed to access the page <b>@exec@</b>.',
20
+    'avis_article_modifie' => 'Warning: @nom_auteur_modif@ modified this article @date_diff@ minutes ago',
21
+    'avis_aucun_resultat' => 'No results found.',
22
+    'avis_base_inaccessible' => 'Impossible to connect to the database @base@.',
23
+    'avis_chemin_invalide_1' => 'The path you selected',
24
+    'avis_chemin_invalide_2' => 'does not seem to be valid. Please go back to previous page and check the information you provided.',
25
+    'avis_connexion_echec_1' => 'Connection to the SQL server failed.',
26
+    'avis_connexion_echec_2' => 'Go back to the previous page, and check the information you provided.',
27
+    'avis_connexion_echec_3' => '<b>N.B.</b> On many servers, you must <b>request</b> activation of your access to the SQL database before you can use it. If you cannot connect to your database, check that activation has been done.',
28
+    'avis_connexion_erreur_creer_base' => 'The database could not be created.',
29
+    'avis_connexion_erreur_nom_base' => 'The database’s name should only contain letters, digits and hyphens.',
30
+    'avis_connexion_ldap_echec_1' => 'Connection to the LDAP server failed.',
31
+    'avis_connexion_ldap_echec_2' => 'Go back to the previous page, and check the information you provided.',
32
+    'avis_connexion_ldap_echec_3' => 'Alternatively, do not use LDAP support to import users.',
33
+    'avis_deplacement_rubrique' => 'Warning! This section contains @contient_breves@ news item@scb@: if you move it, please check this box to confirm.',
34
+    'avis_erreur_connexion_mysql' => 'SQL connection error',
35
+    'avis_espace_interdit' => '<b>Forbidden area</b> <div>SPIP is already installed.</div>',
36
+    'avis_lecture_noms_bases_1' => 'The installer could not read the names of any databases already installed.',
37
+    'avis_lecture_noms_bases_2' => 'Either no database is available, or the option listing databases was disabled for security reasons (which is the case with various hosting services).',
38
+    'avis_lecture_noms_bases_3' => 'In the second case, a database named after your login might already be available:',
39
+    'avis_non_acces_page' => 'You do not have access to this page.',
40
+    'avis_operation_echec' => 'The operation failed.',
41
+    'avis_operation_impossible' => 'Operation impossible',
42
+    'avis_suppression_base' => 'WARNING: data deletion is irreversible',
43 43
 
44
-	// B
45
-	'bouton_acces_ldap' => 'Add LDAP access',
46
-	'bouton_ajouter' => 'Add',
47
-	'bouton_annuler' => 'Cancel',
48
-	'bouton_cache_activer' => 'Re-activate the cache',
49
-	'bouton_cache_desactiver' => 'Disable the cache momentarily',
50
-	'bouton_demande_publication' => 'Request publication of this article',
51
-	'bouton_desactive_tout' => 'Disable all',
52
-	'bouton_desinstaller' => 'Uninstall',
53
-	'bouton_effacer_tout' => 'Delete ALL',
54
-	'bouton_envoyer_message' => 'Message complete: send',
55
-	'bouton_fermer' => 'Close',
56
-	'bouton_mettre_a_jour_base' => 'Update the database',
57
-	'bouton_modifier' => 'Modify',
58
-	'bouton_radio_afficher' => 'Show',
59
-	'bouton_radio_apparaitre_liste_redacteurs_connectes' => 'Appear in the list of editors online',
60
-	'bouton_radio_envoi_annonces_adresse' => 'Send announcements to:',
61
-	'bouton_radio_envoi_liste_nouveautes' => 'Send news update list',
62
-	'bouton_radio_non_apparaitre_liste_redacteurs_connectes' => 'Do not appear in the list of editors online',
63
-	'bouton_radio_non_envoi_annonces_editoriales' => 'Do not send any editorial announcements',
64
-	'bouton_redirection' => 'REDIRECT',
65
-	'bouton_reinitialiser_aux_valeurs_par_defaut' => 'Reset to default values',
66
-	'bouton_relancer_inscription' => 'Re-launch registration',
67
-	'bouton_relancer_inscriptions' => 'Re-launch registrations',
68
-	'bouton_relancer_installation' => 'Recommence installation',
69
-	'bouton_reset_password' => 'Create a new password and send by e-mail',
70
-	'bouton_suivant' => 'Next',
71
-	'bouton_tenter_recuperation' => 'Attempt to repair',
72
-	'bouton_test_proxy' => 'Test the proxy',
73
-	'bouton_vider_cache' => 'Empty the cache',
44
+    // B
45
+    'bouton_acces_ldap' => 'Add LDAP access',
46
+    'bouton_ajouter' => 'Add',
47
+    'bouton_annuler' => 'Cancel',
48
+    'bouton_cache_activer' => 'Re-activate the cache',
49
+    'bouton_cache_desactiver' => 'Disable the cache momentarily',
50
+    'bouton_demande_publication' => 'Request publication of this article',
51
+    'bouton_desactive_tout' => 'Disable all',
52
+    'bouton_desinstaller' => 'Uninstall',
53
+    'bouton_effacer_tout' => 'Delete ALL',
54
+    'bouton_envoyer_message' => 'Message complete: send',
55
+    'bouton_fermer' => 'Close',
56
+    'bouton_mettre_a_jour_base' => 'Update the database',
57
+    'bouton_modifier' => 'Modify',
58
+    'bouton_radio_afficher' => 'Show',
59
+    'bouton_radio_apparaitre_liste_redacteurs_connectes' => 'Appear in the list of editors online',
60
+    'bouton_radio_envoi_annonces_adresse' => 'Send announcements to:',
61
+    'bouton_radio_envoi_liste_nouveautes' => 'Send news update list',
62
+    'bouton_radio_non_apparaitre_liste_redacteurs_connectes' => 'Do not appear in the list of editors online',
63
+    'bouton_radio_non_envoi_annonces_editoriales' => 'Do not send any editorial announcements',
64
+    'bouton_redirection' => 'REDIRECT',
65
+    'bouton_reinitialiser_aux_valeurs_par_defaut' => 'Reset to default values',
66
+    'bouton_relancer_inscription' => 'Re-launch registration',
67
+    'bouton_relancer_inscriptions' => 'Re-launch registrations',
68
+    'bouton_relancer_installation' => 'Recommence installation',
69
+    'bouton_reset_password' => 'Create a new password and send by e-mail',
70
+    'bouton_suivant' => 'Next',
71
+    'bouton_tenter_recuperation' => 'Attempt to repair',
72
+    'bouton_test_proxy' => 'Test the proxy',
73
+    'bouton_vider_cache' => 'Empty the cache',
74 74
 
75
-	// C
76
-	'cache_modifiable_webmestre' => 'This parameter can be modified by the webmaster.',
77
-	'calendrier_synchro' => 'If you use a calendar application compatible with <b>iCal</b>, you can synchronise it with information from this site.',
78
-	'config_activer_champs' => 'Activate the following fields',
79
-	'config_choix_base_sup' => 'Choose a database on this server',
80
-	'config_erreur_base_sup' => 'SPIP does not have access to the list of databases available',
81
-	'config_info_base_sup' => 'If you need to query other databases using SPIP, whether on this SQL server or elsewhere, use this form to declare them. If you leave any fields empty, connection details to the main database will be used.',
82
-	'config_info_base_sup_disponibles' => 'Additional databases to which queries may be sent:',
83
-	'config_info_enregistree' => 'The new configuration has been saved',
84
-	'config_info_logos' => 'Each element of the site can have its own logo as well as a "mouseover" logo',
85
-	'config_info_logos_utiliser' => 'Use logos',
86
-	'config_info_logos_utiliser_non' => 'Do not use logos',
87
-	'config_info_logos_utiliser_survol' => 'Use "mouseover" logos',
88
-	'config_info_logos_utiliser_survol_non' => 'Do not use "mouseover" logos',
89
-	'config_info_redirection' => 'By activating this option you can create virtual articles, which are simply links to articles published on other sites, not necessarily using SPIP.',
90
-	'config_redirection' => 'Virtual articles',
91
-	'config_titre_base_sup' => 'Declaration of an additional database',
92
-	'config_titre_base_sup_choix' => 'Choose an additional database',
93
-	'connexion_ldap' => 'Connection:',
94
-	'creer_et_associer_un_auteur' => 'Create and associate an author',
75
+    // C
76
+    'cache_modifiable_webmestre' => 'This parameter can be modified by the webmaster.',
77
+    'calendrier_synchro' => 'If you use a calendar application compatible with <b>iCal</b>, you can synchronise it with information from this site.',
78
+    'config_activer_champs' => 'Activate the following fields',
79
+    'config_choix_base_sup' => 'Choose a database on this server',
80
+    'config_erreur_base_sup' => 'SPIP does not have access to the list of databases available',
81
+    'config_info_base_sup' => 'If you need to query other databases using SPIP, whether on this SQL server or elsewhere, use this form to declare them. If you leave any fields empty, connection details to the main database will be used.',
82
+    'config_info_base_sup_disponibles' => 'Additional databases to which queries may be sent:',
83
+    'config_info_enregistree' => 'The new configuration has been saved',
84
+    'config_info_logos' => 'Each element of the site can have its own logo as well as a "mouseover" logo',
85
+    'config_info_logos_utiliser' => 'Use logos',
86
+    'config_info_logos_utiliser_non' => 'Do not use logos',
87
+    'config_info_logos_utiliser_survol' => 'Use "mouseover" logos',
88
+    'config_info_logos_utiliser_survol_non' => 'Do not use "mouseover" logos',
89
+    'config_info_redirection' => 'By activating this option you can create virtual articles, which are simply links to articles published on other sites, not necessarily using SPIP.',
90
+    'config_redirection' => 'Virtual articles',
91
+    'config_titre_base_sup' => 'Declaration of an additional database',
92
+    'config_titre_base_sup_choix' => 'Choose an additional database',
93
+    'connexion_ldap' => 'Connection:',
94
+    'creer_et_associer_un_auteur' => 'Create and associate an author',
95 95
 
96
-	// D
97
-	'date_mot_heures' => 'H',
96
+    // D
97
+    'date_mot_heures' => 'H',
98 98
 
99
-	// E
100
-	'ecran_connexion_couleur_principale' => 'Main colour',
101
-	'ecran_connexion_image_fond' => 'Background image',
102
-	'ecran_connexion_image_fond_explication' => 'Use an image (JPEG format, 1920x1080 pixels)',
103
-	'ecran_connexion_image_revenir_couleur_defaut' => 'Back to the default colour',
104
-	'ecran_connexion_titre' => 'Connection screen',
105
-	'ecran_securite' => '+ safety screen @version@',
106
-	'email' => 'email',
107
-	'email_2' => 'email:',
108
-	'en_savoir_plus' => 'Learn more',
109
-	'entree_adresse_annuaire' => 'Directory address',
110
-	'entree_adresse_email' => 'Your email address',
111
-	'entree_adresse_email_2' => 'E-mail address',
112
-	'entree_base_donnee_1' => 'Database address',
113
-	'entree_base_donnee_2' => '(This address is often your site’s URL, although sometimes it will be "localhost", and sometimes it should be left blank.)',
114
-	'entree_biographie' => 'Brief biography',
115
-	'entree_chemin_acces' => '<b>Enter</b> the path:',
116
-	'entree_cle_pgp' => 'Your PGP key',
117
-	'entree_cle_pgp_2' => 'PGP key',
118
-	'entree_contenu_rubrique' => '(Brief description of the content of this section.)',
119
-	'entree_identifiants_connexion' => 'Your connection identifiers...',
120
-	'entree_identifiants_connexion_2' => 'Connection identifiers',
121
-	'entree_informations_connexion_ldap' => 'Please fill this form with the LDAP connection information provided by your system or network administrator.',
122
-	'entree_infos_perso' => 'Who are you?',
123
-	'entree_infos_perso_2' => 'Who is the author?',
124
-	'entree_interieur_rubrique' => 'In the section:',
125
-	'entree_liens_sites' => '<b>Hyperlink</b> (reference, site to visit etc.)',
126
-	'entree_login' => 'Your login',
127
-	'entree_login_connexion_1' => 'Connection login',
128
-	'entree_login_connexion_2' => '(Sometimes matches your FTP account login and sometimes left empty)',
129
-	'entree_mot_passe' => 'Your password',
130
-	'entree_mot_passe_1' => 'Password',
131
-	'entree_mot_passe_2' => '(Sometimes matches your FTP access password and sometimes left empty)',
132
-	'entree_nom_fichier' => 'Please enter the filename @texte_compresse@:',
133
-	'entree_nom_pseudo' => 'Your name or alias',
134
-	'entree_nom_pseudo_1' => '(Your name or alias)',
135
-	'entree_nom_pseudo_2' => 'Name or alias',
136
-	'entree_nom_site' => 'Website’s name',
137
-	'entree_nom_site_2' => 'Author’s website’s name',
138
-	'entree_nouveau_passe' => 'New password',
139
-	'entree_passe_ldap' => 'Password',
140
-	'entree_port_annuaire' => 'Port number of the directory',
141
-	'entree_signature' => 'Signature',
142
-	'entree_titre_obligatoire' => '<b>Title</b> [Required]<br />',
143
-	'entree_url' => 'Website’s URL',
144
-	'entree_url_2' => 'Website’s URL',
145
-	'erreur_connect_deja_existant' => 'A server by that name already exists',
146
-	'erreur_contenu_suspect' => 'Text escaped',
147
-	'erreur_email_deja_existant' => 'This email address has already been registered.',
148
-	'erreur_nom_connect_incorrect' => 'Server name not allowed',
149
-	'erreur_plugin_attribut_balise_manquant' => 'Missing attribute @attribut@ in tag @balise@',
150
-	'erreur_plugin_desinstalation_echouee' => 'Uninstallation of the plugin failed. However, you may deactivate it.',
151
-	'erreur_plugin_fichier_absent' => 'File missing',
152
-	'erreur_plugin_fichier_def_absent' => 'Definition file missing',
153
-	'erreur_plugin_nom_fonction_interdit' => 'Prohibited function name',
154
-	'erreur_plugin_nom_manquant' => 'Missing plugin name',
155
-	'erreur_plugin_prefix_manquant' => 'Namespace undefined for this plugin',
156
-	'erreur_plugin_tag_plugin_absent' => '&lt;plugin&gt; missing in the definition file',
157
-	'erreur_plugin_version_manquant' => 'Plugin version missing',
158
-	'erreur_type_fichier' => 'Wrong file type',
99
+    // E
100
+    'ecran_connexion_couleur_principale' => 'Main colour',
101
+    'ecran_connexion_image_fond' => 'Background image',
102
+    'ecran_connexion_image_fond_explication' => 'Use an image (JPEG format, 1920x1080 pixels)',
103
+    'ecran_connexion_image_revenir_couleur_defaut' => 'Back to the default colour',
104
+    'ecran_connexion_titre' => 'Connection screen',
105
+    'ecran_securite' => '+ safety screen @version@',
106
+    'email' => 'email',
107
+    'email_2' => 'email:',
108
+    'en_savoir_plus' => 'Learn more',
109
+    'entree_adresse_annuaire' => 'Directory address',
110
+    'entree_adresse_email' => 'Your email address',
111
+    'entree_adresse_email_2' => 'E-mail address',
112
+    'entree_base_donnee_1' => 'Database address',
113
+    'entree_base_donnee_2' => '(This address is often your site’s URL, although sometimes it will be "localhost", and sometimes it should be left blank.)',
114
+    'entree_biographie' => 'Brief biography',
115
+    'entree_chemin_acces' => '<b>Enter</b> the path:',
116
+    'entree_cle_pgp' => 'Your PGP key',
117
+    'entree_cle_pgp_2' => 'PGP key',
118
+    'entree_contenu_rubrique' => '(Brief description of the content of this section.)',
119
+    'entree_identifiants_connexion' => 'Your connection identifiers...',
120
+    'entree_identifiants_connexion_2' => 'Connection identifiers',
121
+    'entree_informations_connexion_ldap' => 'Please fill this form with the LDAP connection information provided by your system or network administrator.',
122
+    'entree_infos_perso' => 'Who are you?',
123
+    'entree_infos_perso_2' => 'Who is the author?',
124
+    'entree_interieur_rubrique' => 'In the section:',
125
+    'entree_liens_sites' => '<b>Hyperlink</b> (reference, site to visit etc.)',
126
+    'entree_login' => 'Your login',
127
+    'entree_login_connexion_1' => 'Connection login',
128
+    'entree_login_connexion_2' => '(Sometimes matches your FTP account login and sometimes left empty)',
129
+    'entree_mot_passe' => 'Your password',
130
+    'entree_mot_passe_1' => 'Password',
131
+    'entree_mot_passe_2' => '(Sometimes matches your FTP access password and sometimes left empty)',
132
+    'entree_nom_fichier' => 'Please enter the filename @texte_compresse@:',
133
+    'entree_nom_pseudo' => 'Your name or alias',
134
+    'entree_nom_pseudo_1' => '(Your name or alias)',
135
+    'entree_nom_pseudo_2' => 'Name or alias',
136
+    'entree_nom_site' => 'Website’s name',
137
+    'entree_nom_site_2' => 'Author’s website’s name',
138
+    'entree_nouveau_passe' => 'New password',
139
+    'entree_passe_ldap' => 'Password',
140
+    'entree_port_annuaire' => 'Port number of the directory',
141
+    'entree_signature' => 'Signature',
142
+    'entree_titre_obligatoire' => '<b>Title</b> [Required]<br />',
143
+    'entree_url' => 'Website’s URL',
144
+    'entree_url_2' => 'Website’s URL',
145
+    'erreur_connect_deja_existant' => 'A server by that name already exists',
146
+    'erreur_contenu_suspect' => 'Text escaped',
147
+    'erreur_email_deja_existant' => 'This email address has already been registered.',
148
+    'erreur_nom_connect_incorrect' => 'Server name not allowed',
149
+    'erreur_plugin_attribut_balise_manquant' => 'Missing attribute @attribut@ in tag @balise@',
150
+    'erreur_plugin_desinstalation_echouee' => 'Uninstallation of the plugin failed. However, you may deactivate it.',
151
+    'erreur_plugin_fichier_absent' => 'File missing',
152
+    'erreur_plugin_fichier_def_absent' => 'Definition file missing',
153
+    'erreur_plugin_nom_fonction_interdit' => 'Prohibited function name',
154
+    'erreur_plugin_nom_manquant' => 'Missing plugin name',
155
+    'erreur_plugin_prefix_manquant' => 'Namespace undefined for this plugin',
156
+    'erreur_plugin_tag_plugin_absent' => '&lt;plugin&gt; missing in the definition file',
157
+    'erreur_plugin_version_manquant' => 'Plugin version missing',
158
+    'erreur_type_fichier' => 'Wrong file type',
159 159
 
160
-	// H
161
-	'htaccess_a_simuler' => 'Warning: your HTTP server configuration ignores @htaccess@ files. To ensure good security, you should change the configuration for this. Alternatively, you should make sure that the constants @constantes@ (definable in the file mes_options.php) have as values directories outside @document_root@.',
162
-	'htaccess_inoperant' => 'inoperative htaccess',
160
+    // H
161
+    'htaccess_a_simuler' => 'Warning: your HTTP server configuration ignores @htaccess@ files. To ensure good security, you should change the configuration for this. Alternatively, you should make sure that the constants @constantes@ (definable in the file mes_options.php) have as values directories outside @document_root@.',
162
+    'htaccess_inoperant' => 'inoperative htaccess',
163 163
 
164
-	// I
165
-	'ical_info1' => 'This page offers several tools to be kept  up-to-date with website’s activity.',
166
-	'ical_info2' => 'For more information, do not hesitate to visit <a href="@spipnet@">SPIP’s documentation</a>.',
167
-	'ical_info_calendrier' => 'Two calendars are available. The first is a general, public calendar showing  articles as they are published. The second is personal and contains editorial announcements as well as your latest private messages: it is reserved for you via a personal key that you can modify at any time by renewing your password.',
168
-	'ical_methode_http' => 'Downloading',
169
-	'ical_methode_webcal' => 'Synchronisation (webcal://)',
170
-	'ical_texte_js' => 'A line of javascript allows you to easily display the most recent articles published on this site on any other site belonging to you.',
171
-	'ical_texte_prive' => 'This calendar, which is strictly personal, informs you of the private editorial activity of this site (tasks, personal appointments, articles and news items submitted etc.).',
172
-	'ical_texte_public' => 'This calendar allows you to follow the public activity of this site (newly-published articles and news items).',
173
-	'ical_texte_rss' => 'You can syndicate the latest news from this site in any XML/RSS (Rich Site Summary) reader. This is also the format that allows SPIP to read the latest news published by other sites using a compatible exchange format (syndicated sites).',
174
-	'ical_titre_js' => 'Javascript',
175
-	'ical_titre_mailing' => 'Mailing-list',
176
-	'ical_titre_rss' => 'Syndication files',
177
-	'icone_accueil' => 'Home',
178
-	'icone_activer_cookie' => 'Place a cookie',
179
-	'icone_activite' => 'Feedback',
180
-	'icone_admin_plugin' => 'Manage plugins',
181
-	'icone_administration' => 'Maintenance',
182
-	'icone_afficher_auteurs' => 'Show authors',
183
-	'icone_afficher_visiteurs' => 'Show visitors',
184
-	'icone_arret_discussion' => 'Stop participating in this discussion',
185
-	'icone_calendrier' => 'Calendar',
186
-	'icone_configuration' => 'Configuration',
187
-	'icone_creer_auteur' => 'Create a new author and link him/her to this article',
188
-	'icone_creer_mot_cle' => 'Create a new keyword and link it to this article',
189
-	'icone_creer_rubrique_2' => 'Create a new section',
190
-	'icone_developpement' => 'Development',
191
-	'icone_edition' => 'Edit',
192
-	'icone_ma_langue' => 'My language',
193
-	'icone_mes_infos' => 'My details',
194
-	'icone_mes_preferences' => 'Preferences',
195
-	'icone_modifier_article' => 'Edit this article',
196
-	'icone_modifier_rubrique' => 'Edit this section',
197
-	'icone_publication' => 'Publish',
198
-	'icone_relancer_signataire' => 'Contact the signatory again',
199
-	'icone_retour' => 'Back',
200
-	'icone_retour_article' => 'Back to the article',
201
-	'icone_squelette' => 'Templates',
202
-	'icone_suivi_publication' => 'Publication follow up ',
203
-	'icone_supprimer_cookie' => 'Delete cookie',
204
-	'icone_supprimer_rubrique' => 'Delete this section',
205
-	'icone_supprimer_signature' => 'Delete this signature',
206
-	'icone_valider_signature' => 'Validate this signature',
207
-	'image_administrer_rubrique' => 'You can manage this section',
208
-	'impossible_modifier_login_auteur' => 'Login cannot be changed.',
209
-	'impossible_modifier_pass_auteur' => 'Password cannot be changed.',
210
-	'info_1_article' => '1 article',
211
-	'info_1_auteur' => '1 author',
212
-	'info_1_message' => '1 message',
213
-	'info_1_mot_cle' => '1 keyword',
214
-	'info_1_rubrique' => '1 section',
215
-	'info_1_visiteur' => '1 visitor',
216
-	'info_activer_cookie' => 'You can activate an <b>administration cookie</b>, which lets you switch easily between the public website and the admin area.',
217
-	'info_activer_menu_developpement' => 'Show the Development menu',
218
-	'info_admin_etre_webmestre' => 'Give me web administrator rights',
219
-	'info_admin_je_suis_webmestre' => 'I am a <b>webmaster</b>',
220
-	'info_admin_statuer_webmestre' => 'Give webmaster rights to this administrator ',
221
-	'info_admin_webmestre' => 'This administrator is <b>webmaster</b>',
222
-	'info_administrateur' => 'Administrator',
223
-	'info_administrateur_1' => 'Administrator',
224
-	'info_administrateur_2' => 'of the site (<i>use with caution</i>)',
225
-	'info_administrateur_site_01' => 'If you are a site administrator, please',
226
-	'info_administrateur_site_02' => 'click on this link',
227
-	'info_administrateurs' => 'Administrators',
228
-	'info_administrer_rubrique' => 'You can manage this section',
229
-	'info_adresse' => 'to this address:',
230
-	'info_adresse_desinscription' => 'Unsubscription address:',
231
-	'info_adresse_url' => 'URL of the public site',
232
-	'info_afficher_par_nb' => 'Show ',
233
-	'info_aide_en_ligne' => 'SPIP Online Help',
234
-	'info_ajout_image' => 'When you add images as attached documents to an article,
164
+    // I
165
+    'ical_info1' => 'This page offers several tools to be kept  up-to-date with website’s activity.',
166
+    'ical_info2' => 'For more information, do not hesitate to visit <a href="@spipnet@">SPIP’s documentation</a>.',
167
+    'ical_info_calendrier' => 'Two calendars are available. The first is a general, public calendar showing  articles as they are published. The second is personal and contains editorial announcements as well as your latest private messages: it is reserved for you via a personal key that you can modify at any time by renewing your password.',
168
+    'ical_methode_http' => 'Downloading',
169
+    'ical_methode_webcal' => 'Synchronisation (webcal://)',
170
+    'ical_texte_js' => 'A line of javascript allows you to easily display the most recent articles published on this site on any other site belonging to you.',
171
+    'ical_texte_prive' => 'This calendar, which is strictly personal, informs you of the private editorial activity of this site (tasks, personal appointments, articles and news items submitted etc.).',
172
+    'ical_texte_public' => 'This calendar allows you to follow the public activity of this site (newly-published articles and news items).',
173
+    'ical_texte_rss' => 'You can syndicate the latest news from this site in any XML/RSS (Rich Site Summary) reader. This is also the format that allows SPIP to read the latest news published by other sites using a compatible exchange format (syndicated sites).',
174
+    'ical_titre_js' => 'Javascript',
175
+    'ical_titre_mailing' => 'Mailing-list',
176
+    'ical_titre_rss' => 'Syndication files',
177
+    'icone_accueil' => 'Home',
178
+    'icone_activer_cookie' => 'Place a cookie',
179
+    'icone_activite' => 'Feedback',
180
+    'icone_admin_plugin' => 'Manage plugins',
181
+    'icone_administration' => 'Maintenance',
182
+    'icone_afficher_auteurs' => 'Show authors',
183
+    'icone_afficher_visiteurs' => 'Show visitors',
184
+    'icone_arret_discussion' => 'Stop participating in this discussion',
185
+    'icone_calendrier' => 'Calendar',
186
+    'icone_configuration' => 'Configuration',
187
+    'icone_creer_auteur' => 'Create a new author and link him/her to this article',
188
+    'icone_creer_mot_cle' => 'Create a new keyword and link it to this article',
189
+    'icone_creer_rubrique_2' => 'Create a new section',
190
+    'icone_developpement' => 'Development',
191
+    'icone_edition' => 'Edit',
192
+    'icone_ma_langue' => 'My language',
193
+    'icone_mes_infos' => 'My details',
194
+    'icone_mes_preferences' => 'Preferences',
195
+    'icone_modifier_article' => 'Edit this article',
196
+    'icone_modifier_rubrique' => 'Edit this section',
197
+    'icone_publication' => 'Publish',
198
+    'icone_relancer_signataire' => 'Contact the signatory again',
199
+    'icone_retour' => 'Back',
200
+    'icone_retour_article' => 'Back to the article',
201
+    'icone_squelette' => 'Templates',
202
+    'icone_suivi_publication' => 'Publication follow up ',
203
+    'icone_supprimer_cookie' => 'Delete cookie',
204
+    'icone_supprimer_rubrique' => 'Delete this section',
205
+    'icone_supprimer_signature' => 'Delete this signature',
206
+    'icone_valider_signature' => 'Validate this signature',
207
+    'image_administrer_rubrique' => 'You can manage this section',
208
+    'impossible_modifier_login_auteur' => 'Login cannot be changed.',
209
+    'impossible_modifier_pass_auteur' => 'Password cannot be changed.',
210
+    'info_1_article' => '1 article',
211
+    'info_1_auteur' => '1 author',
212
+    'info_1_message' => '1 message',
213
+    'info_1_mot_cle' => '1 keyword',
214
+    'info_1_rubrique' => '1 section',
215
+    'info_1_visiteur' => '1 visitor',
216
+    'info_activer_cookie' => 'You can activate an <b>administration cookie</b>, which lets you switch easily between the public website and the admin area.',
217
+    'info_activer_menu_developpement' => 'Show the Development menu',
218
+    'info_admin_etre_webmestre' => 'Give me web administrator rights',
219
+    'info_admin_je_suis_webmestre' => 'I am a <b>webmaster</b>',
220
+    'info_admin_statuer_webmestre' => 'Give webmaster rights to this administrator ',
221
+    'info_admin_webmestre' => 'This administrator is <b>webmaster</b>',
222
+    'info_administrateur' => 'Administrator',
223
+    'info_administrateur_1' => 'Administrator',
224
+    'info_administrateur_2' => 'of the site (<i>use with caution</i>)',
225
+    'info_administrateur_site_01' => 'If you are a site administrator, please',
226
+    'info_administrateur_site_02' => 'click on this link',
227
+    'info_administrateurs' => 'Administrators',
228
+    'info_administrer_rubrique' => 'You can manage this section',
229
+    'info_adresse' => 'to this address:',
230
+    'info_adresse_desinscription' => 'Unsubscription address:',
231
+    'info_adresse_url' => 'URL of the public site',
232
+    'info_afficher_par_nb' => 'Show ',
233
+    'info_aide_en_ligne' => 'SPIP Online Help',
234
+    'info_ajout_image' => 'When you add images as attached documents to an article,
235 235
   SPIP can automatically create thumbnails from
236 236
   inserted images. This will allow, for instance, the automated
237 237
   creation of a gallery or portfolio.',
238
-	'info_ajouter_rubrique' => 'Add another section to manage:',
239
-	'info_annonce_nouveautes' => 'Latest news announcements',
240
-	'info_article' => 'article',
241
-	'info_article_2' => 'articles',
242
-	'info_article_a_paraitre' => 'Post-dated articles set for publication',
243
-	'info_articles_02' => 'articles',
244
-	'info_articles_2' => 'Articles',
245
-	'info_articles_auteur' => 'Articles by this author',
246
-	'info_articles_miens' => 'My articles',
247
-	'info_articles_tous' => 'All the articles',
248
-	'info_articles_trouves' => 'Articles found',
249
-	'info_attente_validation' => 'Your articles awaiting validation',
250
-	'info_aucun_article' => 'No articles',
251
-	'info_aucun_auteur' => 'No authors',
252
-	'info_aucun_message' => 'No messages',
253
-	'info_aucun_rubrique' => 'No sections',
254
-	'info_aujourdhui' => 'today:',
255
-	'info_auteur_gere_rubriques' => 'This author manages the following sections:',
256
-	'info_auteur_gere_toutes_rubriques' => 'This author manage <b>all the sections</b>',
257
-	'info_auteur_gere_toutes_rubriques_2' => 'I manage <b>all the sections</b>',
258
-	'info_auteurs' => 'Authors',
259
-	'info_auteurs_par_tri' => 'Authors@partri@',
260
-	'info_auteurs_trouves' => 'Authors found',
261
-	'info_authentification_externe' => 'External authentication',
262
-	'info_avertissement' => 'Warning',
263
-	'info_barre_outils' => 'with its toolbar?',
264
-	'info_base_installee' => 'Your database structure has been installed.',
265
-	'info_bio' => 'Biography',
266
-	'info_cache_desactive' => 'The cache is temporarily disabled',
267
-	'info_chapeau' => 'Introduction',
268
-	'info_chapeau_2' => 'Introduction:',
269
-	'info_chemin_acces_1' => 'Options: <b>Access path in directory</b>',
270
-	'info_chemin_acces_2' => 'You must now configure the access path to the directory information. This information is essential to read the user profiles stored in the directory.',
271
-	'info_chemin_acces_annuaire' => 'Options: <b>Access path in directory</b>',
272
-	'info_choix_base' => 'Third step:',
273
-	'info_classement_1' => ' out of @liste@',
274
-	'info_classement_2' => ' out of @liste@',
275
-	'info_code_acces' => 'Do not forget your own access codes!',
276
-	'info_config_suivi' => 'If this address corresponds to a mailing list, you can indicate the subscription address for this list. This may be a URL (e.g. a webpage enabling subscription online), or an email address with a specific subject (for instance: <tt>@adresse_suivi@?subject=subscribe</tt>):',
277
-	'info_config_suivi_explication' => 'You can subscribe to the mailing-list for this site. You will then receive email announcements concerning articles and news items submitted for publication.',
278
-	'info_confirmer_passe' => 'Confirm new password:',
279
-	'info_conflit_edition_avis_non_sauvegarde' => 'Caution: the following fields have been modified elsewhere. Your changes to these fields have therefore not been saved.',
280
-	'info_conflit_edition_differences' => 'Differences:',
281
-	'info_conflit_edition_version_enregistree' => 'Saved version:',
282
-	'info_conflit_edition_votre_version' => 'Your version:',
283
-	'info_connexion_base' => 'Trying to connect to database',
284
-	'info_connexion_base_donnee' => 'Connection to your database',
285
-	'info_connexion_ldap_ok' => '<b>LDAP connection succeeded.</b><p> You can go to the next step.</p>',
286
-	'info_connexion_mysql' => 'Your SQL connection',
287
-	'info_connexion_ok' => 'Connection succeeded.',
288
-	'info_contact' => 'Contact',
289
-	'info_contenu_articles' => 'Article content',
290
-	'info_contributions' => 'Contributions',
291
-	'info_creation_paragraphe' => 'To create paragraphs, just leave blank lines.',
292
-	'info_creation_rubrique' => 'Before writing any articles,<br /> you must create at least one section.<br />',
293
-	'info_creation_tables' => 'Creating the database tables',
294
-	'info_creer_base' => '<b>Create</b> a new database:',
295
-	'info_dans_rubrique' => 'In section:',
296
-	'info_date_publication_anterieure' => 'Previously published on:',
297
-	'info_date_referencement' => 'THIS SITE REFERENCED ON:',
298
-	'info_derniere_etape' => 'Done!',
299
-	'info_descriptif' => 'Description:',
300
-	'info_desinstaller_plugin' => ' deactivates the plugin and deletes the data',
301
-	'info_discussion_cours' => 'Current discussions',
302
-	'info_ecrire_article' => 'Before writing any articles, you must create at least one section.',
303
-	'info_email_envoi' => 'Sender’s email address (optional)',
304
-	'info_email_envoi_txt' => 'Enter the sender’s email address used for sending emails (by default, the recipient’s address is used as the sender’s address) :',
305
-	'info_email_webmestre' => 'Webmaster’s email address',
306
-	'info_envoi_email_automatique' => 'Automated mailing',
307
-	'info_envoyer_maintenant' => 'Send now',
308
-	'info_etape_suivante' => 'Go to the next step',
309
-	'info_etape_suivante_1' => 'You can move on to the next step.',
310
-	'info_etape_suivante_2' => 'You can move on to the next step.',
311
-	'info_exceptions_proxy' => 'Exceptions for the proxy',
312
-	'info_exportation_base' => 'export database to @archive@',
313
-	'info_facilite_suivi_activite' => 'To simplify monitoring of the site’s editorial;
238
+    'info_ajouter_rubrique' => 'Add another section to manage:',
239
+    'info_annonce_nouveautes' => 'Latest news announcements',
240
+    'info_article' => 'article',
241
+    'info_article_2' => 'articles',
242
+    'info_article_a_paraitre' => 'Post-dated articles set for publication',
243
+    'info_articles_02' => 'articles',
244
+    'info_articles_2' => 'Articles',
245
+    'info_articles_auteur' => 'Articles by this author',
246
+    'info_articles_miens' => 'My articles',
247
+    'info_articles_tous' => 'All the articles',
248
+    'info_articles_trouves' => 'Articles found',
249
+    'info_attente_validation' => 'Your articles awaiting validation',
250
+    'info_aucun_article' => 'No articles',
251
+    'info_aucun_auteur' => 'No authors',
252
+    'info_aucun_message' => 'No messages',
253
+    'info_aucun_rubrique' => 'No sections',
254
+    'info_aujourdhui' => 'today:',
255
+    'info_auteur_gere_rubriques' => 'This author manages the following sections:',
256
+    'info_auteur_gere_toutes_rubriques' => 'This author manage <b>all the sections</b>',
257
+    'info_auteur_gere_toutes_rubriques_2' => 'I manage <b>all the sections</b>',
258
+    'info_auteurs' => 'Authors',
259
+    'info_auteurs_par_tri' => 'Authors@partri@',
260
+    'info_auteurs_trouves' => 'Authors found',
261
+    'info_authentification_externe' => 'External authentication',
262
+    'info_avertissement' => 'Warning',
263
+    'info_barre_outils' => 'with its toolbar?',
264
+    'info_base_installee' => 'Your database structure has been installed.',
265
+    'info_bio' => 'Biography',
266
+    'info_cache_desactive' => 'The cache is temporarily disabled',
267
+    'info_chapeau' => 'Introduction',
268
+    'info_chapeau_2' => 'Introduction:',
269
+    'info_chemin_acces_1' => 'Options: <b>Access path in directory</b>',
270
+    'info_chemin_acces_2' => 'You must now configure the access path to the directory information. This information is essential to read the user profiles stored in the directory.',
271
+    'info_chemin_acces_annuaire' => 'Options: <b>Access path in directory</b>',
272
+    'info_choix_base' => 'Third step:',
273
+    'info_classement_1' => ' out of @liste@',
274
+    'info_classement_2' => ' out of @liste@',
275
+    'info_code_acces' => 'Do not forget your own access codes!',
276
+    'info_config_suivi' => 'If this address corresponds to a mailing list, you can indicate the subscription address for this list. This may be a URL (e.g. a webpage enabling subscription online), or an email address with a specific subject (for instance: <tt>@adresse_suivi@?subject=subscribe</tt>):',
277
+    'info_config_suivi_explication' => 'You can subscribe to the mailing-list for this site. You will then receive email announcements concerning articles and news items submitted for publication.',
278
+    'info_confirmer_passe' => 'Confirm new password:',
279
+    'info_conflit_edition_avis_non_sauvegarde' => 'Caution: the following fields have been modified elsewhere. Your changes to these fields have therefore not been saved.',
280
+    'info_conflit_edition_differences' => 'Differences:',
281
+    'info_conflit_edition_version_enregistree' => 'Saved version:',
282
+    'info_conflit_edition_votre_version' => 'Your version:',
283
+    'info_connexion_base' => 'Trying to connect to database',
284
+    'info_connexion_base_donnee' => 'Connection to your database',
285
+    'info_connexion_ldap_ok' => '<b>LDAP connection succeeded.</b><p> You can go to the next step.</p>',
286
+    'info_connexion_mysql' => 'Your SQL connection',
287
+    'info_connexion_ok' => 'Connection succeeded.',
288
+    'info_contact' => 'Contact',
289
+    'info_contenu_articles' => 'Article content',
290
+    'info_contributions' => 'Contributions',
291
+    'info_creation_paragraphe' => 'To create paragraphs, just leave blank lines.',
292
+    'info_creation_rubrique' => 'Before writing any articles,<br /> you must create at least one section.<br />',
293
+    'info_creation_tables' => 'Creating the database tables',
294
+    'info_creer_base' => '<b>Create</b> a new database:',
295
+    'info_dans_rubrique' => 'In section:',
296
+    'info_date_publication_anterieure' => 'Previously published on:',
297
+    'info_date_referencement' => 'THIS SITE REFERENCED ON:',
298
+    'info_derniere_etape' => 'Done!',
299
+    'info_descriptif' => 'Description:',
300
+    'info_desinstaller_plugin' => ' deactivates the plugin and deletes the data',
301
+    'info_discussion_cours' => 'Current discussions',
302
+    'info_ecrire_article' => 'Before writing any articles, you must create at least one section.',
303
+    'info_email_envoi' => 'Sender’s email address (optional)',
304
+    'info_email_envoi_txt' => 'Enter the sender’s email address used for sending emails (by default, the recipient’s address is used as the sender’s address) :',
305
+    'info_email_webmestre' => 'Webmaster’s email address',
306
+    'info_envoi_email_automatique' => 'Automated mailing',
307
+    'info_envoyer_maintenant' => 'Send now',
308
+    'info_etape_suivante' => 'Go to the next step',
309
+    'info_etape_suivante_1' => 'You can move on to the next step.',
310
+    'info_etape_suivante_2' => 'You can move on to the next step.',
311
+    'info_exceptions_proxy' => 'Exceptions for the proxy',
312
+    'info_exportation_base' => 'export database to @archive@',
313
+    'info_facilite_suivi_activite' => 'To simplify monitoring of the site’s editorial;
314 314
   activities, SPIP can send rmail notifications, e.g. to an editors’ mailing list,
315 315
   of publication requests and article validations.',
316
-	'info_fichiers_authent' => 'Authentication file ".htpasswd"',
317
-	'info_forums_abo_invites' => 'Your site contains forums by subscription; visitors may register for them on the public site.',
318
-	'info_gauche_admin_tech' => '<b>Only webmasters have access to this page.</b><p> It provides access to various
316
+    'info_fichiers_authent' => 'Authentication file ".htpasswd"',
317
+    'info_forums_abo_invites' => 'Your site contains forums by subscription; visitors may register for them on the public site.',
318
+    'info_gauche_admin_tech' => '<b>Only webmasters have access to this page.</b><p> It provides access to various
319 319
 maintenance tasks. Some of them require a specific authentication process
320 320
 via FTP.</p>',
321
-	'info_gauche_admin_vider' => '<b>Only webmasters have access to this page.</b><p> It provides access to various
321
+    'info_gauche_admin_vider' => '<b>Only webmasters have access to this page.</b><p> It provides access to various
322 322
 maintenance tasks. Some of them require a specific authentication process
323 323
 via FTP.</p>',
324
-	'info_gauche_auteurs' => 'All the site authors are listed here.
324
+    'info_gauche_auteurs' => 'All the site authors are listed here.
325 325
  The status of each is indicated by the colour of their icon (administrator = green; editor = yellow).',
326
-	'info_gauche_auteurs_exterieurs' => 'Visiting authors, without any access to the site, are indicated by a blue icon; deleted authors by a grey icon.',
327
-	'info_gauche_messagerie' => 'Internal messaging lets you exchange messages between editors, keep memos (for personal use) or, display announcements on the admin area’s homepage (if you are an administrator).',
328
-	'info_gauche_statistiques_referers' => 'This page displays the list of <i>referrers</i>, i.e. websites containing links to your own site, for yesterday and today. The list is reset every 24 hours.',
329
-	'info_gauche_visiteurs_enregistres' => 'You will find here the visitors registered
326
+    'info_gauche_auteurs_exterieurs' => 'Visiting authors, without any access to the site, are indicated by a blue icon; deleted authors by a grey icon.',
327
+    'info_gauche_messagerie' => 'Internal messaging lets you exchange messages between editors, keep memos (for personal use) or, display announcements on the admin area’s homepage (if you are an administrator).',
328
+    'info_gauche_statistiques_referers' => 'This page displays the list of <i>referrers</i>, i.e. websites containing links to your own site, for yesterday and today. The list is reset every 24 hours.',
329
+    'info_gauche_visiteurs_enregistres' => 'You will find here the visitors registered
330 330
  for the public area of the site (subscription-only forums).',
331
-	'info_generation_miniatures_images' => 'Generation of thumbnail images',
332
-	'info_gerer_trad_objets' => '@objets@: manage translation links',
333
-	'info_hebergeur_desactiver_envoi_email' => 'Some hosts disable automated mail sending
331
+    'info_generation_miniatures_images' => 'Generation of thumbnail images',
332
+    'info_gerer_trad_objets' => '@objets@: manage translation links',
333
+    'info_hebergeur_desactiver_envoi_email' => 'Some hosts disable automated mail sending
334 334
 		on their servers. In this case the following features
335 335
 		of SPIP cannot be implemented.',
336
-	'info_hier' => 'yesterday:',
337
-	'info_identification_publique' => 'Your public identity...',
338
-	'info_image_process' => 'Select the best method to create thumbnails by clicking on the corresponding picture.',
339
-	'info_image_process2' => 'If you can’t see any images, then your server is not configured to use such tools. If you want to use these features, contact your provider’s technical support and ask for the «GD» or «Imagick» extensions to be installed.',
340
-	'info_images_auto' => 'Images calculated automatically',
341
-	'info_informations_personnelles' => 'Personal information',
342
-	'info_inscription' => 'Registered on',
343
-	'info_inscription_automatique' => 'Automatic registration for new editors',
344
-	'info_jeu_caractere' => 'Character set for the site',
345
-	'info_jours' => 'days',
346
-	'info_laisser_champs_vides' => 'leave these fields empty)',
347
-	'info_langues' => 'Site languages',
348
-	'info_ldap_ok' => 'LDAP authentication is installed.',
349
-	'info_lien_hypertexte' => 'Hyperlink:',
350
-	'info_liste_nouveautes_envoyee' => 'The news update list has been sent',
351
-	'info_liste_redacteurs_connectes' => 'List of editors online',
352
-	'info_login_existant' => 'This login already exists.',
353
-	'info_login_trop_court' => 'Login too short.',
354
-	'info_login_trop_court_car_pluriel' => 'Your login must contain at least @nb@ characters.',
355
-	'info_logos' => 'Logos',
356
-	'info_maximum' => 'maximum:',
357
-	'info_meme_rubrique' => 'In this section',
358
-	'info_message_en_redaction' => 'Your draft messages',
359
-	'info_message_technique' => 'Technical message:',
360
-	'info_messagerie_interne' => 'Internal messaging',
361
-	'info_mise_a_niveau_base' => 'SQL database upgrade',
362
-	'info_mise_a_niveau_base_2' => '{{Warning!}} You have installed an {older} SPIP version, prior to the one
336
+    'info_hier' => 'yesterday:',
337
+    'info_identification_publique' => 'Your public identity...',
338
+    'info_image_process' => 'Select the best method to create thumbnails by clicking on the corresponding picture.',
339
+    'info_image_process2' => 'If you can’t see any images, then your server is not configured to use such tools. If you want to use these features, contact your provider’s technical support and ask for the «GD» or «Imagick» extensions to be installed.',
340
+    'info_images_auto' => 'Images calculated automatically',
341
+    'info_informations_personnelles' => 'Personal information',
342
+    'info_inscription' => 'Registered on',
343
+    'info_inscription_automatique' => 'Automatic registration for new editors',
344
+    'info_jeu_caractere' => 'Character set for the site',
345
+    'info_jours' => 'days',
346
+    'info_laisser_champs_vides' => 'leave these fields empty)',
347
+    'info_langues' => 'Site languages',
348
+    'info_ldap_ok' => 'LDAP authentication is installed.',
349
+    'info_lien_hypertexte' => 'Hyperlink:',
350
+    'info_liste_nouveautes_envoyee' => 'The news update list has been sent',
351
+    'info_liste_redacteurs_connectes' => 'List of editors online',
352
+    'info_login_existant' => 'This login already exists.',
353
+    'info_login_trop_court' => 'Login too short.',
354
+    'info_login_trop_court_car_pluriel' => 'Your login must contain at least @nb@ characters.',
355
+    'info_logos' => 'Logos',
356
+    'info_maximum' => 'maximum:',
357
+    'info_meme_rubrique' => 'In this section',
358
+    'info_message_en_redaction' => 'Your draft messages',
359
+    'info_message_technique' => 'Technical message:',
360
+    'info_messagerie_interne' => 'Internal messaging',
361
+    'info_mise_a_niveau_base' => 'SQL database upgrade',
362
+    'info_mise_a_niveau_base_2' => '{{Warning!}} You have installed an {older} SPIP version, prior to the one
363 363
   originally installed on this website: your database is at risk of being corrupted
364 364
   and your site might not work properly anymore.<br />{{Please, re-install
365 365
   SPIP files.}}',
366
-	'info_modification_enregistree' => 'Your changes have been saved',
367
-	'info_modifier_auteur' => 'Edit author details:',
368
-	'info_modifier_rubrique' => 'Edit the section:',
369
-	'info_modifier_titre' => 'Edit: @titre@',
370
-	'info_mon_site_spip' => 'My SPIP site',
371
-	'info_moyenne' => 'average:',
372
-	'info_multi_cet_article' => 'Language for this article:',
373
-	'info_multi_langues_choisies' => 'Please select the languages to be made available to the editors of your site.
366
+    'info_modification_enregistree' => 'Your changes have been saved',
367
+    'info_modifier_auteur' => 'Edit author details:',
368
+    'info_modifier_rubrique' => 'Edit the section:',
369
+    'info_modifier_titre' => 'Edit: @titre@',
370
+    'info_mon_site_spip' => 'My SPIP site',
371
+    'info_moyenne' => 'average:',
372
+    'info_multi_cet_article' => 'Language for this article:',
373
+    'info_multi_langues_choisies' => 'Please select the languages to be made available to the editors of your site.
374 374
   Languages already used on your site (at the top of the list) cannot be disabled.',
375
-	'info_multi_objets' => '@objets@: activate the language menu',
376
-	'info_multi_secteurs' => '... only for root-level sections?',
377
-	'info_nb_articles' => '@nb@ articles',
378
-	'info_nb_auteurs' => '@nb@ authors',
379
-	'info_nb_messages' => '@nb@ messages',
380
-	'info_nb_mots_cles' => '@nb@ keywords',
381
-	'info_nb_rubriques' => '@nb@ sections',
382
-	'info_nb_visiteurs' => '@nb@ visitors',
383
-	'info_nom' => 'Name',
384
-	'info_nom_destinataire' => 'Name of recipient',
385
-	'info_nom_pas_conforme' => 'html tags are not allowed',
386
-	'info_nom_site' => 'Name of your site',
387
-	'info_nombre_articles' => '@nb_articles@ articles,',
388
-	'info_nombre_rubriques' => '@nb_rubriques@ sections,',
389
-	'info_nombre_sites' => '@nb_sites@ sites,',
390
-	'info_non_deplacer' => 'Do not move...',
391
-	'info_non_envoi_annonce_dernieres_nouveautes' => 'SPIP can send a site newsletter (list of newly-published articles and news items).
375
+    'info_multi_objets' => '@objets@: activate the language menu',
376
+    'info_multi_secteurs' => '... only for root-level sections?',
377
+    'info_nb_articles' => '@nb@ articles',
378
+    'info_nb_auteurs' => '@nb@ authors',
379
+    'info_nb_messages' => '@nb@ messages',
380
+    'info_nb_mots_cles' => '@nb@ keywords',
381
+    'info_nb_rubriques' => '@nb@ sections',
382
+    'info_nb_visiteurs' => '@nb@ visitors',
383
+    'info_nom' => 'Name',
384
+    'info_nom_destinataire' => 'Name of recipient',
385
+    'info_nom_pas_conforme' => 'html tags are not allowed',
386
+    'info_nom_site' => 'Name of your site',
387
+    'info_nombre_articles' => '@nb_articles@ articles,',
388
+    'info_nombre_rubriques' => '@nb_rubriques@ sections,',
389
+    'info_nombre_sites' => '@nb_sites@ sites,',
390
+    'info_non_deplacer' => 'Do not move...',
391
+    'info_non_envoi_annonce_dernieres_nouveautes' => 'SPIP can send a site newsletter (list of newly-published articles and news items).
392 392
   .',
393
-	'info_non_envoi_liste_nouveautes' => 'Do not send newsletter',
394
-	'info_non_modifiable' => 'cannot be modified',
395
-	'info_non_suppression_mot_cle' => 'I do not want to delete this keyword.',
396
-	'info_notes' => 'Footnotes',
397
-	'info_nouvel_article' => 'New article',
398
-	'info_nouvelle_traduction' => 'New translation:',
399
-	'info_numero_article' => 'ARTICLE NUMBER:',
400
-	'info_obligatoire_02' => '(Required)',
401
-	'info_option_accepter_visiteurs' => 'Allow visitor registration via the public site',
402
-	'info_option_ne_pas_accepter_visiteurs' => 'Disable visitor registration',
403
-	'info_options_avancees' => 'ADVANCED OPTIONS',
404
-	'info_ou' => 'or...',
405
-	'info_page_interdite' => 'Forbidden page',
406
-	'info_par_nom' => 'by name',
407
-	'info_par_nombre_article' => 'by number of articles',
408
-	'info_par_statut' => 'by status',
409
-	'info_par_tri' => '’(by @tri@)’',
410
-	'info_passe_trop_court' => 'Password too short.',
411
-	'info_passe_trop_court_car_pluriel' => 'Your password must contain at least @nb@ characters.',
412
-	'info_passes_identiques' => 'The two passwords are not identical.',
413
-	'info_plus_cinq_car' => 'more than 5 characters',
414
-	'info_plus_cinq_car_2' => '(More than 5 characters)',
415
-	'info_plus_trois_car' => '(More than 3 characters)',
416
-	'info_popularite' => 'popularity: @popularite@; visits: @visites@',
417
-	'info_post_scriptum' => 'Postscript',
418
-	'info_post_scriptum_2' => 'Postscript:',
419
-	'info_pour' => 'for',
420
-	'info_preview_texte' => 'It is possible to preview the site’s  various editorial elements with at least the "submitted" status, as well as the"editing in progress" elements of which you are the author. Should this preview mode be restricted to administrators, open to all authors, or disabled completely?',
421
-	'info_procedez_par_etape' => 'please proceed step by step',
422
-	'info_procedure_maj_version' => 'the upgrade procedure must be run to adapt
393
+    'info_non_envoi_liste_nouveautes' => 'Do not send newsletter',
394
+    'info_non_modifiable' => 'cannot be modified',
395
+    'info_non_suppression_mot_cle' => 'I do not want to delete this keyword.',
396
+    'info_notes' => 'Footnotes',
397
+    'info_nouvel_article' => 'New article',
398
+    'info_nouvelle_traduction' => 'New translation:',
399
+    'info_numero_article' => 'ARTICLE NUMBER:',
400
+    'info_obligatoire_02' => '(Required)',
401
+    'info_option_accepter_visiteurs' => 'Allow visitor registration via the public site',
402
+    'info_option_ne_pas_accepter_visiteurs' => 'Disable visitor registration',
403
+    'info_options_avancees' => 'ADVANCED OPTIONS',
404
+    'info_ou' => 'or...',
405
+    'info_page_interdite' => 'Forbidden page',
406
+    'info_par_nom' => 'by name',
407
+    'info_par_nombre_article' => 'by number of articles',
408
+    'info_par_statut' => 'by status',
409
+    'info_par_tri' => '’(by @tri@)’',
410
+    'info_passe_trop_court' => 'Password too short.',
411
+    'info_passe_trop_court_car_pluriel' => 'Your password must contain at least @nb@ characters.',
412
+    'info_passes_identiques' => 'The two passwords are not identical.',
413
+    'info_plus_cinq_car' => 'more than 5 characters',
414
+    'info_plus_cinq_car_2' => '(More than 5 characters)',
415
+    'info_plus_trois_car' => '(More than 3 characters)',
416
+    'info_popularite' => 'popularity: @popularite@; visits: @visites@',
417
+    'info_post_scriptum' => 'Postscript',
418
+    'info_post_scriptum_2' => 'Postscript:',
419
+    'info_pour' => 'for',
420
+    'info_preview_texte' => 'It is possible to preview the site’s  various editorial elements with at least the "submitted" status, as well as the"editing in progress" elements of which you are the author. Should this preview mode be restricted to administrators, open to all authors, or disabled completely?',
421
+    'info_procedez_par_etape' => 'please proceed step by step',
422
+    'info_procedure_maj_version' => 'the upgrade procedure must be run to adapt
423 423
  the database to this new version of SPIP.',
424
-	'info_proxy_ok' => 'Proxy test successful.',
425
-	'info_ps' => 'P.S.',
426
-	'info_publier' => 'publish',
427
-	'info_publies' => 'Your articles published online',
428
-	'info_question_accepter_visiteurs' => 'If your website’s templates allows visitors to register with no access to the admin area, please activate the following option:',
429
-	'info_question_inscription_nouveaux_redacteurs' => 'Do you wish to allow new editors to register
424
+    'info_proxy_ok' => 'Proxy test successful.',
425
+    'info_ps' => 'P.S.',
426
+    'info_publier' => 'publish',
427
+    'info_publies' => 'Your articles published online',
428
+    'info_question_accepter_visiteurs' => 'If your website’s templates allows visitors to register with no access to the admin area, please activate the following option:',
429
+    'info_question_inscription_nouveaux_redacteurs' => 'Do you wish to allow new editors to register
430 430
  from the public website? If you agree with this, visitors will be able to  register
431 431
   using an automatic form, and then access the admin area to
432 432
   write their own articles. <div class="notice">During the registration process, users usually receive an automatic email
@@ -434,403 +434,403 @@  discard block
 block discarded – undo
434 434
   service providers disallow sending emails from their
435 435
   servers: in that case, automated registration is not
436 436
   possible.</div>',
437
-	'info_qui_edite' => '@nom_auteur_modif@ worked on the contents @date_diff@ minutes ago',
438
-	'info_racine_site' => 'Site root',
439
-	'info_recharger_page' => 'Please wait a few moments, then reload this page.',
440
-	'info_recherche_auteur_zero' => 'No results for "@cherche_auteur@".',
441
-	'info_recommencer' => 'Please try again.',
442
-	'info_redacteur_1' => 'Editor',
443
-	'info_redacteur_2' => 'with access to the admin area (<i>recommended</i>)',
444
-	'info_redacteurs' => 'Editors',
445
-	'info_redaction_en_cours' => 'EDITING IN PROGRESS',
446
-	'info_redirection' => 'Redirection',
447
-	'info_redirection_activee' => 'Redirection is enabled.',
448
-	'info_redirection_boucle' => 'You are trying to redirect the article toward itself. ',
449
-	'info_redirection_desactivee' => 'Redirection is deleted.',
450
-	'info_refuses' => 'Your rejected articles ',
451
-	'info_reglage_ldap' => 'Options: <b>Adjusting LDAP import</b>',
452
-	'info_renvoi_article' => '<b>Redirection.</b> This article redirects to:',
453
-	'info_reserve_admin' => 'Only administrators can modify this address.',
454
-	'info_restreindre_rubrique' => 'Restrict management to section:',
455
-	'info_resultat_recherche' => 'Search results:',
456
-	'info_rubriques' => 'Sections',
457
-	'info_rubriques_02' => 'sections',
458
-	'info_rubriques_trouvees' => 'Sections found',
459
-	'info_sans_titre' => 'Untitled',
460
-	'info_selection_chemin_acces' => '<b>Select</b> the access path in the directory:',
461
-	'info_signatures' => 'signatures',
462
-	'info_site' => 'Site',
463
-	'info_site_2' => 'site:',
464
-	'info_site_min' => 'site',
465
-	'info_site_reference_2' => 'Referenced site',
466
-	'info_site_web' => 'Web site:',
467
-	'info_sites' => 'sites',
468
-	'info_sites_lies_mot' => 'Referenced sites with this keyword',
469
-	'info_sites_proxy' => 'Using a proxy',
470
-	'info_sites_trouves' => 'Sites found',
471
-	'info_sous_titre' => 'Subtitle:',
472
-	'info_statut_administrateur' => 'Administrator',
473
-	'info_statut_auteur' => 'This author’s status:',
474
-	'info_statut_auteur_2' => 'I am',
475
-	'info_statut_auteur_a_confirmer' => 'Registration to be confirmed',
476
-	'info_statut_auteur_autre' => 'Other status:',
477
-	'info_statut_redacteur' => 'Editor',
478
-	'info_statut_utilisateurs_1' => 'Default status for imported users',
479
-	'info_statut_utilisateurs_2' => 'Choose the status to be attributed to persons present in the LDAP directory when they connect for the first time. You can modify this value for each individual author later on.',
480
-	'info_suivi_activite' => 'Follow editorial activity',
481
-	'info_surtitre' => 'Top title:',
482
-	'info_syndication_integrale_1' => 'Your site provides syndication files (see "<a href="@url@">@titre@</a>").',
483
-	'info_syndication_integrale_2' => 'Do you wish to send whole articles or only a summary of a few hundred characters?',
484
-	'info_table_prefix' => 'It is possible to change the prefix of the names of the database tables. (you need to do this if you are installing several sites in the same database). The prefix must be written in unaccented, lower-case letters without any spaces.',
485
-	'info_taille_maximale_images' => 'SPIP will test for the maximum image size (in millions of pixels) which it can process.<br /> Images bigger than this will not be reduced.',
486
-	'info_taille_maximale_vignette' => 'Maximum size for vignettes generated by the system:',
487
-	'info_terminer_installation' => 'You can now finish the standard installation process.',
488
-	'info_texte' => 'Text',
489
-	'info_texte_explicatif' => 'Explanation',
490
-	'info_texte_long' => '(The text is long: it will appear in several parts which will be reassembled after validation.)',
491
-	'info_texte_message' => 'Text of your message:',
492
-	'info_texte_message_02' => 'Message text',
493
-	'info_titre' => 'Title:',
494
-	'info_total' => 'total:',
495
-	'info_tous_articles_en_redaction' => 'All articles in progress',
496
-	'info_tous_articles_presents' => 'All articles published in this section',
497
-	'info_tous_articles_refuses' => 'All refused articles',
498
-	'info_tous_les' => 'every:',
499
-	'info_tout_site' => 'The entire site',
500
-	'info_tout_site2' => 'The article has not been translated into this language.',
501
-	'info_tout_site3' => 'The article has been translated into this language, but changes have since been made to the reference article. The translation needs updating.',
502
-	'info_tout_site4' => 'The article has been translated into this language, and the translation is up-to-date.',
503
-	'info_tout_site5' => 'Original article.',
504
-	'info_tout_site6' => '<b>Warning:</b> only original articles are displayed.
437
+    'info_qui_edite' => '@nom_auteur_modif@ worked on the contents @date_diff@ minutes ago',
438
+    'info_racine_site' => 'Site root',
439
+    'info_recharger_page' => 'Please wait a few moments, then reload this page.',
440
+    'info_recherche_auteur_zero' => 'No results for "@cherche_auteur@".',
441
+    'info_recommencer' => 'Please try again.',
442
+    'info_redacteur_1' => 'Editor',
443
+    'info_redacteur_2' => 'with access to the admin area (<i>recommended</i>)',
444
+    'info_redacteurs' => 'Editors',
445
+    'info_redaction_en_cours' => 'EDITING IN PROGRESS',
446
+    'info_redirection' => 'Redirection',
447
+    'info_redirection_activee' => 'Redirection is enabled.',
448
+    'info_redirection_boucle' => 'You are trying to redirect the article toward itself. ',
449
+    'info_redirection_desactivee' => 'Redirection is deleted.',
450
+    'info_refuses' => 'Your rejected articles ',
451
+    'info_reglage_ldap' => 'Options: <b>Adjusting LDAP import</b>',
452
+    'info_renvoi_article' => '<b>Redirection.</b> This article redirects to:',
453
+    'info_reserve_admin' => 'Only administrators can modify this address.',
454
+    'info_restreindre_rubrique' => 'Restrict management to section:',
455
+    'info_resultat_recherche' => 'Search results:',
456
+    'info_rubriques' => 'Sections',
457
+    'info_rubriques_02' => 'sections',
458
+    'info_rubriques_trouvees' => 'Sections found',
459
+    'info_sans_titre' => 'Untitled',
460
+    'info_selection_chemin_acces' => '<b>Select</b> the access path in the directory:',
461
+    'info_signatures' => 'signatures',
462
+    'info_site' => 'Site',
463
+    'info_site_2' => 'site:',
464
+    'info_site_min' => 'site',
465
+    'info_site_reference_2' => 'Referenced site',
466
+    'info_site_web' => 'Web site:',
467
+    'info_sites' => 'sites',
468
+    'info_sites_lies_mot' => 'Referenced sites with this keyword',
469
+    'info_sites_proxy' => 'Using a proxy',
470
+    'info_sites_trouves' => 'Sites found',
471
+    'info_sous_titre' => 'Subtitle:',
472
+    'info_statut_administrateur' => 'Administrator',
473
+    'info_statut_auteur' => 'This author’s status:',
474
+    'info_statut_auteur_2' => 'I am',
475
+    'info_statut_auteur_a_confirmer' => 'Registration to be confirmed',
476
+    'info_statut_auteur_autre' => 'Other status:',
477
+    'info_statut_redacteur' => 'Editor',
478
+    'info_statut_utilisateurs_1' => 'Default status for imported users',
479
+    'info_statut_utilisateurs_2' => 'Choose the status to be attributed to persons present in the LDAP directory when they connect for the first time. You can modify this value for each individual author later on.',
480
+    'info_suivi_activite' => 'Follow editorial activity',
481
+    'info_surtitre' => 'Top title:',
482
+    'info_syndication_integrale_1' => 'Your site provides syndication files (see "<a href="@url@">@titre@</a>").',
483
+    'info_syndication_integrale_2' => 'Do you wish to send whole articles or only a summary of a few hundred characters?',
484
+    'info_table_prefix' => 'It is possible to change the prefix of the names of the database tables. (you need to do this if you are installing several sites in the same database). The prefix must be written in unaccented, lower-case letters without any spaces.',
485
+    'info_taille_maximale_images' => 'SPIP will test for the maximum image size (in millions of pixels) which it can process.<br /> Images bigger than this will not be reduced.',
486
+    'info_taille_maximale_vignette' => 'Maximum size for vignettes generated by the system:',
487
+    'info_terminer_installation' => 'You can now finish the standard installation process.',
488
+    'info_texte' => 'Text',
489
+    'info_texte_explicatif' => 'Explanation',
490
+    'info_texte_long' => '(The text is long: it will appear in several parts which will be reassembled after validation.)',
491
+    'info_texte_message' => 'Text of your message:',
492
+    'info_texte_message_02' => 'Message text',
493
+    'info_titre' => 'Title:',
494
+    'info_total' => 'total:',
495
+    'info_tous_articles_en_redaction' => 'All articles in progress',
496
+    'info_tous_articles_presents' => 'All articles published in this section',
497
+    'info_tous_articles_refuses' => 'All refused articles',
498
+    'info_tous_les' => 'every:',
499
+    'info_tout_site' => 'The entire site',
500
+    'info_tout_site2' => 'The article has not been translated into this language.',
501
+    'info_tout_site3' => 'The article has been translated into this language, but changes have since been made to the reference article. The translation needs updating.',
502
+    'info_tout_site4' => 'The article has been translated into this language, and the translation is up-to-date.',
503
+    'info_tout_site5' => 'Original article.',
504
+    'info_tout_site6' => '<b>Warning:</b> only original articles are displayed.
505 505
 Translations are linked to the original,
506 506
 and their status is colour-coded:',
507
-	'info_traductions' => 'Translations',
508
-	'info_travail_colaboratif' => 'Collaborative work on articles',
509
-	'info_un_article' => 'an article,',
510
-	'info_un_site' => 'a site,',
511
-	'info_une_rubrique' => 'a section,',
512
-	'info_une_rubrique_02' => '1 section',
513
-	'info_url' => 'URL:',
514
-	'info_url_proxy' => 'Proxy URL',
515
-	'info_url_proxy_pas_conforme' => 'Proxy’s URL not valid.',
516
-	'info_url_site_pas_conforme' => 'the website URL is invalid.',
517
-	'info_url_test_proxy' => 'Test URL',
518
-	'info_urlref' => 'Hyperlink:',
519
-	'info_utilisation_spip' => 'SPIP is now ready for use',
520
-	'info_visites_par_mois' => 'Monthly display:',
521
-	'info_visiteur_1' => 'Visitor',
522
-	'info_visiteur_2' => 'to the public site',
523
-	'info_visiteurs' => 'Visitors',
524
-	'info_visiteurs_02' => 'Public site visitors',
525
-	'info_webmestre_forces' => 'The web administrators are currently defined in <tt>@file_options@</tt>.',
526
-	'install_adresse_base_hebergeur' => 'Database address attributed by the hosting provider',
527
-	'install_connect_ok' => 'The new database has been declared using the server name @connect@.',
528
-	'install_echec_annonce' => 'This installation will probably fail, or damage your site.',
529
-	'install_extension_mbstring' => 'SPIP does not work with:',
530
-	'install_extension_php_obligatoire' => 'SPIP requires the php extension:',
531
-	'install_login_base_hebergeur' => 'Login attributed by the service provider',
532
-	'install_nom_base_hebergeur' => 'Database name attributed by the service provider:',
533
-	'install_pas_table' => 'The database has no tables',
534
-	'install_pass_base_hebergeur' => 'Password attributed by your hosting service ',
535
-	'install_php_version' => 'This version of PHP @version@ is too old (minimum = @minimum@)',
536
-	'install_select_langue' => 'Select a language, then click on "next" to start installation.',
537
-	'install_select_type_db' => 'Indicate the type of database:',
538
-	'install_select_type_mysql' => 'MySQL',
539
-	'install_select_type_pg' => 'PostgreSQL',
540
-	'install_select_type_sqlite2' => 'SQLite 2',
541
-	'install_select_type_sqlite3' => 'SQLite 3',
542
-	'install_serveur_hebergeur' => 'Database server attributed by the hosting provider',
543
-	'install_table_prefix_hebergeur' => 'Table prefix attributed by your hosting provider:',
544
-	'install_tables_base' => 'Tables in the database',
545
-	'install_types_db_connus' => 'SPIP can use <b>MySQL</b> (the most common) and <b>SQLite</b>.',
546
-	'install_types_db_connus_avertissement' => 'The support of <b>PostgreSQL</b is actually proposed as experimental',
547
-	'instituer_erreur_statut_a_change' => 'The status has already been modified',
548
-	'instituer_erreur_statut_non_autorise' => 'You cannot select this status',
549
-	'intem_redacteur' => 'editor',
550
-	'intitule_licence' => 'Licence',
551
-	'item_accepter_inscriptions' => 'Allow registration',
552
-	'item_activer_messages_avertissement' => 'Activate warning messages',
553
-	'item_administrateur_2' => 'administrator',
554
-	'item_afficher_calendrier' => 'Display in calendar',
555
-	'item_autoriser_syndication_integrale' => 'Include entire articles in syndication feeds',
556
-	'item_choix_administrateurs' => 'administrators',
557
-	'item_choix_generation_miniature' => 'Generate thumbnails automatically.',
558
-	'item_choix_non_generation_miniature' => 'Do not generate thumbnails.',
559
-	'item_choix_redacteurs' => 'editors',
560
-	'item_choix_visiteurs' => 'visitors to the public site',
561
-	'item_creer_fichiers_authent' => 'Create .htpasswd files',
562
-	'item_login' => 'Login',
563
-	'item_messagerie_agenda' => 'Activate messaging system and calendars',
564
-	'item_mots_cles_association_articles' => 'articles',
565
-	'item_mots_cles_association_rubriques' => 'sections',
566
-	'item_mots_cles_association_sites' => 'referenced or syndicated sites.',
567
-	'item_non' => 'No',
568
-	'item_non_accepter_inscriptions' => 'Disable registration',
569
-	'item_non_activer_messages_avertissement' => 'No warning messages',
570
-	'item_non_afficher_calendrier' => 'Do not show in calendar',
571
-	'item_non_autoriser_syndication_integrale' => 'Only send a summary',
572
-	'item_non_creer_fichiers_authent' => 'Do not create these files',
573
-	'item_non_messagerie_agenda' => 'Disable the messaging system and calendars',
574
-	'item_non_publier_articles' => 'Do not publish articles before their specified publication date.',
575
-	'item_nouvel_auteur' => 'New author',
576
-	'item_nouvelle_rubrique' => 'New section',
577
-	'item_oui' => 'Yes',
578
-	'item_publier_articles' => 'Publish articles, irrespective of publication date.',
579
-	'item_reponse_article' => 'Reply to the article',
580
-	'item_visiteur' => 'visitor',
507
+    'info_traductions' => 'Translations',
508
+    'info_travail_colaboratif' => 'Collaborative work on articles',
509
+    'info_un_article' => 'an article,',
510
+    'info_un_site' => 'a site,',
511
+    'info_une_rubrique' => 'a section,',
512
+    'info_une_rubrique_02' => '1 section',
513
+    'info_url' => 'URL:',
514
+    'info_url_proxy' => 'Proxy URL',
515
+    'info_url_proxy_pas_conforme' => 'Proxy’s URL not valid.',
516
+    'info_url_site_pas_conforme' => 'the website URL is invalid.',
517
+    'info_url_test_proxy' => 'Test URL',
518
+    'info_urlref' => 'Hyperlink:',
519
+    'info_utilisation_spip' => 'SPIP is now ready for use',
520
+    'info_visites_par_mois' => 'Monthly display:',
521
+    'info_visiteur_1' => 'Visitor',
522
+    'info_visiteur_2' => 'to the public site',
523
+    'info_visiteurs' => 'Visitors',
524
+    'info_visiteurs_02' => 'Public site visitors',
525
+    'info_webmestre_forces' => 'The web administrators are currently defined in <tt>@file_options@</tt>.',
526
+    'install_adresse_base_hebergeur' => 'Database address attributed by the hosting provider',
527
+    'install_connect_ok' => 'The new database has been declared using the server name @connect@.',
528
+    'install_echec_annonce' => 'This installation will probably fail, or damage your site.',
529
+    'install_extension_mbstring' => 'SPIP does not work with:',
530
+    'install_extension_php_obligatoire' => 'SPIP requires the php extension:',
531
+    'install_login_base_hebergeur' => 'Login attributed by the service provider',
532
+    'install_nom_base_hebergeur' => 'Database name attributed by the service provider:',
533
+    'install_pas_table' => 'The database has no tables',
534
+    'install_pass_base_hebergeur' => 'Password attributed by your hosting service ',
535
+    'install_php_version' => 'This version of PHP @version@ is too old (minimum = @minimum@)',
536
+    'install_select_langue' => 'Select a language, then click on "next" to start installation.',
537
+    'install_select_type_db' => 'Indicate the type of database:',
538
+    'install_select_type_mysql' => 'MySQL',
539
+    'install_select_type_pg' => 'PostgreSQL',
540
+    'install_select_type_sqlite2' => 'SQLite 2',
541
+    'install_select_type_sqlite3' => 'SQLite 3',
542
+    'install_serveur_hebergeur' => 'Database server attributed by the hosting provider',
543
+    'install_table_prefix_hebergeur' => 'Table prefix attributed by your hosting provider:',
544
+    'install_tables_base' => 'Tables in the database',
545
+    'install_types_db_connus' => 'SPIP can use <b>MySQL</b> (the most common) and <b>SQLite</b>.',
546
+    'install_types_db_connus_avertissement' => 'The support of <b>PostgreSQL</b is actually proposed as experimental',
547
+    'instituer_erreur_statut_a_change' => 'The status has already been modified',
548
+    'instituer_erreur_statut_non_autorise' => 'You cannot select this status',
549
+    'intem_redacteur' => 'editor',
550
+    'intitule_licence' => 'Licence',
551
+    'item_accepter_inscriptions' => 'Allow registration',
552
+    'item_activer_messages_avertissement' => 'Activate warning messages',
553
+    'item_administrateur_2' => 'administrator',
554
+    'item_afficher_calendrier' => 'Display in calendar',
555
+    'item_autoriser_syndication_integrale' => 'Include entire articles in syndication feeds',
556
+    'item_choix_administrateurs' => 'administrators',
557
+    'item_choix_generation_miniature' => 'Generate thumbnails automatically.',
558
+    'item_choix_non_generation_miniature' => 'Do not generate thumbnails.',
559
+    'item_choix_redacteurs' => 'editors',
560
+    'item_choix_visiteurs' => 'visitors to the public site',
561
+    'item_creer_fichiers_authent' => 'Create .htpasswd files',
562
+    'item_login' => 'Login',
563
+    'item_messagerie_agenda' => 'Activate messaging system and calendars',
564
+    'item_mots_cles_association_articles' => 'articles',
565
+    'item_mots_cles_association_rubriques' => 'sections',
566
+    'item_mots_cles_association_sites' => 'referenced or syndicated sites.',
567
+    'item_non' => 'No',
568
+    'item_non_accepter_inscriptions' => 'Disable registration',
569
+    'item_non_activer_messages_avertissement' => 'No warning messages',
570
+    'item_non_afficher_calendrier' => 'Do not show in calendar',
571
+    'item_non_autoriser_syndication_integrale' => 'Only send a summary',
572
+    'item_non_creer_fichiers_authent' => 'Do not create these files',
573
+    'item_non_messagerie_agenda' => 'Disable the messaging system and calendars',
574
+    'item_non_publier_articles' => 'Do not publish articles before their specified publication date.',
575
+    'item_nouvel_auteur' => 'New author',
576
+    'item_nouvelle_rubrique' => 'New section',
577
+    'item_oui' => 'Yes',
578
+    'item_publier_articles' => 'Publish articles, irrespective of publication date.',
579
+    'item_reponse_article' => 'Reply to the article',
580
+    'item_visiteur' => 'visitor',
581 581
 
582
-	// J
583
-	'jour_non_connu_nc' => 'unknown',
582
+    // J
583
+    'jour_non_connu_nc' => 'unknown',
584 584
 
585
-	// L
586
-	'label_bando_outils' => 'Toolbar',
587
-	'label_bando_outils_afficher' => 'Show the tools',
588
-	'label_bando_outils_masquer' => 'Hide the tools',
589
-	'label_choix_langue' => 'Choose your language',
590
-	'label_nom_fichier_connect' => 'Indicate the name for this server',
591
-	'label_slogan_site' => 'Website slogan',
592
-	'label_taille_ecran' => 'Screen width',
593
-	'label_texte_et_icones_navigation' => 'Navigation menu',
594
-	'label_texte_et_icones_page' => 'Page display',
595
-	'ldap_correspondance' => 'inherit field @champ@',
596
-	'ldap_correspondance_1' => 'Inherit LDAP fields',
597
-	'ldap_correspondance_2' => 'For each of these SPIP fields, enter the name of the corresponding LDAP field. Leave blank if you don’t want it filled, separate with spaces or commas to try several LDAP fields.',
598
-	'lien_ajouter_auteur' => 'Add this author',
599
-	'lien_ajouter_une_rubrique' => 'Add this section',
600
-	'lien_email' => 'email',
601
-	'lien_nom_site' => 'SITE NAME:',
602
-	'lien_rapide_contenu' => 'Go to the content',
603
-	'lien_rapide_navigation' => 'Go to the navigation',
604
-	'lien_rapide_recherche' => 'Go to the search',
605
-	'lien_retirer_auteur' => 'Remove author',
606
-	'lien_retirer_rubrique' => 'Remove the section',
607
-	'lien_retirer_tous_auteurs' => 'Remove all authors',
608
-	'lien_retirer_toutes_rubriques' => 'Remove all sections',
609
-	'lien_site' => 'site',
610
-	'lien_tout_decocher' => 'Uncheck all',
611
-	'lien_tout_deplier' => 'Expand all',
612
-	'lien_tout_replier' => 'Collapse all',
613
-	'lien_tout_supprimer' => 'Delete all',
614
-	'lien_trier_nom' => 'Sort by name',
615
-	'lien_trier_nombre_articles' => 'Sort by total articles',
616
-	'lien_trier_statut' => 'Sort by status',
617
-	'lien_voir_en_ligne' => 'VIEW ONLINE:',
618
-	'logo_article' => 'Article’s logo',
619
-	'logo_auteur' => 'Author’s logo',
620
-	'logo_rubrique' => 'Section’s logo',
621
-	'logo_site' => 'Website’s logo',
622
-	'logo_standard_rubrique' => 'Default sections’ logo',
623
-	'logo_survol' => 'Mouseover logo',
585
+    // L
586
+    'label_bando_outils' => 'Toolbar',
587
+    'label_bando_outils_afficher' => 'Show the tools',
588
+    'label_bando_outils_masquer' => 'Hide the tools',
589
+    'label_choix_langue' => 'Choose your language',
590
+    'label_nom_fichier_connect' => 'Indicate the name for this server',
591
+    'label_slogan_site' => 'Website slogan',
592
+    'label_taille_ecran' => 'Screen width',
593
+    'label_texte_et_icones_navigation' => 'Navigation menu',
594
+    'label_texte_et_icones_page' => 'Page display',
595
+    'ldap_correspondance' => 'inherit field @champ@',
596
+    'ldap_correspondance_1' => 'Inherit LDAP fields',
597
+    'ldap_correspondance_2' => 'For each of these SPIP fields, enter the name of the corresponding LDAP field. Leave blank if you don’t want it filled, separate with spaces or commas to try several LDAP fields.',
598
+    'lien_ajouter_auteur' => 'Add this author',
599
+    'lien_ajouter_une_rubrique' => 'Add this section',
600
+    'lien_email' => 'email',
601
+    'lien_nom_site' => 'SITE NAME:',
602
+    'lien_rapide_contenu' => 'Go to the content',
603
+    'lien_rapide_navigation' => 'Go to the navigation',
604
+    'lien_rapide_recherche' => 'Go to the search',
605
+    'lien_retirer_auteur' => 'Remove author',
606
+    'lien_retirer_rubrique' => 'Remove the section',
607
+    'lien_retirer_tous_auteurs' => 'Remove all authors',
608
+    'lien_retirer_toutes_rubriques' => 'Remove all sections',
609
+    'lien_site' => 'site',
610
+    'lien_tout_decocher' => 'Uncheck all',
611
+    'lien_tout_deplier' => 'Expand all',
612
+    'lien_tout_replier' => 'Collapse all',
613
+    'lien_tout_supprimer' => 'Delete all',
614
+    'lien_trier_nom' => 'Sort by name',
615
+    'lien_trier_nombre_articles' => 'Sort by total articles',
616
+    'lien_trier_statut' => 'Sort by status',
617
+    'lien_voir_en_ligne' => 'VIEW ONLINE:',
618
+    'logo_article' => 'Article’s logo',
619
+    'logo_auteur' => 'Author’s logo',
620
+    'logo_rubrique' => 'Section’s logo',
621
+    'logo_site' => 'Website’s logo',
622
+    'logo_standard_rubrique' => 'Default sections’ logo',
623
+    'logo_survol' => 'Mouseover logo',
624 624
 
625
-	// M
626
-	'menu_aide_installation_choix_base' => 'Choosing your database',
627
-	'module_fichier_langue' => 'Language file',
628
-	'module_raccourci' => 'Shortcut',
629
-	'module_texte_affiche' => 'Displayed text',
630
-	'module_texte_explicatif' => 'You can insert thse shortcuts in your website templates. They will be automatically translated into any languages for which a language file exists.',
631
-	'module_texte_traduction' => 'The language file « @module@ » is available in:',
632
-	'mois_non_connu' => 'unknown',
625
+    // M
626
+    'menu_aide_installation_choix_base' => 'Choosing your database',
627
+    'module_fichier_langue' => 'Language file',
628
+    'module_raccourci' => 'Shortcut',
629
+    'module_texte_affiche' => 'Displayed text',
630
+    'module_texte_explicatif' => 'You can insert thse shortcuts in your website templates. They will be automatically translated into any languages for which a language file exists.',
631
+    'module_texte_traduction' => 'The language file « @module@ » is available in:',
632
+    'mois_non_connu' => 'unknown',
633 633
 
634
-	// N
635
-	'nouvelle_version_spip' => 'SPIP upgrade @version@ is available',
636
-	'nouvelle_version_spip_majeure' => 'A new SPIP version @version@ is available',
634
+    // N
635
+    'nouvelle_version_spip' => 'SPIP upgrade @version@ is available',
636
+    'nouvelle_version_spip_majeure' => 'A new SPIP version @version@ is available',
637 637
 
638
-	// O
639
-	'onglet_contenu' => 'Contents',
640
-	'onglet_declarer_une_autre_base' => 'Declare another database',
641
-	'onglet_discuter' => 'Discuss',
642
-	'onglet_interactivite' => 'Interactivity',
643
-	'onglet_proprietes' => 'Properties',
644
-	'onglet_repartition_actuelle' => 'now',
645
-	'onglet_sous_rubriques' => 'Subsections',
638
+    // O
639
+    'onglet_contenu' => 'Contents',
640
+    'onglet_declarer_une_autre_base' => 'Declare another database',
641
+    'onglet_discuter' => 'Discuss',
642
+    'onglet_interactivite' => 'Interactivity',
643
+    'onglet_proprietes' => 'Properties',
644
+    'onglet_repartition_actuelle' => 'now',
645
+    'onglet_sous_rubriques' => 'Subsections',
646 646
 
647
-	// P
648
-	'page_pas_proxy' => 'This page must not go through the proxy',
649
-	'pas_de_proxy_pour' => 'If necessary, indicate to which machines or domains this proxy should not apply (for example: @exemple@)',
650
-	'phpinfo' => 'PHP configuration',
651
-	'plugin_charge_paquet' => 'Loading the archive file @name@',
652
-	'plugin_charger' => 'Download',
653
-	'plugin_erreur_charger' => 'error: @zip@ cannot be loaded',
654
-	'plugin_erreur_droit1' => 'Cannot write to directory <code>@dest@</code>.',
655
-	'plugin_erreur_droit2' => 'Please check write permissions for this directory (and create the directory if necessary). Alternatively, install the files by FTP.',
656
-	'plugin_erreur_zip' => 'pclzip failure: error @status@',
657
-	'plugin_etat_developpement' => 'under development',
658
-	'plugin_etat_experimental' => 'experimental',
659
-	'plugin_etat_stable' => 'stable',
660
-	'plugin_etat_test' => 'being tested',
661
-	'plugin_impossible_activer' => 'Impossible to activate the plugin @plugin@',
662
-	'plugin_info_automatique1' => 'If you wish to allow automatic plugin installation, please:',
663
-	'plugin_info_automatique1_lib' => 'If you want to let this library to be installed automatically, please:',
664
-	'plugin_info_automatique2' => 'Create a directory <code>@rep@</code> ;',
665
-	'plugin_info_automatique3' => 'Check that the server has the proper permissions to write to this directory.',
666
-	'plugin_info_automatique_creer' => 'to create at the root of the website.',
667
-	'plugin_info_automatique_exemples' => 'examples:',
668
-	'plugin_info_automatique_ftp' => 'You may install plugins by FTP in the  <tt>@rep@</tt> directory',
669
-	'plugin_info_automatique_lib' => 'Some plugins need to be able to load files into the <code>lib/</code> directory. This directory should be created at the website root.',
670
-	'plugin_info_automatique_liste' => 'Your plugin lists:',
671
-	'plugin_info_automatique_liste_officielle' => 'official plugins',
672
-	'plugin_info_automatique_liste_update' => 'Update lists',
673
-	'plugin_info_automatique_ou' => 'or...',
674
-	'plugin_info_automatique_select' => 'Select a plugin below: SPIP will load it and will install it in the <code>@rep@</code> directory. If the plugin already exists, it will be updated.',
675
-	'plugin_info_credit' => 'Credits',
676
-	'plugin_info_erreur_xml' => 'Incorrect declaration of the plugin',
677
-	'plugin_info_install_ok' => 'Installation successful',
678
-	'plugin_info_necessite' => 'Requires:',
679
-	'plugin_info_non_compatible_spip' => 'This plugin is incompatible with this version of SPIP',
680
-	'plugin_info_plugins_dist_1' => 'The following plugins are loaded and activated in the @plugins_dist@ directory.',
681
-	'plugin_info_plugins_dist_2' => 'They cannot be disabled.',
682
-	'plugin_info_telecharger' => 'load from @url@ and install to @rep@',
683
-	'plugin_info_upgrade_ok' => 'Successful update',
684
-	'plugin_librairies_installees' => 'Libraries installed',
685
-	'plugin_necessite_extension_php' => 'Requires the PHP extension @plugin@ version @version@.',
686
-	'plugin_necessite_extension_php_sans_version' => 'Requires the PHP extension @plugin@',
687
-	'plugin_necessite_lib' => 'This plugin requires the library @lib@',
688
-	'plugin_necessite_php' => 'Requires @plugin@ version @version@.',
689
-	'plugin_necessite_plugin' => 'Version @version@ of the plugin @plugin@ is required.',
690
-	'plugin_necessite_plugin_sans_version' => 'Requires the plugin @plugin@',
691
-	'plugin_necessite_spip' => 'SPIP version @version@ or newer is required.',
692
-	'plugin_source' => 'source: ',
693
-	'plugin_titre_automatique' => 'Automatic installation',
694
-	'plugin_titre_automatique_ajouter' => 'Add plugins',
695
-	'plugin_titre_installation' => '@plugin@ plugin installation',
696
-	'plugin_titre_modifier' => 'My plugins',
697
-	'plugin_utilise_extension_php' => 'The version of the PHP extension @plugin@ must be @version@.',
698
-	'plugin_utilise_php' => '@plugin@ version must be @version@.',
699
-	'plugin_utilise_plugin' => 'The version of the plugin @plugin@ must be @version@.',
700
-	'plugin_zip_active' => 'Continue in order to activate',
701
-	'plugin_zip_adresse' => 'To load a zipped plugin file, or a list of plugins, enter the path below.',
702
-	'plugin_zip_adresse_champ' => 'Path of the plugin or list ',
703
-	'plugin_zip_content' => 'It contains the following files(@taille@),<br />ready to be installed in the <code>@rep@</code> directory',
704
-	'plugin_zip_installe_finie' => 'The file @zip@ has been unpacked and installed.',
705
-	'plugin_zip_installe_rep_finie' => 'The file @zip@ has been unpacked and installed in the @rep@ directory',
706
-	'plugin_zip_installer' => 'You may now install it.',
707
-	'plugin_zip_telecharge' => 'The file @zip@ has been loaded',
708
-	'plugins_actif_aucun' => 'No plugins active.',
709
-	'plugins_actif_un' => 'One plugin active',
710
-	'plugins_actifs' => '@count@ active plugins.',
711
-	'plugins_actifs_liste' => 'Enabled',
712
-	'plugins_compte' => '@count@ plugins',
713
-	'plugins_disponible_un' => 'One plugin available',
714
-	'plugins_disponibles' => '@count@ plugins available.',
715
-	'plugins_erreur' => 'Error in the plugins: @plugins@',
716
-	'plugins_liste' => 'List of plugins',
717
-	'plugins_liste_dist' => 'Locked plugins',
718
-	'plugins_recents' => 'Recent plugins',
719
-	'plugins_tous_liste' => 'All',
720
-	'plugins_vue_hierarchie' => 'Hierarchy',
721
-	'plugins_vue_liste' => 'List',
722
-	'protocole_ldap' => 'Protocol version:',
647
+    // P
648
+    'page_pas_proxy' => 'This page must not go through the proxy',
649
+    'pas_de_proxy_pour' => 'If necessary, indicate to which machines or domains this proxy should not apply (for example: @exemple@)',
650
+    'phpinfo' => 'PHP configuration',
651
+    'plugin_charge_paquet' => 'Loading the archive file @name@',
652
+    'plugin_charger' => 'Download',
653
+    'plugin_erreur_charger' => 'error: @zip@ cannot be loaded',
654
+    'plugin_erreur_droit1' => 'Cannot write to directory <code>@dest@</code>.',
655
+    'plugin_erreur_droit2' => 'Please check write permissions for this directory (and create the directory if necessary). Alternatively, install the files by FTP.',
656
+    'plugin_erreur_zip' => 'pclzip failure: error @status@',
657
+    'plugin_etat_developpement' => 'under development',
658
+    'plugin_etat_experimental' => 'experimental',
659
+    'plugin_etat_stable' => 'stable',
660
+    'plugin_etat_test' => 'being tested',
661
+    'plugin_impossible_activer' => 'Impossible to activate the plugin @plugin@',
662
+    'plugin_info_automatique1' => 'If you wish to allow automatic plugin installation, please:',
663
+    'plugin_info_automatique1_lib' => 'If you want to let this library to be installed automatically, please:',
664
+    'plugin_info_automatique2' => 'Create a directory <code>@rep@</code> ;',
665
+    'plugin_info_automatique3' => 'Check that the server has the proper permissions to write to this directory.',
666
+    'plugin_info_automatique_creer' => 'to create at the root of the website.',
667
+    'plugin_info_automatique_exemples' => 'examples:',
668
+    'plugin_info_automatique_ftp' => 'You may install plugins by FTP in the  <tt>@rep@</tt> directory',
669
+    'plugin_info_automatique_lib' => 'Some plugins need to be able to load files into the <code>lib/</code> directory. This directory should be created at the website root.',
670
+    'plugin_info_automatique_liste' => 'Your plugin lists:',
671
+    'plugin_info_automatique_liste_officielle' => 'official plugins',
672
+    'plugin_info_automatique_liste_update' => 'Update lists',
673
+    'plugin_info_automatique_ou' => 'or...',
674
+    'plugin_info_automatique_select' => 'Select a plugin below: SPIP will load it and will install it in the <code>@rep@</code> directory. If the plugin already exists, it will be updated.',
675
+    'plugin_info_credit' => 'Credits',
676
+    'plugin_info_erreur_xml' => 'Incorrect declaration of the plugin',
677
+    'plugin_info_install_ok' => 'Installation successful',
678
+    'plugin_info_necessite' => 'Requires:',
679
+    'plugin_info_non_compatible_spip' => 'This plugin is incompatible with this version of SPIP',
680
+    'plugin_info_plugins_dist_1' => 'The following plugins are loaded and activated in the @plugins_dist@ directory.',
681
+    'plugin_info_plugins_dist_2' => 'They cannot be disabled.',
682
+    'plugin_info_telecharger' => 'load from @url@ and install to @rep@',
683
+    'plugin_info_upgrade_ok' => 'Successful update',
684
+    'plugin_librairies_installees' => 'Libraries installed',
685
+    'plugin_necessite_extension_php' => 'Requires the PHP extension @plugin@ version @version@.',
686
+    'plugin_necessite_extension_php_sans_version' => 'Requires the PHP extension @plugin@',
687
+    'plugin_necessite_lib' => 'This plugin requires the library @lib@',
688
+    'plugin_necessite_php' => 'Requires @plugin@ version @version@.',
689
+    'plugin_necessite_plugin' => 'Version @version@ of the plugin @plugin@ is required.',
690
+    'plugin_necessite_plugin_sans_version' => 'Requires the plugin @plugin@',
691
+    'plugin_necessite_spip' => 'SPIP version @version@ or newer is required.',
692
+    'plugin_source' => 'source: ',
693
+    'plugin_titre_automatique' => 'Automatic installation',
694
+    'plugin_titre_automatique_ajouter' => 'Add plugins',
695
+    'plugin_titre_installation' => '@plugin@ plugin installation',
696
+    'plugin_titre_modifier' => 'My plugins',
697
+    'plugin_utilise_extension_php' => 'The version of the PHP extension @plugin@ must be @version@.',
698
+    'plugin_utilise_php' => '@plugin@ version must be @version@.',
699
+    'plugin_utilise_plugin' => 'The version of the plugin @plugin@ must be @version@.',
700
+    'plugin_zip_active' => 'Continue in order to activate',
701
+    'plugin_zip_adresse' => 'To load a zipped plugin file, or a list of plugins, enter the path below.',
702
+    'plugin_zip_adresse_champ' => 'Path of the plugin or list ',
703
+    'plugin_zip_content' => 'It contains the following files(@taille@),<br />ready to be installed in the <code>@rep@</code> directory',
704
+    'plugin_zip_installe_finie' => 'The file @zip@ has been unpacked and installed.',
705
+    'plugin_zip_installe_rep_finie' => 'The file @zip@ has been unpacked and installed in the @rep@ directory',
706
+    'plugin_zip_installer' => 'You may now install it.',
707
+    'plugin_zip_telecharge' => 'The file @zip@ has been loaded',
708
+    'plugins_actif_aucun' => 'No plugins active.',
709
+    'plugins_actif_un' => 'One plugin active',
710
+    'plugins_actifs' => '@count@ active plugins.',
711
+    'plugins_actifs_liste' => 'Enabled',
712
+    'plugins_compte' => '@count@ plugins',
713
+    'plugins_disponible_un' => 'One plugin available',
714
+    'plugins_disponibles' => '@count@ plugins available.',
715
+    'plugins_erreur' => 'Error in the plugins: @plugins@',
716
+    'plugins_liste' => 'List of plugins',
717
+    'plugins_liste_dist' => 'Locked plugins',
718
+    'plugins_recents' => 'Recent plugins',
719
+    'plugins_tous_liste' => 'All',
720
+    'plugins_vue_hierarchie' => 'Hierarchy',
721
+    'plugins_vue_liste' => 'List',
722
+    'protocole_ldap' => 'Protocol version:',
723 723
 
724
-	// Q
725
-	'queue_executer_maintenant' => 'Run now',
726
-	'queue_info_purger' => 'You can delete all pending tasks and reset the list with periodic tasks',
727
-	'queue_nb_jobs_in_queue' => '@nb@ pending tasks',
728
-	'queue_next_job_in_nb_sec' => 'Next task in @nb@ s',
729
-	'queue_no_job_in_queue' => 'No pending tasks',
730
-	'queue_one_job_in_queue' => '1 pending task',
731
-	'queue_priorite_tache' => 'priority',
732
-	'queue_purger_queue' => 'Reset the tasks queue',
733
-	'queue_titre' => 'Background tasks',
724
+    // Q
725
+    'queue_executer_maintenant' => 'Run now',
726
+    'queue_info_purger' => 'You can delete all pending tasks and reset the list with periodic tasks',
727
+    'queue_nb_jobs_in_queue' => '@nb@ pending tasks',
728
+    'queue_next_job_in_nb_sec' => 'Next task in @nb@ s',
729
+    'queue_no_job_in_queue' => 'No pending tasks',
730
+    'queue_one_job_in_queue' => '1 pending task',
731
+    'queue_priorite_tache' => 'priority',
732
+    'queue_purger_queue' => 'Reset the tasks queue',
733
+    'queue_titre' => 'Background tasks',
734 734
 
735
-	// R
736
-	'repertoire_plugins' => 'Directory:',
737
-	'required' => '(Required)',
735
+    // R
736
+    'repertoire_plugins' => 'Directory:',
737
+    'required' => '(Required)',
738 738
 
739
-	// S
740
-	'sans_heure' => 'time not specified',
741
-	'statut_admin_restreint' => 'restricted admin',
742
-	'statut_webmestre' => 'webmaster',
739
+    // S
740
+    'sans_heure' => 'time not specified',
741
+    'statut_admin_restreint' => 'restricted admin',
742
+    'statut_webmestre' => 'webmaster',
743 743
 
744
-	// T
745
-	'tache_cron_asap' => 'CRON task @function@ (ASAP)',
746
-	'tache_cron_secondes' => 'CRON task @function@ (every @nb@ s)',
747
-	'taille_cache_image' => 'The images calculated automatically by SPIP (thumbnails, titles transformed into graphics, mathematical formulae in TeX format, etc.) take up a total of @taille@ in the @dir@ directory.',
748
-	'taille_cache_infinie' => 'This site does not have any fixed limit for the size of the cache.',
749
-	'taille_cache_maxi' => 'SPIP will try to limit the size of the cache directory to approximately <b>@octets@</b>.',
750
-	'taille_cache_moins_de' => 'The cache size is less than @octets@.',
751
-	'taille_cache_octets' => 'The size of the cache is currently around @octets@.',
752
-	'taille_cache_vide' => 'The cache is empty.',
753
-	'taille_repertoire_cache' => 'Current cache size ',
754
-	'text_article_propose_publication' => 'Article submitted for publication.',
755
-	'texte_acces_ldap_anonyme_1' => 'Some LDAP servers do not allow anonymous access. In this case you must indicate an initial access identifier for future directory searches. However, in most cases the following fields can be left empty.',
756
-	'texte_admin_effacer_01' => 'This command deletes <i>all</i> content in the database,
744
+    // T
745
+    'tache_cron_asap' => 'CRON task @function@ (ASAP)',
746
+    'tache_cron_secondes' => 'CRON task @function@ (every @nb@ s)',
747
+    'taille_cache_image' => 'The images calculated automatically by SPIP (thumbnails, titles transformed into graphics, mathematical formulae in TeX format, etc.) take up a total of @taille@ in the @dir@ directory.',
748
+    'taille_cache_infinie' => 'This site does not have any fixed limit for the size of the cache.',
749
+    'taille_cache_maxi' => 'SPIP will try to limit the size of the cache directory to approximately <b>@octets@</b>.',
750
+    'taille_cache_moins_de' => 'The cache size is less than @octets@.',
751
+    'taille_cache_octets' => 'The size of the cache is currently around @octets@.',
752
+    'taille_cache_vide' => 'The cache is empty.',
753
+    'taille_repertoire_cache' => 'Current cache size ',
754
+    'text_article_propose_publication' => 'Article submitted for publication.',
755
+    'texte_acces_ldap_anonyme_1' => 'Some LDAP servers do not allow anonymous access. In this case you must indicate an initial access identifier for future directory searches. However, in most cases the following fields can be left empty.',
756
+    'texte_admin_effacer_01' => 'This command deletes <i>all</i> content in the database,
757 757
 including <i>all</i> the access parameters for editors and administrators. After using it, you must
758 758
 reinstall SPIP, create a new database and a new administrator account.',
759
-	'texte_adresse_annuaire_1' => '(If your directory is installed on the same machine as your website, it is probably «localhost».)',
760
-	'texte_ajout_auteur' => 'The following author was added to the article:',
761
-	'texte_annuaire_ldap_1' => 'If you have access to a LDAP directory server, you can use it to import users automatically into SPIP.',
762
-	'texte_article_statut' => 'Article status:',
763
-	'texte_article_virtuel' => 'Virtual article',
764
-	'texte_article_virtuel_reference' => '<b>Virtual article:</b> an article on your SPIP website which redirects to another URL. To remove redirection, delete the URL.',
765
-	'texte_aucun_resultat_auteur' => 'No results for "@cherche_auteur@".',
766
-	'texte_auteur_messagerie' => 'This site can update the list of editors online in real time, which allows you to be contacted by other users. You can opt not to appear in this list (you are then "invisible" to other users).',
767
-	'texte_auteurs' => 'THE AUTHORS',
768
-	'texte_choix_base_1' => 'Select your database:',
769
-	'texte_choix_base_2' => 'The SQL server contains several databases.',
770
-	'texte_choix_base_3' => '<b>Select</b> below the one attributed by your hosting provider:',
771
-	'texte_choix_table_prefix' => 'Prefix for tables:',
772
-	'texte_compte_element' => '@count@ element',
773
-	'texte_compte_elements' => '@count@ elements',
774
-	'texte_conflit_edition_correction' => 'Please compare differences between the two versions. You can also copy your changes and start over.',
775
-	'texte_connexion_mysql' => 'Consult the information provided by your hosting service. It should contain the connection codes for the SQL server.',
776
-	'texte_contenu_article' => '(Brief description of the article.)',
777
-	'texte_contenu_articles' => 'Depending on the layout chosen for your site, you can decide
759
+    'texte_adresse_annuaire_1' => '(If your directory is installed on the same machine as your website, it is probably «localhost».)',
760
+    'texte_ajout_auteur' => 'The following author was added to the article:',
761
+    'texte_annuaire_ldap_1' => 'If you have access to a LDAP directory server, you can use it to import users automatically into SPIP.',
762
+    'texte_article_statut' => 'Article status:',
763
+    'texte_article_virtuel' => 'Virtual article',
764
+    'texte_article_virtuel_reference' => '<b>Virtual article:</b> an article on your SPIP website which redirects to another URL. To remove redirection, delete the URL.',
765
+    'texte_aucun_resultat_auteur' => 'No results for "@cherche_auteur@".',
766
+    'texte_auteur_messagerie' => 'This site can update the list of editors online in real time, which allows you to be contacted by other users. You can opt not to appear in this list (you are then "invisible" to other users).',
767
+    'texte_auteurs' => 'THE AUTHORS',
768
+    'texte_choix_base_1' => 'Select your database:',
769
+    'texte_choix_base_2' => 'The SQL server contains several databases.',
770
+    'texte_choix_base_3' => '<b>Select</b> below the one attributed by your hosting provider:',
771
+    'texte_choix_table_prefix' => 'Prefix for tables:',
772
+    'texte_compte_element' => '@count@ element',
773
+    'texte_compte_elements' => '@count@ elements',
774
+    'texte_conflit_edition_correction' => 'Please compare differences between the two versions. You can also copy your changes and start over.',
775
+    'texte_connexion_mysql' => 'Consult the information provided by your hosting service. It should contain the connection codes for the SQL server.',
776
+    'texte_contenu_article' => '(Brief description of the article.)',
777
+    'texte_contenu_articles' => 'Depending on the layout chosen for your site, you can decide
778 778
   that some article options are not to be used.
779 779
   Use the following list to choose which options should be available.',
780
-	'texte_crash_base' => 'If your database
780
+    'texte_crash_base' => 'If your database
781 781
    crashed, you can try to repair it
782 782
    automatically.',
783
-	'texte_creer_rubrique' => 'Before writing any articles,<br /> you must create a section.',
784
-	'texte_date_creation_article' => 'ARTICLE CREATION DATE:',
785
-	'texte_date_creation_objet' => 'Creation date:', # on ajoute le ":"
786
-	'texte_date_publication_anterieure' => 'Date first published:',
787
-	'texte_date_publication_anterieure_nonaffichee' => 'Hide previous publication date.',
788
-	'texte_date_publication_article' => 'PUBLISHED ON:',
789
-	'texte_date_publication_objet' => 'Published on:',
790
-	'texte_definir_comme_traduction_rubrique' => 'This section is a translation of section number:',
791
-	'texte_descriptif_rapide' => 'Brief description',
792
-	'texte_effacer_base' => 'Delete the SPIP database',
793
-	'texte_effacer_statistiques' => 'Delete the statistics',
794
-	'texte_en_cours_validation' => 'The following articles and news have been submitted for evaluation.',
795
-	'texte_enrichir_mise_a_jour' => 'You can enrich the layout of your text by using "typographical shortcuts".',
796
-	'texte_fichier_authent' => '<b>Should SPIP create the special files <tt>.htpasswd</tt>
783
+    'texte_creer_rubrique' => 'Before writing any articles,<br /> you must create a section.',
784
+    'texte_date_creation_article' => 'ARTICLE CREATION DATE:',
785
+    'texte_date_creation_objet' => 'Creation date:', # on ajoute le ":"
786
+    'texte_date_publication_anterieure' => 'Date first published:',
787
+    'texte_date_publication_anterieure_nonaffichee' => 'Hide previous publication date.',
788
+    'texte_date_publication_article' => 'PUBLISHED ON:',
789
+    'texte_date_publication_objet' => 'Published on:',
790
+    'texte_definir_comme_traduction_rubrique' => 'This section is a translation of section number:',
791
+    'texte_descriptif_rapide' => 'Brief description',
792
+    'texte_effacer_base' => 'Delete the SPIP database',
793
+    'texte_effacer_statistiques' => 'Delete the statistics',
794
+    'texte_en_cours_validation' => 'The following articles and news have been submitted for evaluation.',
795
+    'texte_enrichir_mise_a_jour' => 'You can enrich the layout of your text by using "typographical shortcuts".',
796
+    'texte_fichier_authent' => '<b>Should SPIP create the special files <tt>.htpasswd</tt>
797 797
   and <tt>.htpasswd-admin</tt> in the directory @dossier@?</b>
798 798
 <p>These files can be used to restrict access to authors and administrators to other parts of your site (for instance, external statistical programme).</p><p>If you have no need of such files, you can keep this option with its default value (no file creation).</p>',
799
-	'texte_informations_personnelles_1' => 'The system will now  create your personal account for this site.',
800
-	'texte_informations_personnelles_2' => '(Note: if it is a reinstallation, if your former access is still working, you can',
801
-	'texte_introductif_article' => '(Introductory text for the article.)',
802
-	'texte_jeu_caractere' => 'We advise using the universal alphabet (<tt>utf-8</tt>) on your site. This will make it possible to display text in any language. All modern browsers are fully comptabile with this character set.',
803
-	'texte_jeu_caractere_3' => 'Your site currently uses this character set:',
804
-	'texte_jeu_caractere_4' => 'If that does not correspond to your current data (this may occur after restoring your database from a backup), or if <em>you are setting up this site</em> and wish to use a different character set, please indicate the character set here:',
805
-	'texte_login_ldap_1' => '(Keep empty for anonymous access or enter complete path, for instance «<tt>uid=smith, ou=users, dc=my-domain, dc=com</tt>».)',
806
-	'texte_login_precaution' => 'Warning! This is the login which you are currently using.
799
+    'texte_informations_personnelles_1' => 'The system will now  create your personal account for this site.',
800
+    'texte_informations_personnelles_2' => '(Note: if it is a reinstallation, if your former access is still working, you can',
801
+    'texte_introductif_article' => '(Introductory text for the article.)',
802
+    'texte_jeu_caractere' => 'We advise using the universal alphabet (<tt>utf-8</tt>) on your site. This will make it possible to display text in any language. All modern browsers are fully comptabile with this character set.',
803
+    'texte_jeu_caractere_3' => 'Your site currently uses this character set:',
804
+    'texte_jeu_caractere_4' => 'If that does not correspond to your current data (this may occur after restoring your database from a backup), or if <em>you are setting up this site</em> and wish to use a different character set, please indicate the character set here:',
805
+    'texte_login_ldap_1' => '(Keep empty for anonymous access or enter complete path, for instance «<tt>uid=smith, ou=users, dc=my-domain, dc=com</tt>».)',
806
+    'texte_login_precaution' => 'Warning! This is the login which you are currently using.
807 807
  Use this form with caution...',
808
-	'texte_messagerie_agenda' => 'A messaging system lets website’s authors communicate directly into the admin area. It is linked to a calendar.',
809
-	'texte_mise_a_niveau_base_1' => 'You have just updated SPIP files.
808
+    'texte_messagerie_agenda' => 'A messaging system lets website’s authors communicate directly into the admin area. It is linked to a calendar.',
809
+    'texte_mise_a_niveau_base_1' => 'You have just updated SPIP files.
810 810
  Now you must upgrade the site
811 811
  database.',
812
-	'texte_modifier_article' => 'Edit this article:',
813
-	'texte_multilinguisme' => 'If you want to manage objects in several languages​​, with complex navigation, you can add a language selection menu to these objects, depending on the organization of your site.',
814
-	'texte_multilinguisme_trad' => 'You can also enable a system for managing links between the various translations of certain objects.',
815
-	'texte_non_compresse' => '<i>uncompressed</i> (your server does not support this feature)',
816
-	'texte_nouvelle_version_spip_1' => 'You have just installed a new version of SPIP.',
817
-	'texte_nouvelle_version_spip_2' => 'This new version requires a more thorough update than usual. If you are the webmaster of this site, please delete the file @connect@ and restart installation in order to update your database connection parameters. <p>(PS.: if you have forgotten your connection parameters, take a look at the file @connect@ before deleting it!)</p>',
818
-	'texte_operation_echec' => 'Go back to the previous page, select another database or create a new one. Verify the information provided by your hosting service.',
819
-	'texte_plus_trois_car' => 'more than 3 characters',
820
-	'texte_plusieurs_articles' => 'Several authors were found for "@cherche_auteur@":',
821
-	'texte_port_annuaire' => '(Default value is generally suitable.)',
822
-	'texte_presente_plugin' => 'This page shows the plugins available on this site. Activate the plugins you require by ticking the corresponding box.',
823
-	'texte_proposer_publication' => 'When your article is finished,<br /> you can submit it for publication.',
824
-	'texte_proxy' => 'In some cases (e.g. intranet, protected network), it is necessary to use an <i>HTTP proxy</i> to reach external sites (SPIP documentation, syndicated sites, etc.). If this is the case, enter its address in the form @proxy_en_cours@. In most cases you can leave this box empty.',
825
-	'texte_publication_articles_post_dates' => 'Which behaviour should SPIP adopt for articles whose
812
+    'texte_modifier_article' => 'Edit this article:',
813
+    'texte_multilinguisme' => 'If you want to manage objects in several languages​​, with complex navigation, you can add a language selection menu to these objects, depending on the organization of your site.',
814
+    'texte_multilinguisme_trad' => 'You can also enable a system for managing links between the various translations of certain objects.',
815
+    'texte_non_compresse' => '<i>uncompressed</i> (your server does not support this feature)',
816
+    'texte_nouvelle_version_spip_1' => 'You have just installed a new version of SPIP.',
817
+    'texte_nouvelle_version_spip_2' => 'This new version requires a more thorough update than usual. If you are the webmaster of this site, please delete the file @connect@ and restart installation in order to update your database connection parameters. <p>(PS.: if you have forgotten your connection parameters, take a look at the file @connect@ before deleting it!)</p>',
818
+    'texte_operation_echec' => 'Go back to the previous page, select another database or create a new one. Verify the information provided by your hosting service.',
819
+    'texte_plus_trois_car' => 'more than 3 characters',
820
+    'texte_plusieurs_articles' => 'Several authors were found for "@cherche_auteur@":',
821
+    'texte_port_annuaire' => '(Default value is generally suitable.)',
822
+    'texte_presente_plugin' => 'This page shows the plugins available on this site. Activate the plugins you require by ticking the corresponding box.',
823
+    'texte_proposer_publication' => 'When your article is finished,<br /> you can submit it for publication.',
824
+    'texte_proxy' => 'In some cases (e.g. intranet, protected network), it is necessary to use an <i>HTTP proxy</i> to reach external sites (SPIP documentation, syndicated sites, etc.). If this is the case, enter its address in the form @proxy_en_cours@. In most cases you can leave this box empty.',
825
+    'texte_publication_articles_post_dates' => 'Which behaviour should SPIP adopt for articles whose
826 826
   publication date has been set in
827 827
   the future?',
828
-	'texte_rappel_selection_champs' => '[Remember to select this field correctly.]',
829
-	'texte_recalcul_page' => 'If you want
828
+    'texte_rappel_selection_champs' => '[Remember to select this field correctly.]',
829
+    'texte_recalcul_page' => 'If you want
830 830
 to re-process a single page, it is easier to view that page from the public site and click "Re-process this page".',
831
-	'texte_recuperer_base' => 'Repair the database',
832
-	'texte_reference_mais_redirige' => 'article referenced in your SPIP site, but redirected to another URL.',
833
-	'texte_requetes_echouent' => '<b>When some SQL queries fail
831
+    'texte_recuperer_base' => 'Repair the database',
832
+    'texte_reference_mais_redirige' => 'article referenced in your SPIP site, but redirected to another URL.',
833
+    'texte_requetes_echouent' => '<b>When some SQL queries fail
834 834
   systematically, without apparent reason, it is possible
835 835
   that the database itself
836 836
   is the culprit.</b><p>
@@ -841,87 +841,87 @@  discard block
 block discarded – undo
841 841
   clues as to where the problem lies.</p><p>
842 842
   If the problem persists, contact your 
843 843
   service provider.</p>',
844
-	'texte_selection_langue_principale' => 'You can choose the website’s "primary language". This does not mean that you can only write articles in that language, but it will be used to determine
844
+    'texte_selection_langue_principale' => 'You can choose the website’s "primary language". This does not mean that you can only write articles in that language, but it will be used to determine
845 845
 
846 846
 <ul><li> the default date/time format on the public website,</li>
847 847
 <li> the nature of the typographical engine which will be used by SPIP for rendering text,</li>
848 848
 <li> the language in use in public website’s forms,</li>
849 849
 <li> the default language in use in the admin area.</li></ul>',
850
-	'texte_sous_titre' => 'Subtitle',
851
-	'texte_statistiques_visites' => '(dark bars = Sunday, dark curve: average visits)',
852
-	'texte_statut_attente_validation' => 'awaiting validation',
853
-	'texte_statut_publies' => 'published online',
854
-	'texte_statut_refuses' => 'rejected',
855
-	'texte_suppression_fichiers' => 'Use this command to purge all the files
850
+    'texte_sous_titre' => 'Subtitle',
851
+    'texte_statistiques_visites' => '(dark bars = Sunday, dark curve: average visits)',
852
+    'texte_statut_attente_validation' => 'awaiting validation',
853
+    'texte_statut_publies' => 'published online',
854
+    'texte_statut_refuses' => 'rejected',
855
+    'texte_suppression_fichiers' => 'Use this command to purge all the files
856 856
 in the SPIP cache. This will force recalculation of every page on the site, useful after
857 857
 significant modifications to the site’s graphics or structure.',
858
-	'texte_sur_titre' => 'Lead-in title',
859
-	'texte_table_ok' => ': this table is OK.',
860
-	'texte_tentative_recuperation' => 'Attempting to repair',
861
-	'texte_tenter_reparation' => 'Attempt to repair the database',
862
-	'texte_test_proxy' => 'To test this proxy, enter the address of a website
858
+    'texte_sur_titre' => 'Lead-in title',
859
+    'texte_table_ok' => ': this table is OK.',
860
+    'texte_tentative_recuperation' => 'Attempting to repair',
861
+    'texte_tenter_reparation' => 'Attempt to repair the database',
862
+    'texte_test_proxy' => 'To test this proxy, enter the address of a website
863 863
     for verification.',
864
-	'texte_titre_02' => 'Subject:',
865
-	'texte_titre_obligatoire' => '<b>Title</b> [Required]',
866
-	'texte_travail_article' => '@nom_auteur_modif@ edited this article @date_diff@ minutes ago',
867
-	'texte_travail_collaboratif' => 'If several editors often work on the same article, the system can mark recently "opened" articles in order to avoid multiple simultaneous editing.
864
+    'texte_titre_02' => 'Subject:',
865
+    'texte_titre_obligatoire' => '<b>Title</b> [Required]',
866
+    'texte_travail_article' => '@nom_auteur_modif@ edited this article @date_diff@ minutes ago',
867
+    'texte_travail_collaboratif' => 'If several editors often work on the same article, the system can mark recently "opened" articles in order to avoid multiple simultaneous editing.
868 868
   This option is disabled by default to avoid displaying unnecessary warning
869 869
   messages.',
870
-	'texte_vide' => 'empty',
871
-	'texte_vider_cache' => 'Empty the cache',
872
-	'titre_admin_tech' => 'Technical maintenance',
873
-	'titre_admin_vider' => 'Technical maintenance',
874
-	'titre_ajouter_un_auteur' => 'Add an author',
875
-	'titre_ajouter_un_mot' => 'Add a keyword',
876
-	'titre_cadre_afficher_article' => 'Show the articles:',
877
-	'titre_cadre_afficher_traductions' => 'Display the translation status for these languages:',
878
-	'titre_cadre_ajouter_auteur' => 'ADD AN AUTHOR:',
879
-	'titre_cadre_interieur_rubrique' => 'In section',
880
-	'titre_cadre_numero_auteur' => 'AUTHOR NUMBER',
881
-	'titre_cadre_numero_objet' => '@objet@ NUMBER:',
882
-	'titre_cadre_signature_obligatoire' => '<b>Signature</b> [Required]<br />',
883
-	'titre_config_contenu_notifications' => 'Notifications',
884
-	'titre_config_contenu_prive' => 'In the admin area',
885
-	'titre_config_contenu_public' => 'On the public site',
886
-	'titre_config_fonctions' => 'Site configuration',
887
-	'titre_config_langage' => 'Configure the language',
888
-	'titre_configuration' => 'Site configuration',
889
-	'titre_configurer_preferences' => 'Configure your preferences',
890
-	'titre_configurer_preferences_menus' => 'Settings of your menus preferences',
891
-	'titre_conflit_edition' => 'Conflict while editing',
892
-	'titre_connexion_ldap' => 'Options: <b>Your LDAP connection</b>',
893
-	'titre_groupe_mots' => 'KEYWORD GROUP:',
894
-	'titre_identite_site' => 'Site identity',
895
-	'titre_langue_article' => 'Article language',
896
-	'titre_langue_rubrique' => 'Section language',
897
-	'titre_langue_trad_article' => 'ARTICLE LANGUAGE AND TRANSLATIONS',
898
-	'titre_les_articles' => 'ARTICLES',
899
-	'titre_messagerie_agenda' => 'Messaging system and calendar',
900
-	'titre_naviguer_dans_le_site' => 'Browse the site...',
901
-	'titre_nouvelle_rubrique' => 'New section',
902
-	'titre_numero_rubrique' => 'SECTION NUMBER:',
903
-	'titre_page_articles_edit' => 'Modify: @titre@',
904
-	'titre_page_articles_page' => 'Articles',
905
-	'titre_page_articles_tous' => 'The entire site',
906
-	'titre_page_calendrier' => 'Calendar @nom_mois@ @annee@',
907
-	'titre_page_config_contenu' => 'Site configuration',
908
-	'titre_page_delete_all' => 'total and irreversible deletion',
909
-	'titre_page_recherche' => 'Search results @recherche@',
910
-	'titre_page_statistiques_referers' => 'Statistics (incoming links)',
911
-	'titre_page_upgrade' => 'SPIP upgrade',
912
-	'titre_preference_menus_favoris' => 'Favourites menu',
913
-	'titre_publication_articles_post_dates' => 'Publication of post dated articles',
914
-	'titre_reparation' => 'Repair',
915
-	'titre_suivi_petition' => 'Petitions follow-up',
916
-	'tls_ldap' => 'Transport Layer Security :',
917
-	'trad_article_traduction' => 'All the versions of this article:',
918
-	'trad_delier' => 'Stop linking to these translations',
919
-	'trad_lier' => 'This article is a translation of article number:',
920
-	'trad_new' => 'Write a new translation',
870
+    'texte_vide' => 'empty',
871
+    'texte_vider_cache' => 'Empty the cache',
872
+    'titre_admin_tech' => 'Technical maintenance',
873
+    'titre_admin_vider' => 'Technical maintenance',
874
+    'titre_ajouter_un_auteur' => 'Add an author',
875
+    'titre_ajouter_un_mot' => 'Add a keyword',
876
+    'titre_cadre_afficher_article' => 'Show the articles:',
877
+    'titre_cadre_afficher_traductions' => 'Display the translation status for these languages:',
878
+    'titre_cadre_ajouter_auteur' => 'ADD AN AUTHOR:',
879
+    'titre_cadre_interieur_rubrique' => 'In section',
880
+    'titre_cadre_numero_auteur' => 'AUTHOR NUMBER',
881
+    'titre_cadre_numero_objet' => '@objet@ NUMBER:',
882
+    'titre_cadre_signature_obligatoire' => '<b>Signature</b> [Required]<br />',
883
+    'titre_config_contenu_notifications' => 'Notifications',
884
+    'titre_config_contenu_prive' => 'In the admin area',
885
+    'titre_config_contenu_public' => 'On the public site',
886
+    'titre_config_fonctions' => 'Site configuration',
887
+    'titre_config_langage' => 'Configure the language',
888
+    'titre_configuration' => 'Site configuration',
889
+    'titre_configurer_preferences' => 'Configure your preferences',
890
+    'titre_configurer_preferences_menus' => 'Settings of your menus preferences',
891
+    'titre_conflit_edition' => 'Conflict while editing',
892
+    'titre_connexion_ldap' => 'Options: <b>Your LDAP connection</b>',
893
+    'titre_groupe_mots' => 'KEYWORD GROUP:',
894
+    'titre_identite_site' => 'Site identity',
895
+    'titre_langue_article' => 'Article language',
896
+    'titre_langue_rubrique' => 'Section language',
897
+    'titre_langue_trad_article' => 'ARTICLE LANGUAGE AND TRANSLATIONS',
898
+    'titre_les_articles' => 'ARTICLES',
899
+    'titre_messagerie_agenda' => 'Messaging system and calendar',
900
+    'titre_naviguer_dans_le_site' => 'Browse the site...',
901
+    'titre_nouvelle_rubrique' => 'New section',
902
+    'titre_numero_rubrique' => 'SECTION NUMBER:',
903
+    'titre_page_articles_edit' => 'Modify: @titre@',
904
+    'titre_page_articles_page' => 'Articles',
905
+    'titre_page_articles_tous' => 'The entire site',
906
+    'titre_page_calendrier' => 'Calendar @nom_mois@ @annee@',
907
+    'titre_page_config_contenu' => 'Site configuration',
908
+    'titre_page_delete_all' => 'total and irreversible deletion',
909
+    'titre_page_recherche' => 'Search results @recherche@',
910
+    'titre_page_statistiques_referers' => 'Statistics (incoming links)',
911
+    'titre_page_upgrade' => 'SPIP upgrade',
912
+    'titre_preference_menus_favoris' => 'Favourites menu',
913
+    'titre_publication_articles_post_dates' => 'Publication of post dated articles',
914
+    'titre_reparation' => 'Repair',
915
+    'titre_suivi_petition' => 'Petitions follow-up',
916
+    'tls_ldap' => 'Transport Layer Security :',
917
+    'trad_article_traduction' => 'All the versions of this article:',
918
+    'trad_delier' => 'Stop linking to these translations',
919
+    'trad_lier' => 'This article is a translation of article number:',
920
+    'trad_new' => 'Write a new translation',
921 921
 
922
-	// U
923
-	'utf8_convert_erreur_orig' => 'Error: the character set @charset@ is not supported.',
922
+    // U
923
+    'utf8_convert_erreur_orig' => 'Error: the character set @charset@ is not supported.',
924 924
 
925
-	// V
926
-	'version' => 'Version:'
925
+    // V
926
+    'version' => 'Version:'
927 927
 );
Please login to merge, or discard this patch.
ecrire/notifications/instituerarticle.php 1 patch
Indentation   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -11,53 +11,53 @@
 block discarded – undo
11 11
 \***************************************************************************/
12 12
 
13 13
 if (!defined('_ECRIRE_INC_VERSION')) {
14
-	return;
14
+    return;
15 15
 }
16 16
 
17 17
 // Fonction appelee par divers pipelines
18 18
 function notifications_instituerarticle_dist($quoi, $id_article, $options) {
19 19
 
20
-	// ne devrait jamais se produire
21
-	if ($options['statut'] == $options['statut_ancien']) {
22
-		spip_log('statut inchange', 'notifications');
23
-
24
-		return;
25
-	}
26
-
27
-	include_spip('inc/texte');
28
-
29
-	$modele = '';
30
-	if ($options['statut'] == 'publie') {
31
-		if (
32
-			$GLOBALS['meta']['post_dates'] == 'non'
33
-			and strtotime($options['date']) > time()
34
-		) {
35
-			$modele = 'notifications/article_valide';
36
-		} else {
37
-			$modele = 'notifications/article_publie';
38
-		}
39
-	}
40
-
41
-	if ($options['statut'] == 'prop' and $options['statut_ancien'] != 'publie') {
42
-		$modele = 'notifications/article_propose';
43
-	}
44
-
45
-	if ($modele) {
46
-		$destinataires = [];
47
-		if ($GLOBALS['meta']['suivi_edito'] == 'oui') {
48
-			$destinataires = explode(',', $GLOBALS['meta']['adresse_suivi']);
49
-		}
50
-
51
-
52
-		$destinataires = pipeline(
53
-			'notifications_destinataires',
54
-			[
55
-				'args' => ['quoi' => $quoi, 'id' => $id_article, 'options' => $options],
56
-				'data' => $destinataires
57
-			]
58
-		);
59
-
60
-		$texte = email_notification_article($id_article, $modele);
61
-		notifications_envoyer_mails($destinataires, $texte);
62
-	}
20
+    // ne devrait jamais se produire
21
+    if ($options['statut'] == $options['statut_ancien']) {
22
+        spip_log('statut inchange', 'notifications');
23
+
24
+        return;
25
+    }
26
+
27
+    include_spip('inc/texte');
28
+
29
+    $modele = '';
30
+    if ($options['statut'] == 'publie') {
31
+        if (
32
+            $GLOBALS['meta']['post_dates'] == 'non'
33
+            and strtotime($options['date']) > time()
34
+        ) {
35
+            $modele = 'notifications/article_valide';
36
+        } else {
37
+            $modele = 'notifications/article_publie';
38
+        }
39
+    }
40
+
41
+    if ($options['statut'] == 'prop' and $options['statut_ancien'] != 'publie') {
42
+        $modele = 'notifications/article_propose';
43
+    }
44
+
45
+    if ($modele) {
46
+        $destinataires = [];
47
+        if ($GLOBALS['meta']['suivi_edito'] == 'oui') {
48
+            $destinataires = explode(',', $GLOBALS['meta']['adresse_suivi']);
49
+        }
50
+
51
+
52
+        $destinataires = pipeline(
53
+            'notifications_destinataires',
54
+            [
55
+                'args' => ['quoi' => $quoi, 'id' => $id_article, 'options' => $options],
56
+                'data' => $destinataires
57
+            ]
58
+        );
59
+
60
+        $texte = email_notification_article($id_article, $modele);
61
+        notifications_envoyer_mails($destinataires, $texte);
62
+    }
63 63
 }
Please login to merge, or discard this patch.